On 09-Mar-05 Jenny Hopkins wrote:
On Wed, 9 Mar 2005 16:26:46 +0000, Paul bdi-emc@ntlworld.com wrote:
Man pages for e2fcsk, mke2fs, and mount should provide additional info if needed.
Regards, Paul.
Hi, I've got the disk mounted. Hoorah hoorah! I re-ran e2fsk, then ran tune2fs -j, and then it finally mounted - I had tried them yesterday but maybe I did something else in between then and now. Anyway. That was the good news. The bad news is - ls for /mnt/hda1 shows nothing but lost and found, whereas df -h shows /dev/hda1 to be 71% full (what it was before it crashed). Lost and found is full of things listed like this: root@0[lost+found]# ls -l #1098288 -rw-r--r-- 1 root root 2910 Nov 12 2003 #1098288 I suspect they will add up to the 71%. I don't suppose I will rescue my data now, but I am curious as to what these are and what actually happened. Are they the 'inodes'?
Hi Jenny,
I confess that when I saw your original post my reaction was "OUCH!!"
I'm a bit surprised that the OS mounted the partition as swap when mkswap had not been run on it -- apparently it didn't check whether it had been formatted as a swap partition.
Anyway, given that it happened my strong guess is that a lot of things got trashed if it was used in action as a swap partition.
Normally the things you find in lost+found like #1098288 are file fragments which correspond to lost inodes: it's a chunk of stuff which fsck can't manage to link to anything else.
If these are fragments of text files, then you've got some hope of reconstructing the originals, with a lot of work, since it's possible to read them!
But when they're bits of binary files (including things like base64-encoded attachments) then you haven't really got much hope.
Also, if these are chunks of swap, then they won't be bits of what was on the disk originally anyway.
Oh dear.
Best wishes, and sympathy, Ted.
-------------------------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@nessie.mcc.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 09-Mar-05 Time: 19:45:29 ------------------------------ XFMail ------------------------------