[NTLUG:Discuss] ext2fs problem
alton@trainers-r-us.com
alton at trainers-r-us.com
Tue Aug 28 20:34:25 CDT 2001
Shane Allen wrote:
>
> Below is the output of two commands. Where I am stuck currently is that I am not terribly familiar with the filesystems... It's not something I've ever spent much time learning.
>
> Do any of you have any sage advice for how I can go about repairing the drive (array)? Also, if you have a suggestion, what do you think the chances are that the suggestion will work, and what do you think the chances are that it will leave the drive unrecoverable? I don't expect perfect guesses here, obviously. TIA
>
> [root at enterprise /root]# df -H
> Filesystem Size Used Avail Use% Mounted on
> /dev/hda1 255M 71M 170M 30% /
> /dev/hda5 1.0G 12M 972M 2% /home
> /dev/hda8 255M 19k 241M 1% /tmp
> /dev/hda9 3.5G 2.2G 1.1G 66% /usr
> /dev/hda7 510M 72M 411M 15% /var
> /dev/sda 236G 190G 34G 85% /files
>
> [root at enterprise /root]# fsck /files
> Parallelizing fsck version 1.19 (13-Jul-2000)
> e2fsck 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
> fsck.ext2: Input/output error while trying to open /files
>
> 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>
>
> --
> Shane Allen <shane at tacni.net>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
First, unmount /files and run:
mke2fs -n /dev/sda
This will generate output as if it were creating a new filesystem but it
really isn't. Pick one of the alternate superblocks from the list.
Then run
e2fsck -b <the block you picked> /dev/sda
Remount /files when it is done.
NOTE: Although, I have never had to do this in linux, the Solaris
equivalent has worked each and everytime I've had to do it (and that is
more times than I care to remember).
--
Alton R. Pouncey, II
SCSA, SCSA, CCNA, CIW Associate
Director of Information Services
'print pack("H*","616c746f6e40747261696e6572732d722d75732e636f6d"), $/'
More information about the Discuss
mailing list