1 (edited by Loffe 2007-07-08 23:16:47)

Topic: [SOLVED]Power failure during partition resize

Hi,

I have a little problem. Or I think it might not be so small after all. I'll start from the beginning...

My home partition was to small so I had to resize it. Using the GParted LiveCD it set off with checking the disk( no error) and then growing the filesystem(ext3).

Then it worst of all things happened. There was a power failure it came from nowhere. When that happend, I said some words that would probably make my post stuck in the forum filters

When I started up the LiveCD again it said my partition was unknown.
And I could not mount it with:

mount -t ext3 /dev/sda6 /mnt/try
mount: wrong fs type, bad option, bad superblock on /dev/sda6,
missing codepage or other error

Doesn't sound to good, does it?
I realize that all my data might be gone ( I got a backup of most stuff ), but from the growfs man page I read this:

growfs non-destructively expands a mounted or unmounted UNIX
file system (UFS) to the size of the file system's slice(s).
Growing the filesystem seems to be a relative easy operation, compared to (re)moving files and more.

As you might have guessed my question follow:
Is there any way to save my beloved partition?
Any way recreate the a ext3 fs without writing zeros to the whole partition?

With hope of a more stable power grid,
Loffe

PS. This is also posted at http://ubuntuforums.org/showthread.php?t=495679

EDIT: solved

2

Re: [SOLVED]Power failure during partition resize

You could try to use Testdisk.

http://www.cgsecurity.org/wiki/TestDisk

I think it's about the only thing that could save you now.

Patrick Verner
www.partedmagic.com

3

Re: [SOLVED]Power failure during partition resize

Thank you Patrick, I love you big_smile

Testdisk worked like a charm and I got my partition back on track again.

It still has the old small size, but what I can see there has been no data loss.
Before I try to resize it again I'll get an ups.

Thanks once again,
Loffe

4

Re: [SOLVED]Power failure during partition resize

Don't love me, love the guy who made Testdisk.

Patrick Verner
www.partedmagic.com

5

Re: [SOLVED]Power failure during partition resize

? good idea is to take backup of the M.B.R. before any partition works, so that you can restore it if something goes wrong.

*** It is highly recommended to backup any important files before doing resize/move operations. ***