谁能帮我修改一下menu.lst,使Windows成为默认项

重复贴和参考价值不大的帖子,版主维护
回复
YzENG
帖子: 16
注册时间: 2008-11-27 18:45
送出感谢: 0
接收感谢: 0

谁能帮我修改一下menu.lst,使Windows成为默认项

#1

帖子 YzENG » 2009-03-02 15:48

我的menu.lst里有好几个系统,只留下最新的ubuntu就行了,然后想把Windows(文件里最下面的那个是的)设为默认的,因为我用Windows更频繁...不知道谁可以帮我修改一下阿,谢谢阿
(我的ubuntu是通过光盘直接装在原来vista的F盘里的)
YzENG
帖子: 16
注册时间: 2008-11-27 18:45
送出感谢: 0
接收感谢: 0

Re: 谁能帮我修改一下menu.lst,使Windows成为默认项

#2

帖子 YzENG » 2009-03-02 15:49

# 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=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN

## default grub root device
## e.g. groot=(hd0,0)
# groot=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5

## 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-11-generic
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-11-generic

title Ubuntu 8.10, kernel 2.6.27-9-generic
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-9-generic

title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 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 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu 8.10, memtest86+
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
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 Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows Vista/Longhorn (loader)
root (hd0,1)
savedefault
makeactive
chainloader +1
guanghui306
帖子: 134
注册时间: 2009-01-09 9:57
送出感谢: 0
接收感谢: 0

Re: 谁能帮我修改一下menu.lst,使Windows成为默认项

#3

帖子 guanghui306 » 2009-03-02 16:27

把vista的启动项放在最前面就行了
头像
greco
帖子: 2487
注册时间: 2007-04-06 10:24
来自: ~/Shanghai
送出感谢: 0
接收感谢: 0

Re: 谁能帮我修改一下menu.lst,使Windows成为默认项

#4

帖子 greco » 2009-03-02 16:35

# 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 4

## 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=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN

## default grub root device
## e.g. groot=(hd0,0)
# groot=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5

## 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-11-generic
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-11-generic

title Ubuntu 8.10, memtest86+
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
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 Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows Vista/Longhorn (loader)
root (hd0,1)
savedefault
makeactive
chainloader +1
http://silenceisdefeat.com/~greco

代码: 全选

''.join([chr(ord(c)-2) for c in 'O{"G/ockn"ku<"itgeq0ujkBiockn0eqo'])
echo -n "Z3JlY28uc2hpQGdtYWlsLmNvbQ==" | base64 -d
头像
Element
论坛版主
帖子: 3537
注册时间: 2005-09-10 16:04
来自: DG-GD-China
送出感谢: 0
接收感谢: 0

Re: 谁能帮我修改一下menu.lst,使Windows成为默认项

#5

帖子 Element » 2009-03-02 19:01

YzENG 写了:# 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=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN

## default grub root device
## e.g. groot=(hd0,0)
# groot=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5

## 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-11-generic
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-11-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-11-generic

title Ubuntu 8.10, kernel 2.6.27-9-generic
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-9-generic

title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 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 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu 8.10, memtest86+
uuid 1a29a3e1-d0e1-4f3e-8a88-1a02524f28d5
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 Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
makeactive
chainloader +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows Vista/Longhorn (loader)
root (hd0,1)
savedefault
makeactive
chainloader +1
改红色的数字,你可以改改看有什么结果
或者数一下你要启动的系统是第几个 title
从0开始哦
http://element.blog.ubuntu.org.cn/
Ubuntu Jaunty Jackalope...
AMD Barton 2600+
MSI K7N2 Delta-L
Kingston DDR400 512M*2+256M*1
nVidia FX5200
Seagate 80G(Jaunty Jackalope)
Seagate 160G(XXxxXX)
SyncMaster 732N
freetogo
帖子: 10
注册时间: 2009-02-27 5:30
送出感谢: 0
接收感谢: 0

Re: 谁能帮我修改一下menu.lst,使Windows成为默认项

#6

帖子 freetogo » 2009-03-02 19:30

1) Add the following lines inside menu.lst:

## default num
default saved
2) run the following command
sudo update-grub
woohit
帖子: 12
注册时间: 2008-11-27 12:15
来自: 都匀
送出感谢: 0
接收感谢: 0

Re: 谁能帮我修改一下menu.lst,使Windows成为默认项

#7

帖子 woohit » 2009-03-02 22:36

有篇文章介绍了系统减肥,里面教了怎么去除不是最新版本的内核,比如你的-7/-9那两个去掉以后就能少很多项选项了
然后把default后面的数字改到你windows的序号,从0开始数一下就好了
timeout也可以改一下数字,10秒太浪费时间了
新手上路,熊出没
YzENG
帖子: 16
注册时间: 2008-11-27 18:45
送出感谢: 0
接收感谢: 0

Re: 谁能帮我修改一下menu.lst,使Windows成为默认项

#8

帖子 YzENG » 2009-03-04 4:48

谢谢各位,按照各位说的,已经搞定了!!!谢谢
头像
luojie-dune
帖子: 22033
注册时间: 2007-07-30 18:28
系统: Linux
来自: 空气中
送出感谢: 9 次
接收感谢: 61 次

Re: 谁能帮我修改一下menu.lst,使Windows成为默认项

#9

帖子 luojie-dune » 2009-03-04 7:05

装个 启动管理器 即可GUI操作。
『这个世界都是我的 ,我爱你们』

ENTP ⥂ INTP ⥄ INFP ⇦ INTJ

在此发布的文章使用 Creative Commons Attribution-ShareAlike 4.0 协议
回复

回到 “归档贴”