Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th June 2007, 16:52
iZm iZm is offline
Junior Member
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem resizing ext3 partition

I was trying to expand my ext3 partition and I followed the howto . Everything was going well until I had to reboot in order to resize the filesystem. When typing
$ e2fsck -f /dev/sda2
the output is not the expected:
----------------
e2fsck 1.40-WIP (14-Nov-2006)
Couldn't find ext2 superblock, trying backup blocks...

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>
----------------

any suggestions?they'll be much appreciated...
Thanks
Reply With Quote
Sponsored Links
  #2  
Old 11th June 2007, 19:17
iZm iZm is offline
Junior Member
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok, i'm kind of desperate here...
I'm using knoppix to expand the 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 posted above.
anyway, here it is:
Quote:
e2fsck 1.40-WIP (14-Nov-2006)
Couldn't find ext2 superblock, trying backup blocks...

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).

Is there any hope for me?
Please help
Thanks
Reply With Quote
  #3  
Old 12th June 2007, 13:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,566 Posts
Default

Please try GParted: http://www.howtoforge.com/partitioning_with_gparted
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 16th June 2007, 16:39
igster igster is offline
Junior Member
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have the same problem after following your howto to the letter.

Has it worked for other people and I'm just unlucky?

I feel stupid having trusted it and deleting my partition. There's no way to recover it at this point?
Reply With Quote
  #5  
Old 16th June 2007, 18:59
igster igster is offline
Junior Member
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just in case anyone else has experiences the same problem I did...

I was able to recover my partition table with TestDisk. I still haven't found a way to resize my partition but at least I got my data back.
Reply With Quote
  #6  
Old 17th June 2007, 01:40
iZm iZm is offline
Junior Member
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

your hope is testdisk, it didn't quite work for me but it is a very powerful tool and it as worked for others


[edit] sorry, didn't see your second post lol (replied automatically from the notification mail link) anyways, i'm glad it worked!
Reply With Quote
  #7  
Old 17th June 2007, 04:53
igster igster is offline
Junior Member
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

FYI - I was able to resize my ext3 partition with the GParted LiveCD. It took about 5 hours to grow it from 50 GB to 120 GB.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Shrink ext3 partition and convert to ntfs? NewLeaf Installation/Configuration 2 30th March 2007 07:25
Problem with SystemImager Restore checker HOWTO-Related Questions 5 5th October 2006 16:55
Postfix+MySQL Problem jasutton Installation/Configuration 1 15th June 2006 16:06


All times are GMT +2. The time now is 01:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.