redhat9.0系统机器中增加一个硬盘,系统启动后根文件系统起不来的问题
我有个硬盘hda中redhat 7.3文件系统超级块坏了,系统起不来了,我先取下此硬盘,换块硬盘hdb重装redhat 9.0, 装好后启动正常, 此时我再把前面系统起不来的硬盘hda也挂上去,想把hda中的分区mount到新装的系统中,恢复数据. 两个盘接在一根数据线上,原hda盘是master,新装盘hdb是slaver,启动时由hdb中系统启动, 结果启动时modprobe检测不到modules.dep,并检测根文件系统时超级块又坏了,提示:
Checking root filesystem
fsck.ext3LABLE=/:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem(and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
***An error occured during the file system check
***Dropping you to a shell;the system will reboot
***when you leave the shell
Give root password for maintenance
(or type Control-D for normal startup):
当我有把原hda盘取下来后,再重启动, hdb又能启动了, 请问这是怎么回事啊? 怎么解决?
------解决方案--------------------可能是因为两块盘上都有LABEL=/的分区,所以还是把第一块盘中的/分区作为/了
检查新盘的/etc/fstab
LABEL=/ / ext3 defaults 1 1
把它换成设备名试下
/dev/hdb1 / ext3 defaults 1 1
如/dev/hdb1 第一个IDE口上slaver盘的第一个分区