麻烦哪位贴一个8.10的 /boot/grub/menu.lst

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
头像
iblicf
帖子: 3766
注册时间: 2007-01-15 17:15
送出感谢: 0
接收感谢: 0

麻烦哪位贴一个8.10的 /boot/grub/menu.lst

#1

帖子 iblicf » 2009-01-25 23:59

我硬盘装完,menu.lst 写的不对,只有 memtest ,

thanks ... happy 牛 year !
头像
topbluecat
帖子: 411
注册时间: 2008-03-27 21:56
送出感谢: 0
接收感谢: 0
联系:

Re: 麻烦哪位贴一个8.10的 /boot/grub/menu.lst

#2

帖子 topbluecat » 2009-01-26 0:43

请先把报上你的Ubuntu的安装方式和是在哪个分区上装的,不能随便套用别人的menu.lst的,很可能别人安装Ubuntu的分区和你不一样,导致启动失败。 :em06
JiangHui
论坛版主
帖子: 21301
注册时间: 2007-08-02 20:29
系统: 窓辺とうこ
送出感谢: 0
接收感谢: 13 次

Re: 麻烦哪位贴一个8.10的 /boot/grub/menu.lst

#3

帖子 JiangHui » 2009-01-26 0:44

……能进系统就可以了
用别人的反而要出问题的
头像
iblicf
帖子: 3766
注册时间: 2007-01-15 17:15
送出感谢: 0
接收感谢: 0

Re: 麻烦哪位贴一个8.10的 /boot/grub/menu.lst

#4

帖子 iblicf » 2009-01-26 8:52

。。。谢谢啦,我硬盘装的,笔记本,xp 前两个区,我不是要套用,参考一下,也许不用重装了
头像
topbluecat
帖子: 411
注册时间: 2008-03-27 21:56
送出感谢: 0
接收感谢: 0
联系:

Re: 麻烦哪位贴一个8.10的 /boot/grub/menu.lst

#5

帖子 topbluecat » 2009-01-26 10:21

给个Ubuntu 8.04.2的,你参考一下:

title Ubuntu 8.04.2, kernel 2.6.24-23-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=d6747029-70cf-4f34-be5f-6da3a3b70716 ro splash locale=zh_CN vga=792
initrd /boot/initrd.img-2.6.24-23-generic
quiet

title Ubuntu 8.04.2, kernel 2.6.24-23-generic (recovery mode)
#lock
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-23-generic root=UUID=d6747029-70cf-4f34-be5f-6da3a3b70716 ro single vga=792
initrd /boot/initrd.img-2.6.24-23-generic
头像
iblicf
帖子: 3766
注册时间: 2007-01-15 17:15
送出感谢: 0
接收感谢: 0

Re: 麻烦哪位贴一个8.10的 /boot/grub/menu.lst

#6

帖子 iblicf » 2009-01-26 18:58

谢谢了
link_biao
帖子: 4
注册时间: 2009-01-27 0:09
送出感谢: 0
接收感谢: 0

Re: 麻烦哪位贴一个8.10的 /boot/grub/menu.lst

#7

帖子 link_biao » 2009-01-27 0:13

能用吗?我正好也要用一个。还是贴个8.10的上来吧。
如果是只要把8.04改成8.10,和(hdX,Y)就好的话就不用了。谢谢了,新手上路。
zmd56
帖子: 62
注册时间: 2008-01-22 21:58
送出感谢: 0
接收感谢: 0

Re: 麻烦哪位贴一个8.10的 /boot/grub/menu.lst

#8

帖子 zmd56 » 2009-01-28 1:51

