Ubuntu9.10以上版本和Windows双系统启动顺序设置
2010-08-24 01:30
387 查看
由于从Ubuntu9.10开始使用grub2来引导 系统,新版grub2的引导配置文件就不再是menu.lst了,而是/boot/grub/grub.cfg文件,这与旧版本不同了,而且为了安全起 见,该文件默认为“只读”属性,因此在修改启动菜单之前你必须先将其文件属性改为“可读写”后方可修改文件内容。
具体做法如下:
1.应用程序---》附件---》终端,输入
sudo chmod 777 /boot/grub/grub.cfg
2.输入密码:输入密码,直接回车,然后输入
sudo gedit /boot/grub/grub.cfg
3.编辑grub.cfg
方法一:
将set default="0"改为set default="4"
方法二:
将
剪切到:
4.重新启动看看WINDOWS XP 已经为第一启动项了。
具体做法如下:
1.应用程序---》附件---》终端,输入
sudo chmod 777 /boot/grub/grub.cfg
2.输入密码:输入密码,直接回车,然后输入
sudo gedit /boot/grub/grub.cfg
3.编辑grub.cfg
方法一:
将set default="0"改为set default="4"
方法二:
将
### BEGIN /etc/grub.d/30_os-prober ### menuentry "Windows XP (on /dev/sda1)" { insmod ntfs set root=(hd0,1) search --no-floppy --fs-uuid --set B2CC3F5FCC3F1CD3 chainloader +1 } ### END /etc/grub.d/30_os-prober ###
剪切到:
### BEGIN /etc/grub.d/10_linux ### menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,8)' search --no-floppy --fs-uuid --set 27cc65d6-0513-4f68-8c42-901f871052ae linux /boot/vmlinuz-2.6.32-21-generic root=UUID=27cc65d6-0513-4f68-8c42-901f871052ae ro quiet splash initrd /boot/initrd.img-2.6.32-21-generic } menuentry 'Ubuntu, with Linux 2.6.32-21-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,8)' search --no-floppy --fs-uuid --set 27cc65d6-0513-4f68-8c42-901f871052ae echo 'Loading Linux 2.6.32-21-generic ...' linux /boot/vmlinuz-2.6.32-21-generic root=UUID=27cc65d6-0513-4f68-8c42-901f871052ae ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-2.6.32-21-generic } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_memtest86+ ### menuentry "Memory test (memtest86+)" { insmod ext2 set root='(hd0,8)' search --no-floppy --fs-uuid --set 27cc65d6-0513-4f68-8c42-901f871052ae linux16 /boot/memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { insmod ext2 set root='(hd0,8)' search --no-floppy --fs-uuid --set 27cc65d6-0513-4f68-8c42-901f871052ae linux16 /boot/memtest86+.bin console=ttyS0,115200n8 } ### END /etc/grub.d/20_memtest86+ ###
4.重新启动看看WINDOWS XP 已经为第一启动项了。
相关文章推荐
- Ubuntu9.10以上版本和Windows双系统启动顺序设置
- Ubuntu,Windows多系统启动顺序设置
- 通过修改grub设置Linux和Windows等多个系统的启动顺序变更和删除
- windows与linux系统的启动顺序设置
- 双系统(windows和Linux)如何设置启动顺序,我的/boot/grub/menu.lst内容如下:
- Ubuntu16.04与Windows双系统修改默认开机启动顺序
- ubuntu10.10和windows双系统启动顺序的修改
- 51.导航栏主题设置 模拟器启动有黑块 TbaBar切换 系统版本
- ubuntu13.04和windows双系统启动顺序的修改
- 安装Ubuntu16.04与windows10双系统后,如何修改启动默认设置
- ubuntu + windows 双系统设置开机默认启动的系统
- ubuntu13.04和windows双系统启动顺序的修改
- ubuntu + windows 双系统设置开机默认启动的系统
- ubuntu 和windows双系统启动顺序的修改
- 修改grub引导的Linux和Windows双系统的启动顺序和删除Linux系统的方法
- ubuntu win7双系统设置开机启动顺序
- ubuntu双系统开机默认启动windows设置
- 在windows系统下设置让tomcat随系统一起启动
- linux和windows双系统设置默认启动系统
- Windows 7系统如何设置某一动作(如发送邮件)默认启动的程序