Grub2 설정

Linux 2017. 2. 10. 10:48
- no title specified

 

Grub2 설정

 

 

 

codebank@localhost etc $ sudo vi /etc/default/grub

[sudo] codebank의 암호:

GRUB_TIMEOUT=10

GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"

GRUB_DEFAULT=saved

GRUB_DISABLE_SUBMENU=true

GRUB_TERMINAL_OUTPUT="console"

GRUB_CMDLINE_LINUX="rhgb quiet"

GRUB_DISABLE_RECOVERY="true"

codebank@localhost etc $ sudo grub2-editenv list

saved_entry=Fedora (4.9.7-201.fc25.x86_64) 25 (Workstation Edition)

codebank@localhost etc $ grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2

Fedora (4.9.7-201.fc25.x86_64) 25 (Workstation Edition)

Fedora (4.9.6-200.fc25.x86_64) 25 (Workstation Edition)

Fedora (4.9.5-200.fc25.x86_64) 25 (Workstation Edition)

Fedora (0-rescue-1e293ca6ed684a6a969fd92e02e3d622) 25 (Workstation Edition)

Windows 10 (loader) (on /dev/sda1)

codebank@localhost etc $ sudo grub2-set-default "Windows 10 (loader) (on /dev/sda1)"

codebank@localhost etc $ sudo grub2-editenv list

saved_entry=Windows 10 (loader) (on /dev/sda1)

codebank@localhost etc $ sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Generating grub configuration file ...

Found linux image: /boot/vmlinuz-4.9.7-201.fc25.x86_64

Found initrd image: /boot/initramfs-4.9.7-201.fc25.x86_64.img

Found linux image: /boot/vmlinuz-4.9.6-200.fc25.x86_64

Found initrd image: /boot/initramfs-4.9.6-200.fc25.x86_64.img

Found linux image: /boot/vmlinuz-4.9.5-200.fc25.x86_64

Found initrd image: /boot/initramfs-4.9.5-200.fc25.x86_64.img

Found linux image: /boot/vmlinuz-0-rescue-1e293ca6ed684a6a969fd92e02e3d622

Found initrd image: /boot/initramfs-0-rescue-1e293ca6ed684a6a969fd92e02e3d622.img

Found Windows 10 (loader) on /dev/sda1

done

codebank@localhost etc $

 

Posted by codebank
,