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 $ |
'Linux' 카테고리의 다른 글
Linux에서 시간 동기화하기 (0) | 2017.12.21 |
---|---|
Systemd을 이용한 서비스 등록방법 (0) | 2017.12.08 |
Local 컴퓨터에서 비밀번호를 잊어버렸을 때 (0) | 2017.08.04 |
에디터 없이 파일 생성하기 (0) | 2017.08.04 |
터미널 글자가 깨질 경우 복구방법 (0) | 2017.08.04 |