View previous topic :: View next topic |
Author |
Message |
thomasvk Guru
Joined: 19 Mar 2005 Posts: 597
|
Posted: Thu Feb 23, 2006 12:11 pm Post subject: I think I destroyed my filesystem, what now? |
|
|
I was trying to resize my root partition to allow for a test installation of another distro, but resizing an ext3 filesystem proved to be very difficult. I tried with parted/qtparted and gparted, but all not worked. I then tried resize2fs and it resized my filesystem correctly, but not the partition. Then I fiddled a little here and there with fdisk/cfdisk and resize2fs. Now when I try resize2fs I get the error to run e2fsck. But when I do e2fsck -f /dev/hda3, I get:
Code: | # fsck.ext2 /dev/hda3
e2fsck 1.38 (30-Jun-2005)
The filesystem size (according to the superblock) is 3063040 blocks
The physical size of the device is 382880 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? no
/dev/hda3 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Error reading block 457477 (Invalid argument) while reading indirect blocks of inode 124. Ignore error<y>? yes
Force rewrite<y>? yes
Error writing block 457477 (Invalid argument) while reading indirect blocks of inode 124. Ignore error<y>? yes
Error reading block 457503 (Invalid argument) while reading indirect blocks of inode 208. Ignore error<y>? yes
Force rewrite<y>? yes
Error writing block 457503 (Invalid argument) while reading indirect blocks of inode 208. Ignore error<y>? |
When I choose no the program exits. When I choose yes it goes on and on for ever with these notices/errors.
What am I to do to get the best results? I guess I can't avoid destruction of my filesystem in some way, but I would appreciate a solution to have as little destruction as possible. Luckily, I backed up my /home, but one dir I would like to backup also is /root. Any suggestions? |
|
Back to top |
|
|
Abraxa Apprentice
Joined: 14 Jun 2005 Posts: 174 Location: Germany
|
Posted: Thu Feb 23, 2006 3:17 pm Post subject: |
|
|
Oh my, you sure got yourself into a mess there... ;x
You could give DFSee a shot - it's not very intuitive but it's really powerful. Only problem is that apparently its ext2/3 support is rather weak at the moment but maybe the docs are just outdated? It's worth trying nevertheless :)
You might want to check out chapter 8 of http://www.dfsee.com/dfsee/dfshowto.txt to make a backup first, though.
-Soeren |
|
Back to top |
|
|
thomasvk Guru
Joined: 19 Mar 2005 Posts: 597
|
Posted: Thu Feb 23, 2006 4:57 pm Post subject: |
|
|
Well, e2fsk seems to have put everything in /lost+found. I'm still thinking about wether I just delete the partition and reinstall or actually go and sort all files out. Thanks for the suggestion, but it's of no help anymore, now.
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|