硬盘安装9.04,分区是ext4格式,不写MBR,现无法引导,求助~

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
头像
speari
帖子: 144
注册时间: 2007-04-29 0:56

硬盘安装9.04,分区是ext4格式,不写MBR,现无法引导,求助~

#1

帖子 speari » 2009-05-27 8:36

C盘XP系统,DEF是逻辑分区,G是/,是EXT4格式,F是SWAP

硬盘安装9.04之后,分区时高级选安装在/dev/sda8,安装好后,进入XP,此时忘了弄menu.lst了,于是再次通过硬盘安装的方法,live CD进入9.04的体验桌面,进入/boot/grub打开menu.lst,发现如下:

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

## 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=ee768126-e579-4c54-9f92-150f4d99e119 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=ee768126-e579-4c54-9f92-150f4d99e119

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

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect

## 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 9.04, memtest86+
uuid ee768126-e579-4c54-9f92-150f4d99e119
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST


我狂晕,没有注释掉的那个,好像是检测内存的,我该如何引导进入9.04呢?不知道哪位大大有这种经历,请帮解决一下,非常感谢。
头像
speari
帖子: 144
注册时间: 2007-04-29 0:56

Re: 硬盘安装9.04,分区是ext4格式,不写MBR,现无法引导,求助~

#2

帖子 speari » 2009-05-27 8:39

我的是grub4dos-0.4.4,应该是支持EXT4的吧,就是不知道如何引导进入。能不能让它自己查找EXT4进入?
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 硬盘安装9.04,分区是ext4格式,不写MBR,现无法引导,求助~

#3

帖子 smallapple » 2009-05-27 8:48

grub4dos-0.4.4可以支持ext4,弄好后会自动寻找menu.lst。
看你的menu.lst安装时内核不完整,按这个处理下。

viewtopic.php?f=77&t=206001
ibaiye
帖子: 2
注册时间: 2008-12-25 9:49

Re: 硬盘安装9.04,分区是ext4格式,不写MBR,现无法引导,求助~

#4

帖子 ibaiye » 2009-05-27 10:57

再用硬盘安装的方法进LiveCD的环境,在终端用sudo blkid这个命令看你Ubuntu分区的uuid,记下来

再回到Windows中修改你的menu.lst,内容只有下面这些:

title Ubuntu 9.04
uuid cd97da40-fe44-453e-965d-6259e3ff96a6
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=cd97da40-fe44-453e-965d-6259e3ff96a6 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

记得要替换成你自己的Ubuntu分区的uuid,上面的是我的。

我就是这样手动引导的,Windows盘就只有grldr文件和menu.lst,然后改了boot.ini的内容,加了一行c:\grldr="GRUB"
我也是看别人的帖子,不太会,只是用起来还不错,你试试。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: 硬盘安装9.04,分区是ext4格式,不写MBR,现无法引导,求助~

#5

帖子 eexpress » 2009-05-27 10:59

live看的/,是live的
看看chroot
● 鸣学
头像
speari
帖子: 144
注册时间: 2007-04-29 0:56

Re: 硬盘安装9.04,分区是ext4格式,不写MBR,现无法引导,求助~

#6

帖子 speari » 2009-05-28 8:00

谢谢楼上几位,我已经顺利安装成功,并且进入系统发帖了。再次感謝。
crifan
帖子: 21
注册时间: 2007-06-13 10:20

Re: 硬盘安装9.04,分区是ext4格式,不写MBR,现无法引导,求助~

#7

帖子 crifan » 2009-08-01 16:13

我也刚在硬盘安装Ubuntu9.04,安装过程中,前面遇到问题,和楼主的一样。
现在最后的遇到的问题是,系统安装后,连initrd.img也没有拷贝到/boot下
而/下,只有两个链接,vmlinuz和initrd.img,都是指向/boot先两个文件
但是现在/boot下,这两个文件都没有
其中的vmlinuz可以从iso中拷贝,但是initrd.img,找不到啊
只有个initrd.gz,貌似只是用于安装的,而不是正常使用版本的吧?

求高手解答。。。
crifan
帖子: 21
注册时间: 2007-06-13 10:20

Re: 硬盘安装9.04,分区是ext4格式,不写MBR,现无法引导,求助~

#8

帖子 crifan » 2009-08-01 16:50

刚才,在无奈之下,用了initrd.gz,结果是,也可以正常引导系统。。。。
不过,还是请高手告知之前问题的根本原因。。。
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 硬盘安装9.04,分区是ext4格式,不写MBR,现无法引导,求助~

#10

帖子 smallapple » 2009-08-01 19:40

initrd.gz是initrd.img的压缩包,如果系统还没升级过,当然可以引导进入系统。
回复