|
编译安装2.6内核的过程中没有任何错误提示,但是没有能启动成功,提示以下错误(启动过程的最后三行,到这就死机了,要按复位才能重启)
[code:1]VFS:Cannot open root device "LABEL=/" or unknow-block(0,0)
Please append a correct "root=" boot option
Kernel panic:VFS:Unable to mount root fs on unknow-block(0,0)[/code:1]
2.4.20-8的内核还可以正常启动。
这个应该修改什么地方呢?root=应该加在什么地方?
这是我的/boot/grub/grub.conf文件
[code:1]# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,1)
# kernel /boot/vmlinuz-version ro root=/dev/hda2
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=30
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.6.0-test6)
root (hd0,1)
kernel /boot/vmlinuz-2.6.0-test6 ro root=LABEL=/
initrd /boot/initrd-2.6.0-test6.img
title Red Hat Linux
root (hd0,1)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /boot/initrd-2.4.20-8.img
title Microsoft Windows
rootnoverify (hd0,0)
chainloader +1
[/code:1]
这是硬盘分区
[code:1]Device Boot Start End Blocks Id System
/dev/hda1 * 1 653 5245191 7 HPFS/NTFS
/dev/hda2 654 1307 5253255 83 Linux
/dev/hda3 1308 4865 28579635 f Win95 Ext'd (LBA)
/dev/hda5 1308 2090 6289416 7 HPFS/NTFS
/dev/hda6 2091 2874 6297448+ 83 Linux
/dev/hda7 2875 4603 13888161 b Win95 FAT32
/dev/hda8 4604 4734 1052226 82 Linux swap
/dev/hda9 4735 4865 1052226 7 HPFS/NTFS
[/code:1]
这是/etc/fstab
[code:1]LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/usr /usr ext3 defaults 1 2
/dev/hda8 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hda1 /mnt/c ntfs user,iocharset=cp936,umask=0 0 0
/dev/hda5 /mnt/d ntfs user,iocharset=cp936,umask=0 0 0
/dev/hda7 /mnt/e vfat iocharset=cp936,umask=0 0 0
/dev/sda1 /mnt/usb vfat noauto,user,iocharset=cp936,umask=0 0 0[/code:1]
请高人指点。谢谢!!! |
|