Re: ext2 file recovery software

2002-06-13 Thread Anthony DeRobertis


On Wednesday, June 12, 2002, at 06:30 , Paul Scott wrote:

I have an ext2 partition which was formerly my working 
woody/sid system.  Someone (not me) began a woody installation 
on that partition. Apparently a new file system was initialized 
destroying the first 500 blocks of a 4 GB partition.


There are backup superblocks spaced throughout the partition. 
mke2fs (!) will be able to tell you where they are, if you used 
the default (make sure to give it the do nothing flag...).


Once you have the backup superblocks, e2fsck might be able to help you.

Make sure to only work on a copy. And read the man pages.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: ext2 file recovery software

2002-06-13 Thread Paul Scott,,,

Anthony DeRobertis wrote:



On Wednesday, June 12, 2002, at 06:30 , Paul Scott wrote:

I have an ext2 partition which was formerly my working woody/sid 
system.  Someone (not me) began a woody installation on that 
partition. Apparently a new file system was initialized destroying 
the first 500 blocks of a 4 GB partition.


There are backup superblocks spaced throughout the partition. 


I was thinking that creating a new file system (the problem) would have 
written new backup superblocks.  Am I wrong?  I would be glad to be 
wrong!  What if an fsck had been done just after the problem happened?


mke2fs (!) will be able to tell you where they are, if you used the 
default (make sure to give it the do nothing flag...).


Once you have the backup superblocks, e2fsck might be able to help you.

Make sure to only work on a copy.


Yes.

And read the man pages. 


I've read a fair amount including several sections of *Understanding the 
Linux Kernel* and I will keep reading.


Thanks,

Paul



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: ext2 file recovery software

2002-06-13 Thread Anthony DeRobertis


On Thursday, June 13, 2002, at 12:41 , Paul Scott,,, wrote:



I was thinking that creating a new file system (the problem) 
would have written new backup superblocks.  Am I wrong?  I 
would be glad to be wrong!  What if an fsck had been done just 
after the problem happened?


Well, if only the first 500 sectors or so are gone, you still 
have backup superblocks left. For example:


bohr:/home/anthony# mke2fs -F -n /dev/sda1
mke2fs 1.27 (8-Mar-2002)
... snip ...
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736

If you don't have any superblocks left, read about the -S 
option, which can give you new ones.


Any fsck on a file system where the primary superblock was 
destroyed would (I think) error out.


Also, there is e2recover which might help, too.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]