# menu.lst - See: grub(8), info grub, update-grub(8)
2 # grub-install(8), grub-floppy(8),
3 # grub-md5-crypt, /usr/share/doc/grub
4 # and /usr/share/doc/grub-doc/.
5
6 ## default num
7 # Set the default entry to the entry number NUM. Numbering starts from 0, and
8 # the entry number 0 is the default if the command is not used.
9 #
10 # You can specify 'saved' instead of a number. In this case, the default entry
11 # is the entry saved with the command 'savedefault'.
12 # WARNING: If you are using dmraid do not use 'savedefault' or your
13 # array will desync and will not let you boot your system.
14 default 0
15
16 ## timeout sec
17 # Set a timeout, in SEC seconds, before automatically booting the default entry
18 # (normally the first entry defined).
19 timeout 0
20
21 ## hiddenmenu
22 # Hides the menu by default (press ESC to see the menu)
23 hiddenmenu
24
25 # Pretty colours
26 #color cyan/blue white/blue
27
28 ## password ['--md5'] passwd
29 # If used in the first section of a menu file, disable all interactive editing
30 # control (menu entry editor and command-line) and entries protected by the
31 # command 'lock'
32 # e.g. password topsecret
33 # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
34 # password topsecret
35
36 #
37 # examples
38 #
39 # title Windows 95/98/NT/2000
# root (hd0,0)
41 # makeactive
42 # chainloader +1
43 #
44 # title Linux
45 # root (hd0,1)
46 # kernel /vmlinuz root=/dev/hda2 ro
47 #
48
49 #
50 # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
51
52 ### BEGIN AUTOMAGIC KERNELS LIST
53 ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
54 ## by the debian update-grub script except for the default options below
55
56 ## DO NOT UNCOMMENT THEM, Just edit them to your needs
57
58 ## ## Start Default Options ##
59 ## default kernel options
60 ## default kernel options for automagic boot options
61 ## If you want special options for specific kernels use kopt_x_y_z
62 ## where x.y.z is kernel version. Minor versions can be omitted.
63 ## e.g. kopt=root=/dev/hda1 ro
64 ## kopt_2_6_8=root=/dev/hdc1 ro
65 ## kopt_2_6_8_2_686=root=/dev/hdc2 ro
66 # kopt=root=UUID=d8aee9a5-1b95-43b0-863f-03ad5897884b ro
67
68 ## default grub root device
69 ## e.g. groot=(hd0,0)
70 # groot=d8aee9a5-1b95-43b0-863f-03ad5897884b
71
72 ## should update-grub create alternative automagic boot options
73 ## e.g. alternative=true
74 ## alternative=false
75 # alternative=true
76
77 ## should update-grub lock alternative automagic boot options
78 ## e.g. lockalternative=true
79 ## lockalternative=false
80 # lockalternative=false
81
82 ## additional options to use with the default boot option, but not with the
83 ## alternatives
84 ## e.g. defoptions=vga=791 resume=/dev/hda5
85 # defoptions=quiet splash
86
87 ## should update-grub lock old automagic boot options
88 ## e.g. lockold=false
89 ## lockold=true
90 # lockold=false
91
92 ## Xen hypervisor options to use with the default Xen boot option
93 # xenhopt=
94
95 ## Xen Linux kernel options to use with the default Xen boot option
96 # xenkopt=console=tty0
97
98 ## altoption boot targets option
99 ## multiple altoptions lines are allowed
100 ## e.g. altoptions=(extra menu suffix) extra boot options
101 ## altoptions=(recovery) single
102 # altoptions=(recovery mode) single
103
104 ## controls how many kernels should be put into the menu.lst
105 ## only counts the first occurence of a kernel, not the
106 ## alternative kernel options
107 ## e.g. howmany=all
108 ## howmany=7
109 # howmany=all
110
111 ## should update-grub create memtest86 boot option
112 ## e.g. memtest86=true
113 ## memtest86=false
114 # memtest86=true
115
116 ## should update-grub adjust the value of the default booted system
117 ## can be true or false
118 # updatedefaultentry=false
119
120 ## should update-grub add savedefault to the default options
121 ## can be true or false
122 # savedefault=false
123
124 ## ## End Default Options ##
125
126 title Ubuntu 8.10, kernel 2.6.27-11-generic
127 uuid d8aee9a5-1b95-43b0-863f-03ad5897884b
128 kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=d8aee9a5-1b95-43b0-863f-03ad5897884b ro quiet splash
129 initrd /boot/initrd.img-2.6.27-11-generic
130 quiet
131
132 title Ubuntu 8.10, kernel 2.6.27-11-generic (recovery mode)
133 uuid d8aee9a5-1b95-43b0-863f-03ad5897884b
134 kernel /boot/vmlinuz-2.6.27-11-generic root=UUID=d8aee9a5-1b95-43b0-863f-03ad5897884b ro single
135 initrd /boot/initrd.img-2.6.27-11-generic
136
137 title Ubuntu 8.10, memtest86+
138 uuid d8aee9a5-1b95-43b0-863f-03ad5897884b
139 kernel /boot/memtest86+.bin
140 quiet
141
142 ### END DEBIAN AUTOMAGIC KERNELS LIST
头像
Mosky
帖子: 17
注册时间: 2009-01-29 0:33
送出感谢: 0
接收感谢: 0

Re: 麻烦哪位贴一个8.10的 /boot/grub/menu.lst

#9

帖子 Mosky » 2009-01-29 14:52

用分割区代号的话,以后新增硬碟的时候得很小心,
如果顺序被挤下去,可就得用Live CD重新改过了。

用UUID应该会好点,UUID查询命令:

代码: 全选

ls -l /dev/disk/by-uuid
回复

回到 “启动和引导”