I'm worried toat fsck is corrupting your filesystem.... That implies that something else is seriously wrong -- either the controller, the kernel or the copy of e2fsck that you're using.<br><br>At this point, I'd suggest doing the FSCK from a CD.  If you have the time to work on this, you can try an 'fsck -n' to see if you have good resuts without writing to the drive.<br>
In the meantime, I would also verify the FSCK instance.   If you're running Red Hat, that would be an <br>   rpm --verify {package-name}<br>{package-name} is probably e2fstools, but I'm not currently on a redhat system to check that right now.   I'm not sure what the debian equivalent is.<br>
<br>manually starting fsck also has the advantage that the system will be more resliant to errors. It asks questions before it does things, but it will ask to fix problems that would cause an abort during a pre-mount preen.<br>
<br>In any case, boot from a CD,  do a system memory check (to make sure you have no bad RAM), and then manually start the FSCK.   If all of that works, then I would say that your root filesystem is corrupt.  Try using chkrootkit to see if there's a root kit installed, or just reload the OS.<br>
<br><br><div class="gmail_quote">2010/2/21 Albert Sellarčs <span dir="ltr"><<a href="mailto:whats@wekk.net">whats@wekk.net</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
e2fsck quits after the bad magic number message. I didn't pasted the<br>
entire e2fsck output (sorry!). The full output was that:<br>
<br>
root@pacs:~# e2fsck -C 0 -y -t /dev/storage/cabina_snapshot2<br>
e2fsck 1.41.9 (22-Aug-2009)<br>
/dev/storage/cabina_snapshot2 contains a file system with errors, check<br>
forced.<br>
Pass 1: Checking inodes, blocks, and sizes<br>
/dev/storage/cabina_snapshot2: |==================              / 60.0%<br>
<br>
[...]<br>
<br>
Until 60% of the progress bar, there was no error messages. After reach<br>
the 60%, e2fsck started fixing a lot of things. In the output I<br>
recognized the inode that it was analyzing. Once e2fsck analyzed the<br>
last inode of the filesystem, it printed this message and exited:<br>
<div class="im"><br>
Pass 1: Memory used: 268k/18014398508105072k (59k/210k), time:<br>
65673.66/1550.92/1371.06<br>
Pass 1: I/O read: 253456MB, write: 23885MB, rate: 4.22MB/s<br>
Restarting e2fsck from the beginning...<br>
e2fsck: Superblock invalid, trying backup blocks...<br>
e2fsck: Bad magic number in super-block while trying to<br>
open /dev/storage/cabina_snapshot<br>
<br>
</div>The superblock could not be read or does not describe a correct ext2<br>
filesystem.  If the device is valid and it really contains an ext2<br>
filesystem (and not swap or ufs or something else), then the superblock<br>
is corrupt, and you might try running e2fsck with an alternate<br>
superblock:<br>
    e2fsck -b 8193 <device><br>
<br>
About your questions:<br>
<br>
The content of the default superblock (I mean the superblock located at<br>
block 0) was correct before to launch e2fsck because I was able to mount<br>
it and use the filesystem. (I also dumped their content and checked it).<br>
<br>
After the filesystem check, the superblock was filled only with zeros<br>
(no magic number, no inode counts, etc...), all the 4096 bytes at zero.<br>
<br>
<br>
I've not tried to launch the e2fsck over a backup superblock instead of<br>
over the default one because I think that this would produce the same<br>
result. I'm sure that the original superblock was not corrupted then I<br>
guess that with a backup superblock, e2fsck would have the same<br>
behavior.<br>
<br>
What do you think? Should I try to launch it over a backup superblock at<br>
the first time?<br>
<br>
Any other ideas?<br>
<br>
Thanks you very much!<br>
<br>
<br>
El dg 21 de 02 de 2010 a les 04:51 -0800, en/na Stephen Samuel (gmail)<br>
va escriure:<br>
<div><div></div><div class="h5">> The system is using the backup superblock -- which sounds  reasonable,<br>
> under the circumstances, and should result in a half-decent recovery.<br>
><br>
> A couple of questions:<br>
> Was the superblock zero to begin with, or did it become zero during<br>
> the FSCK?<br>
> In either case, I'm worried about the zero data having been written.<br>
> This is obviously worth further investigation.<br>
> Did the system abort the FSCK after this error? or did you stop it?<br>
> did you try explicitly using one of the backup superblocks?<br>
>   a list of backup superblocks can be found by using -n on mkfs<br>
>   check the -b option on fsck.ext2 for more details on the backup<br>
> superblock defaults.<br>
><br>
> 2010/2/21 Albert Sellarčs <<a href="mailto:whats@wekk.net">whats@wekk.net</a>><br>
>         Hi all,<br>
><br>
>         I'm trying to fix a 7.5Tb ext3 filesystem using e2fsck on a<br>
>         x86_64<br>
>         machine with plenty of memory ram. The filesystem is<br>
>         corrupted, but I<br>
>         can mount <a href="http://it.is" target="_blank">it.is</a><br>
><br>
>         Before starting the filesystem check, I did a LVM snapshot to<br>
>         be able to<br>
>         start it again from the same point in case of error.<br>
><br>
>         After 12 hours checking the filesystem, I got this error<br>
>         message:<br>
><br>
>         Pass 1: Memory used: 268k/18014398508105072k (59k/210k), time:<br>
>         65673.66/1550.92/1371.06<br>
>         Pass 1: I/O read: 253456MB, write: 23885MB, rate: 4.22MB/s<br>
>         Restarting e2fsck from the beginning...<br>
>         e2fsck: Superblock invalid, trying backup blocks...<br>
>         e2fsck: Bad magic number in super-block while trying to<br>
>         open /dev/storage/cabina_snapshot<br>
><br>
>         Once I saw this message, my first thought was that e2fsck<br>
>         didn't manage<br>
>         to fix the filesystem and it corrupted the superblock. To be<br>
>         sure I<br>
>         dumped the entire block and compared it against the original<br>
>         superblock.<br>
>         Doing that I realized that the entire superblock only<br>
>         contained zeros.<br>
><br>
>         Any ideas of what can I do?<br>
><br>
><br>
> --<br>
> Stephen Samuel <a href="http://www.bcgreen.com" target="_blank">http://www.bcgreen.com</a>  Software, like love,<br>
> 778-861-7641                              grows when you give it away<br>
</div></div><div><div></div><div class="h5">--<br>
  Albert Sellarčs        GPG id: 0x13053FFE<br>
  <a href="http://www.wekk.net" target="_blank">http://www.wekk.net</a>    <a href="mailto:whats@jabber.org">whats@jabber.org</a><br>
  Linux User: 324456<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Stephen Samuel <a href="http://www.bcgreen.com">http://www.bcgreen.com</a>  Software, like love, <br>778-861-7641                              grows when you give it away<br>