LFS 6.3 Kernel panic - not syncing:VFS: Unable to mount root

其它Linux/Unix/BSD/OSX等发行版讨论
回复
wyylling
帖子: 51
注册时间: 2008-01-01 22:30
送出感谢: 0
接收感谢: 0
联系:

LFS 6.3 Kernel panic - not syncing:VFS: Unable to mount root

#1

帖子 wyylling » 2008-09-24 20:00

VFS:Unable to mount root fs via NFS,trying floppy
VFS:Cannot open root device "sda10" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partions:
0340 78150744 hdb driver:ide-disk


Kernel panic - not syncing:VFS: Unable to mount root fs on unknown-block(2,0)

The harddisk layout is :

/dev/sda1 * .... HPFS/NTFS
/dev/sda2 .... W95 Ext'd(LBA)
/dev/sda5 .... HPFS/NTFS
/dev/sda6 .... HPFS/NTFS
/dev/sda7 * .... Linux
/dev/sda8 .... Linux swap/Solaris
/dev/sda9 .... Linux
/dev/sda10 .... Linux
My LFS is installed in the /dev/sda10

The grub/menu.lst is:

title Gentoo Linux 2.6
root (hd0,6)
kernel /boot/kernel-genkernel root=/dev/ram0 real_root=/dev/sda9
initrd /boot/initramfs-genkernel

title LFS 6.3
root (hd0,9)
kernel /boot/lfskernel-2.6.22.5 root=/dev/sda10
in the LFS' /boot:System.map-2.6.22.5 lfskernel-2.6.22.5
头像
aitilang
帖子: 1026
注册时间: 2007-04-28 21:38
送出感谢: 0
接收感谢: 0

Re: LFS 6.3 Kernel panic - not syncing:VFS: Unable to mount root

#2

帖子 aitilang » 2008-09-24 22:16

1 sata驱动
2 文件系统模块
fstab
都要配置正确才好
thinkpad x61 2G DDR no cdrom
--------------------------------------------
ABS学习中
sed学习中
awk学习中
perl学习中
新手描述不清,老手猜测不到,胡乱指挥一通,后果难以预料
头像
HuntXu
论坛版主
帖子: 5778
注册时间: 2007-09-29 3:09
送出感谢: 0
接收感谢: 6 次

Re: LFS 6.3 Kernel panic - not syncing:VFS: Unable to mount root

#3

帖子 HuntXu » 2008-09-24 22:36

貌似2.6.18(记不清具体版本)之后已经不分ide和sata和scsi,全当成scsi对待了(不过相应模块还是需要的)...

如果你的是ide硬盘,还是要把scsi编译进去,而可以不要ide那部分...

代码: 全选

