Первые шаги - Как эффективно работать с командной строкой

Linux как профессия: профориентация, найм, оплата

Модератор: Olej

Аватара пользователя
krserv
Писатель
Сообщения: 58
Зарегистрирован: 11 окт 2016, 01:08
Откуда: From the Earth
Контактная информация:

Re: Первые шаги - Как эффективно работать с командной строко

Непрочитанное сообщение krserv » 13 окт 2016, 21:46

So let's continue our practice after our break and pretty cup of tea or coffee.
I have a multi-boot platform which consists of two Active, Primary SATA HDD. One of them has two Windows OS: Win XP and Win 10 ver, 1607.
The another one has Linux CentOS, which I have just installed.
So, my next step will be to make settings of Grub2
At first, I checked if os-prober would be installed in this system. Yep, I have done it.
Next: grub2-mkconfig -o /boot/grub2/grub.conf
Grub2 found Windows OS.

To work effectively, I decide to set X-Windows system and DE. My favorite DE is Mate at this moment.
So, I ran it: yum -y groupinstall "Mate Desktop"
Next:
systemctl set-default graphical.target (it's equal previous init 5 mode)
systemctl enable lightdm
rm '/etc/systemd/system/display-manager.service'
ln -s '/usr/lib/systemd/system/lightdm.service '/etc/systemd/system/display-manager.service'
Step by step. Practice makes Perfect!

Аватара пользователя
krserv
Писатель
Сообщения: 58
Зарегистрирован: 11 окт 2016, 01:08
Откуда: From the Earth
Контактная информация:

Re: Первые шаги - Как эффективно работать с командной строко

Непрочитанное сообщение krserv » 13 окт 2016, 22:48

At last, I'm here, from installed OS.
But I have first problem.

Код: Выделить всё

# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-327.36.2.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-327.36.2.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-327.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-327.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-f053b41dcf9e4830b10c6adb571f3894
Found initrd image: /boot/initramfs-0-rescue-f053b41dcf9e4830b10c6adb571f3894.img
Found Windows 8 (loader) on /dev/sda1
done
I found the Windows OS, but it doesn't seeing in boot menu during the booting OS.

So let's find the problem:

List of all possible menu entries:


Код: Выделить всё

# grep ^menuentry /boot/grub2/grub.cfg  | cut -d "'" -f2
CentOS Linux (3.10.0-327.36.2.el7.x86_64) 7 (Core)
CentOS Linux (3.10.0-327.el7.x86_64) 7 (Core)
CentOS Linux (0-rescue-f053b41dcf9e4830b10c6adb571f3894) 7 (Core)
Windows 8 (loader) (on /dev/sda1)
 grub2-editenv list
saved_entry=CentOS Linux (3.10.0-327.36.2.el7.x86_64) 7 (Core)
[root@localhost Downloads]# 
Step by step. Practice makes Perfect!

Аватара пользователя
krserv
Писатель
Сообщения: 58
Зарегистрирован: 11 окт 2016, 01:08
Откуда: From the Earth
Контактная информация:

Re: Первые шаги - Как эффективно работать с командной строко

Непрочитанное сообщение krserv » 14 окт 2016, 00:05

Resolved - I found the error - not grub.conf but grub.cfg
Step by step. Practice makes Perfect!

Ответить

Вернуться в «Обучение, работа и занятость»

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и 3 гостя