LINUX无法启动,启动rescue mode无法mount文件系统
上周末停电,这周重新开机的时候linux进入不了linux了,具体症状如下。
启动参数
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /initrd-2.4.20-8.img
使用以上参数启动后报出以下错误。VFS: Mounted root (ext2 filesystem).
Red Hat nash version 3.4.42 starting
Loading jbd.o module
Journalled block Device driver loaded
Loading ext3.o module
Mounting /proc filesystem
Creating block devices
Creating root device
Mounting root filesystem
EXT3-fs: INFO: recovery required on readonly filesystem.
EXT3-fs: write access will be enabled during recovery.
hda: dma_initr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_initr: error=0x40 { UncorrectableError }, LBAsect=213069,
sector=4224
end_request: I/O error, dev 03:02 (hda), sector=4224
JBD: IO error reading journal superblock
EXT3-fs: error loading journal.
mount: error 22 mounting ext3
pivotroot: pivot_root (/sysroot, /sysroot/initrd) failed:2
umount /initrd/proc failed:2
Freeing unused kernel memory: 132k freed
Kernel panic: No init found. Try passing init= option to kernel
当我把kernel参数设成
kernel /vmlinuz-2.4.20-8 ro hda=noprobe root=LABEL=/
时,启动时报出
LABEL=/
是不正确路径
再把kernel参数设成
kernel /vmlinuz-2.4.20-8 ro hda=noprobe root=/dev/hda1
或者
kernel /vmlinuz-2.4.20-8 ro hda=noprobe root=/dev/hda2
或者
kernel /vmlinuz-2.4.20-8 ro hda=noprobe root=/dev/hda3
时,报错说hda1-3都不是正确的路径
VFS: Cannot open root device "hda1"("hda2","hda3") or 03:01
please append a correct "root=" boot option
Kernel panic: VFS: Uable to mount root fs on 03:01
选择进入rescue mode时,自动搜索安装的linux以后报出如下错误
Error mounting file system on hda2: Invalid argument
按下OK
you don't have any linux partitions. press return to get a shell.
the system will reboot automatically when you exit from the shell.
然后自动进入sh-2.05b#命令行
输入fdisk -l
device boot start end blocks id system
/dev/hda1 * 1 13 104391 83 linux
/dev/hda2 14 14816 1189XXXX 83 linux
/dev/hda3 14817 14946 1044225 82 linux swap
看上去引导用的是hda1, 但是为什么rescue mode时说无法加载hda2的文件系统呢。
真愁人啊,是不是硬盘坏了?还是启动时设置的参数不对呀。。。急死人了。
是不是能有好心人麻烦帮忙确定下下状况。
在此多谢了
(^_^)!