王雷

支持正版,支持开源

原创 ubuntu和windows启动顺序改变收藏

新一篇: 学习内核---Linux网卡驱动分析  | 旧一篇: .net连接ORACLE数据库,为什么数据库进程无法消除?

我装了两个操作系统,Linux和windows XP. 默认是Linux启动,通过下面的操作可把windows XP改为默认启动系统
    启动ubuntu后,输入:
    sudo gedit /boot/grub/menu.lst
然后找到
    default 0
然后往下看,找你想默认启动的操作系统!修改default 后面的数字,0对应第一个,1对应第二个,依次往下!以下是我的menu.lst
默认是ubuntu!把0改为4就可以了!
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
## ## End Default Options #www.gprs5.com#
((((((((((由次开始为依次的操作系统启动列表!))
title Ubuntu, kernel 2.6.12-9-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda3 ro quiet splash
initrd /boot/initrd.img-2.6.12-9-386
savedefault
boot
title Ubuntu, kernel 2.6.12-9-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.12-9-386 root=/dev/hda3 ro single
initrd /boot/initrd.img-2.6.12-9-386
boot
title Ubuntu, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1
# ones. 

发表于 @ 2007年05月06日 10:33:00|评论(loading...)|编辑

新一篇: 学习内核---Linux网卡驱动分析  | 旧一篇: .net连接ORACLE数据库,为什么数据库进程无法消除?

评论

#tfzxyinhao 发表于2007-11-03 13:59:38  IP: 221.232.223.*
大哥能不能给我做 个安装双操作系统的动画啊 我现在装的是xp的 但是因为学习需要 安装Ubuntu的操作系统 但是上次实验后电脑的所有文件都丢失了 不敢再试了 请大哥一定要帮帮忙 的
我的邮箱 tfzxyinhao@126.com
发表评论  


当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
Csdn Blog version 3.1a
Copyright © 小雷