[hunt@bubble ~/hunt's/source/rc]$ O_< grep IDE 2.6.26.3.config 
CONFIG_HAVE_IDE=y
# CONFIG_IDE is not set
[hunt@bubble ~/hunt's/source/rc]$ O_< grep SCSI 2.6.26.3.config 
# SCSI device support
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
当然这样子也是可以启动了,把sda10换成hda10貌似就可以了...

我的ide硬盘,如下:

代码: 全选

[hunt@bubble ~]$ O_< dmesg |grep sda
Kernel command line: root=/dev/sda6 vga=791 ro
sd 0:0:0:0: [sda] 80293248 512-byte hardware sectors (41110 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 80293248 512-byte hardware sectors (41110 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda:<7>Switched to high resolution mode on CPU 0
 sda1 < sda5 sda6 sda7 > sda2
sd 0:0:0:0: [sda] Attached SCSI disk
ReiserFS: sda6: found reiserfs format "3.6" with standard journal
ReiserFS: sda6: using ordered data mode
ReiserFS: sda6: journal params: device sda6, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: sda6: checking transaction log (sda6)
ReiserFS: sda6: Using r5 hash to sort names
Adding 497972k swap on /dev/sda5.  Priority:-1 extents:1 across:497972k
P.S.:不要重复发帖...
HUNT Unfortunately No Talent...
头像
HuntXu
论坛版主
帖子: 5778
注册时间: 2007-09-29 3:09
送出感谢: 0
接收感谢: 6 次

Re: LFS 6.3 Kernel panic - not syncing:VFS: Unable to mount root

#4

帖子 HuntXu » 2008-09-24 22:41

貌似2.6.18(记不清具体版本)之后已经不分ide和sata和scsi,全当成scsi对待了(不过相应模块还是需要的)...

如果你的是ide硬盘,还是要把scsi编译进去,而可以不要ide那部分...

代码: 全选

[hunt@bubble ~/hunt's/source/rc]$ O_< grep IDE 2.6.26.3.config 
CONFIG_HAVE_IDE=y
# CONFIG_IDE is not set
[hunt@bubble ~/hunt's/source/rc]$ O_< grep SCSI 2.6.26.3.config 
# SCSI device support
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
当然这样子也是可以启动了,把sda10换成hda10貌似就可以了...

我的ide硬盘,如下:

代码: 全选

[hunt@bubble ~]$ O_< dmesg |grep sda
Kernel command line: root=/dev/sda6 vga=791 ro
sd 0:0:0:0: [sda] 80293248 512-byte hardware sectors (41110 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 80293248 512-byte hardware sectors (41110 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda:<7>Switched to high resolution mode on CPU 0
 sda1 < sda5 sda6 sda7 > sda2
sd 0:0:0:0: [sda] Attached SCSI disk
ReiserFS: sda6: found reiserfs format "3.6" with standard journal
ReiserFS: sda6: using ordered data mode
ReiserFS: sda6: journal params: device sda6, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: sda6: checking transaction log (sda6)
ReiserFS: sda6: Using r5 hash to sort names
Adding 497972k swap on /dev/sda5.  Priority:-1 extents:1 across:497972k
P.S.:不要重复发帖...
HUNT Unfortunately No Talent...
头像
HuntXu
论坛版主
帖子: 5778
注册时间: 2007-09-29 3:09
送出感谢: 0
接收感谢: 6 次

Re: LFS 6.3 Kernel panic - not syncing:VFS: Unable to mount root

#5

帖子 HuntXu » 2008-09-24 22:42

貌似2.6.18(记不清具体版本)之后已经不分ide和sata和scsi,全当成scsi对待了(不过相应模块还是需要的)...

如果你的是ide硬盘,还是要把scsi编译进去,而可以不要ide那部分...

代码: 全选

[hunt@bubble ~/hunt's/source/rc]$ O_< grep IDE 2.6.26.3.config 
CONFIG_HAVE_IDE=y
# CONFIG_IDE is not set
[hunt@bubble ~/hunt's/source/rc]$ O_< grep SCSI 2.6.26.3.config 
# SCSI device support
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
当然这样子也是可以启动了,把sda10换成hda10貌似就可以了...

我的ide硬盘,如下:

代码: 全选

[hunt@bubble ~]$ O_< dmesg |grep sda
Kernel command line: root=/dev/sda6 vga=791 ro
sd 0:0:0:0: [sda] 80293248 512-byte hardware sectors (41110 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 80293248 512-byte hardware sectors (41110 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda:<7>Switched to high resolution mode on CPU 0
 sda1 < sda5 sda6 sda7 > sda2
sd 0:0:0:0: [sda] Attached SCSI disk
ReiserFS: sda6: found reiserfs format "3.6" with standard journal
ReiserFS: sda6: using ordered data mode
ReiserFS: sda6: journal params: device sda6, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: sda6: checking transaction log (sda6)
ReiserFS: sda6: Using r5 hash to sort names
Adding 497972k swap on /dev/sda5.  Priority:-1 extents:1 across:497972k
P.S.:不要重复发帖...
HUNT Unfortunately No Talent...
jijizaza
帖子: 24
注册时间: 2010-02-16 21:20
送出感谢: 0
接收感谢: 0

Re: LFS 6.3 Kernel panic - not syncing:VFS: Unable to mount

#6

帖子 jijizaza » 2010-05-12 9:04

完全不明白,能否详细一点?
回复

回到 “其它类Unix OS发行版”