新手-关于ubuntu和windows启动顺序的方法(google上没有我这问题的详细解答)

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
头像
yilian0120
帖子: 5
注册时间: 2008-12-01 20:47

新手-关于ubuntu和windows启动顺序的方法(google上没有我这问题的详细解答)

#1

帖子 yilian0120 » 2008-12-18 12:18

我所用ubnutn8.10 DVD amd64的光盘装的系统,因为我的系统是深度GHOST7.0的XP操作系统用wubi装的话与深度一键还原有冲突,所以就用刻录的DVD装ubuntu,而且那不需要上网下载中文语言包,装好之后是从ubuntu启动,我想改为默认XP启动,但是网上的教程与我电脑上的情况不一致
我的电脑menu.list内容如下

代码: 全选

# 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'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
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)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title		Windows 95/98/NT/2000
# root		(hd0,0)
# makeactive
# chainloader	+1
#
# title		Linux
# root		(hd0,1)
# kernel	/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=75346847-2217-4a42-8d64-34883a743b26 ro locale=zh_CN

## default grub root device
## e.g. groot=(hd0,0)
# groot=75346847-2217-4a42-8d64-34883a743b26

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title		Ubuntu 8.10, kernel 2.6.27-7-generic
uuid		75346847-2217-4a42-8d64-34883a743b26
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=75346847-2217-4a42-8d64-34883a743b26 ro locale=zh_CN quiet splash 
initrd		/boot/initrd.img-2.6.27-7-generic
quiet

title		Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid		75346847-2217-4a42-8d64-34883a743b26
kernel		/boot/vmlinuz-2.6.27-7-generic root=UUID=75346847-2217-4a42-8d64-34883a743b26 ro locale=zh_CN  single
initrd		/boot/initrd.img-2.6.27-7-generic

title		Ubuntu 8.10, memtest86+
uuid		75346847-2217-4a42-8d64-34883a743b26
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title		Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title		Microsoft Windows XP Professional
root		(hd0,0)
savedefault
makeactive
chainloader	+1
我想改为默认xp3秒启动,第二启动顺序为ubuntu,
还问一句,启动时为什么有好几个东西
第一个是Ubuntu 8.10, kernel 2.6.27-7-generic
第二个是Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
第三个是Ubuntu 8.10, memtest86+
那都是什么东西
我只知道第一个是ubuntu操作系统
感谢回答
369023990
帖子: 4
注册时间: 2008-11-08 15:23

Re: 新手-关于ubuntu和windows启动顺序的方法(google上没有我这问题的详细解答)

#2

帖子 369023990 » 2008-12-18 12:28

我在网上也找了些关于修改顺序的帖子。说是在ubuntu下修改 boot\menu.lst但是我改动它是系统不让改!!!不知道怎么办!
头像
qiang_liu8183
论坛版主
帖子: 10699
注册时间: 2006-09-10 22:36
系统: Arch Debian
来自: 北京

Re: 新手-关于ubuntu和windows启动顺序的方法(google上没有我这问题的详细解答)

#3

帖子 qiang_liu8183 » 2008-12-18 12:31

代码: 全选

sudo vim /boot/grub/menu.lst
看破、放下、自在、随缘、念佛
真诚、清净、平等、正觉、慈悲
hrbeu06ws
帖子: 100
注册时间: 2008-09-25 16:06

Re: 新手-关于ubuntu和windows启动顺序的方法(google上没有我这问题的详细解答)

#4

帖子 hrbeu06ws » 2008-12-18 13:19

用管理员权限去修改menu.lst文件,把default后面的0改成4默认启动xp,timeout后面的10改成3默认等待3秒。第一项是完全多用户模式(运行级别为init5);第二项是单用户模式(运行级别为init1),用于系统的维护;第三项是启动memtest程序来测试内存,以防由于内存故障无法引导。试试吧! :em01
头像
yilian0120
帖子: 5
注册时间: 2008-12-01 20:47

Re: 新手-关于ubuntu和windows启动顺序的方法(google上没有我这问题的详细解答)

#5

帖子 yilian0120 » 2008-12-18 13:44

感谢各位解答,感谢hrbeu06ws
我搜到了
调整双系统启动菜单顺序的软件
http://jandy.cn/blog/?p=1299
有了这个,不用怕改坏了
a343460557
帖子: 1
注册时间: 2008-12-02 19:46

Re: 新手-关于ubuntu和windows启动顺序的方法(google上没有我这问题的详细解答)

#6

帖子 a343460557 » 2008-12-21 23:51

你可以入系统-系统管理-用户和组,解锁后可以选择root的用户,然后按属性,在密码的一项给一个密码,最后注销切换用户,用户名输入root和你刚刚设的密码就可以用超级用户进入系统,你可以直接修改menu文件。
头像
vafoo
帖子: 73
注册时间: 2009-05-24 20:49

Re: 新手-关于ubuntu和windows启动顺序的方法(google上没有我这问题的详细解答)

#8

帖子 vafoo » 2009-05-31 14:57

我也试试这个 装完了Ubuntu想删又不敢删
cxff
帖子: 8
注册时间: 2009-04-25 23:54

Re: 新手-关于ubuntu和windows启动顺序的方法(google上没有我这问题的详细解答)

#9

帖子 cxff » 2009-06-02 21:22

369023990 写了:我在网上也找了些关于修改顺序的帖子。说是在ubuntu下修改 boot\menu.lst但是我改动它是系统不让改!!!不知道怎么办!
权限不够吧。sudo 改试试?
头像
marulon
帖子: 37
注册时间: 2008-10-17 16:59

Re: 新手-关于ubuntu和windows启动顺序的方法(google上没有我这问题的详细解答)

#10

帖子 marulon » 2009-06-03 8:41

default 0
把0改为3

修改此文件的时候需要root权限

default后面的数字x指的是默认启动第x+1个title开头的那一行的操作系统
botong
帖子: 3
注册时间: 2009-04-25 15:07

Re: 新手-关于ubuntu和windows启动顺序的方法(google上没有我这问题的详细解答)

#11

帖子 botong » 2009-06-21 23:54

yilian0120 写了:感谢各位解答,感谢hrbeu06ws
我搜到了
调整双系统启动菜单顺序的软件
http://jandy.cn/blog/?p=1299
有了这个,不用怕改坏了
谢谢,真的很好用的,最直观的操作,最简单的正解。
shiyi
帖子: 5
注册时间: 2009-06-12 20:38

Re: 新手-关于ubuntu和windows启动顺序的方法(google上没有我这问题的详细解答)

#12

帖子 shiyi » 2009-06-29 0:01

楼主 的解决方法 强悍 :em11
zenmingduoli
帖子: 3
注册时间: 2009-09-29 20:25

Re: 新手-关于ubuntu和windows启动顺序的方法(google上没有我这问题的详细解答)

#15

帖子 zenmingduoli » 2009-10-01 20:59

在终端输入:sudo gedit /boot/grub/menu.lst。
timeout后面的数字是启动菜单的显示秒数。
每个title表示一个启动项,如果你想把第三个启动项设为默认启动项,
只要把default后面数字改为2(3-1=2得来的)。最后别忘了存盘哟。
回复