View previous topic :: View next topic |
Author |
Message |
pawn n00b
Joined: 19 Jun 2004 Posts: 11
|
Posted: Thu Mar 24, 2005 7:41 pm Post subject: cant mount ext2(or swap?) anymore. Help recovering data |
|
|
Hi
I was going to shrink my root partition (hda1) to create an home one. I started knoppix and played with resize2fs and fdisk. I managed to get 20Go, deleted the swap partition (old hda2) and created a new ext2 one (new hda2). i omited to swapoff -a before deleting the old swap - this is maybe my error. But i managed to mount my hda2 after that and styarted to backup my home directory. The partition was quickly full, i restarted to shrink my root partition and filesystem; then enlarged my hda2 partition, but when i would resize the filesystem, i got this error :
Code: |
root@ttyp1[mnt]# resize2fs -p /dev/hda2
resize2fs 1.35 (28-Feb-2004)
resize2fs: Bad magic number in super-block while trying to open /dev/hda2
Couldn't find valid filesystem superblock.
|
I tried to e2fsck with an equivalent error. And i couldnt mount it anymore.
I dont know what i did to make that happen.
Ask me whatever, my consoles are still open, i can send you all commands i typed.
thx
pawn |
|
Back to top |
|
|
leftbas Tux's lil' helper
Joined: 25 Nov 2003 Posts: 101 Location: Pasadena, Ca
|
Posted: Thu Mar 24, 2005 7:55 pm Post subject: |
|
|
If I had to guess, I'd say that the MBR hasn't been updated. In otherwords, it doesn't know you've resized the partition. Might have been caused by deleting the swap partition. I would have left that alone. You might just have hosed those partitions completely at this point. I hope you at least backed up your home directory before you resized. I don't imagine it would make any difference, but have you tried booting up to the Gentoo live CD?
You'll probably have to start from scratch. Good luck. _________________ "In retrospect, everything is funny."
-- anonymous |
|
Back to top |
|
|
pawn n00b
Joined: 19 Jun 2004 Posts: 11
|
Posted: Thu Mar 24, 2005 8:04 pm Post subject: |
|
|
Im currently using knoppix, so the live cd wont be different, i guess. I didnt backup anythingthing and thats the problem. I need at least my docs and mails. My datas are still written on some part of the disk and not damaged. It should be a way to get them back. The worse thing is that I couldnt mount the partition again whithoiut having done anything on it
But your right, if i dont manage to get them tonight, ill have to restart from scratch tomorrow
pawn |
|
Back to top |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Thu Mar 24, 2005 8:17 pm Post subject: |
|
|
Pehraps you can try recreating only the superblock and group descriptors: Code: | # mke2fs -S /dev/hda2 | Then perhaps you would want to fsck it to be safe:Hth! _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
|
pawn n00b
Joined: 19 Jun 2004 Posts: 11
|
Posted: Thu Mar 24, 2005 8:49 pm Post subject: |
|
|
I didnt know this options.
It was the best thing to do i gues, thx for your reply.
Anyway, from the output of e2fsck, i think my data are really lost.
Ill restart everything from scratch with a stage 1 install. Hopefully, there some data on my root partition i cant backup
thx
pawn |
|
Back to top |
|
|
|