$ sudo nano /etc/default/grub
| /etc/default/grub |
| GRUB_DEFAULT=4 GRUB_TIMEOUT_STYLE=hidden GRUB_TIMEOUT=5 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" GRUB_BACKGROUND=/custom/grub_bg.jpg |
GRUB_DEFAULT
開機時查看選單順序:0. Kali Linux
1.
2.
3.
4.Windows 7
GRUB_DEFAULT=4
開機時自動反白Windows 7
GRUB_TIMEOUT
開機選單等待時間,時間到後開啟被反白的系統GRUB_BACKGROUND
開機選單的背景圖片位置,可自訂
如:
GRUB_BACKGROUND=/custom/grub_bg.jpg
編輯完成後,輸入:
$ sudo update-grub
正在產生 grub 設定檔 ...
找到背景:/custom/grub_bg.jpg
Found background image: /custom/grub_bg.jpg
找到 linux 映像檔:/boot/vmlinuz-4.15.0-33-generic
找到 initrd 映像檔:/boot/initrd.img-4.15.0-33-generic
找到 linux 映像檔:/boot/vmlinuz-4.15.0-29-generic
找到 initrd 映像檔:/boot/initrd.img-4.15.0-29-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
找到 Windows 7 [於 /dev/sda1]
完成
GRUB_BACKGROUND=/custom/grub_bg.jpg
編輯完成後,輸入:
$ sudo update-grub
正在產生 grub 設定檔 ...
找到背景:/custom/grub_bg.jpg
Found background image: /custom/grub_bg.jpg
找到 linux 映像檔:/boot/vmlinuz-4.15.0-33-generic
找到 initrd 映像檔:/boot/initrd.img-4.15.0-33-generic
找到 linux 映像檔:/boot/vmlinuz-4.15.0-29-generic
找到 initrd 映像檔:/boot/initrd.img-4.15.0-29-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
找到 Windows 7 [於 /dev/sda1]
完成
沒有留言:
張貼留言