Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
ok, i'm kind of desperate here...
I'm using knoppix to expand my ext3 partition..
i ran fsck on sda2 (the partition i want to expand), and removed the journal to change its type to ext2..
Then, i used fdisk to delete the partition and to create a new one, specifying the first and last cylinder, so it would enclose the free space i had behind the partition and the partition itself.I finally wrote the partition table on disk (using w) and quit fdisk. So far, so good... Here's when the problems started. I rebooted and went back on Knoppix.then I tried to run e2fsck /dev/sda2 and the output was the error quoted below.
e2fsck: Bad magic number in super-block while trying to open /dev/sda2
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
So now i can't resize the filesystem, can't undo what i've changed in the partition table, and obviously can't boot with ubuntu nor windows because grub won't work (gives error 17).
Thanks for the quick reply
I did try to use parted, but while reading about it, it came to my understanding that it wasn't able to resize ext3 type partitions. Maybe i got it wrong...
Well, i'll try testdisk right away.
I'll post the results briefly.
It's a library problem on the knoppix 5.1 cd.
After correcting that it ran fine. Under the 'Advanced Filesystem Utils' there it was. The answer to all my prayers, 'Advanced Find EXT2 EXT3 Backup SuperBlock'. I executed it and a wonderful scan started. In the end, it didn't find anything. As I said, life sucks. Is there any other util that I may use to find the damned backup superblock?
here's a screenshot, that's what i get at the end of the scan.
I was hoping I didn't have to ask this, but could you be a little more specific? I've been playing around with the menus and I can't seem to find any option to restore my partition table. On the contrary, through the scans I've been doing I get the most impressive and weird partition tables
Well, the testdisk is not a program one uses on daily basis. I do not remember! All I remember the write function was hard to find, not intuitive at all. Try man pages and testdisk web site, come back if totally stuck, I'll try to boot Knoppix myself then.
Do you have any important data on that disk you haven't backed up? If yes then you may want to take an image of that disk with dd and store it in a safe place.
Hi guys, what an odyssey i spent all night around my partitions and, long story short, it didn't worked. I mean, something must have worked, I managed to restore the partition table to its original form, kind of, because by doing that my vista partition disappeared...
Like I said, I managed to restore the partition table (found the write function) without the windows partition, wihich turned into unallocated space. Finally 'testdisk' gave me some superblocks, 10 to be more precise. So I ran
I was then finally able to execute e2fsck...but guess what, now there's a new problem I can't boot into Ubuntu because when I turn the pc on the (in)famous Grub's error 17 comes up... My patience is not what it used to be, and I think the only real solution will be to start partitioning from scratch. But hey, please prove me wrong