LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Recovering ext3 partition after unsuccessful resizing (https://www.linuxquestions.org/questions/linux-hardware-18/recovering-ext3-partition-after-unsuccessful-resizing-806630/)

fau 05-08-2010 05:09 AM

Recovering ext3 partition after unsuccessful resizing
 
Hello,
I've tried to resize my home partition using parted. Prior to it I had removed ext3 flags following some advices found on net. Resizing failed and I ended up with filesystem bigger than partition. Then I managed to enlarge the partition using fdisk but it didn't help. When I run fsck on it it prints:
Code:

fsck from util-linux-ng 2.16.2
e2fsck 1.41.9 (22-Aug-2009)
fsck.ext2: Group descriptors look bad... trying backup blocks...
fsck.ext2: Bad magic number in super-block when using the backup blocks
fsck.ext2: going back to original superblock
fsck.ext2: Device or resource busy while trying to open /dev/sda6
Filesystem mounted or opened exclusively by another program?

(Same message when fscking from live cd).
I had a backup of most important data and it was a new system, but there where some notes that I had made whilst setting my linux up and it would be nice to have it back.

syg00 05-08-2010 05:26 AM

In future use gparted (from a liveCD) and don't worry about removing the journal.
Try photorec - plenty of threads here about what it does and how to use it.

fau 05-08-2010 05:56 AM

I know that best way to do such things is by live cd but I haven't had external cd back then :) .
edit: It works for me, thank you :)

pixellany 05-08-2010 08:44 AM

Some nitpicks in the original post--maybe not relevant, but:

I was not aware that it would be possible to make the filesystem bigger than the partition.

fdisk does not re-size partitions.

fau 05-08-2010 02:18 PM

Yes, but parted does. (I was persistent when I shouldn't be)


All times are GMT -5. The time now is 10:00 AM.