1.執行下面命令
$sudo apt-get remove grub
2.下載安裝grub-gfxboot包:
grub-gfxboot.debsudo dpkg -i grub-gfxboot.deb
3.下載message包,這個包使我修改了背景和Logo做成的Ubuntustudio風格:
message.tar.bz2sudo apt-get install gfxboot
4.執行下面命令,message文件cp到自己的/boot下:
sudo tar jxvf message.tar.bz2 -C /boot
5.修改/boot/grub/menu.lst文件
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_back \\備份menu.lst
sudo gedit /boot/grub/menu.lst
找到groot部分內容,根據groot后面的值來決定下面這一行內容
比如我的groot是=(hd0,7),那么對應的應該寫入
gfxmenu (hd0,7)/boot/message.ubuntu
將上面其中一行添加到 timeout xx 下
6.設置grub,執行命令:
sudo grub
在grub>命令行下依次執行下面命令
find /boot/grub/stage1
root (hd0,7) \\這一項的值取決于你的menu.lst里的groot的值
setup (hd0)
7.安裝grub
sudo grub-install /dev/hda
如果顯示為“Not found or not a block device.”,請改執行
sudo grub-install /dev/sda
如果顯示為“/dev/sda does not have any corresponding BIOS drive. ”,那么先執行命令
sudo grub-install --recheck /dev/sda
然后再執行
sudo grub-install /dev/sda
8.重啟就可以看到開機修改后的Grub畫面了