UBUNTU配置grub (config the grub menu)

发布时间: 2012-11-21 23:03:00

还是记录一下吧。。。第三次做这件事了。 ( I record this as a blog because I am doing the same thing for the 3rd time)

每次升级完UBUNTU,GRUB菜单就会自动把windows放在最后一项。妈妈就会抱怨说启动太复杂,一堆英文看不明白。 (everytime after I install/updated a new UBUNTU OS, my mom would complain that she can't login Windows, and she doesn't know the English characters on the screen)

解决办法就是赶紧修改GRUB菜单。( the solution is to change the GRUB menu ) 

1.  vim /etc/default/grub 

GRUB_GFXMODE=1920x1080   # 如果显示不出GRUB 菜单的话,就修改它的分辨率 ( change the resolution if GRUB can't displayed)

1. vim /boot/grub/grub.cfg


161 ### BEGIN /etc/grub.d/30_os-prober ###
162 menuentry "Microsoft Windows XP Professional (on /dev/sda1)" --class windows --class os {
163     insmod part_msdos
164     insmod ntfs
165     set root='(/dev/sda,msdos1)'
166     search --no-floppy --fs-uuid --set=root AC60CA8160CA522E
167     drivemap -s (hd0) ${root}
168     chainloader +1
169 }

放在 其他 "menuentry" 的前面。  ( put the code segment above as the first "menuetry")