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 2nd January 2009, 20:55
kevinluu kevinluu is offline
Junior Member
 
Join Date: Jan 2009
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default Bad magic number in super-block while trying to open /dev/sda2

Dear Mr. Falko,

First of all, i would like to thank you for the steps on "How To Resize ext3 Partitions Without Losing Data" that you post on the web-site.

I am very very new to Linux.

After cloning the original disk 250GB (/dev/sda2 in this disk has about 224GB) to a new 500GB disk, i then re-partition the /dev/sda2 to have about 490GB.

I then following the steps that show how to "Enlarging An ext3 Partition" from this link:


http://www.howtoforge.com/linux_resi...xt3_partitions


One of these steps ask me to enter the command: fsck -n /dev/sda2
i got the error message as shown below:

"
...
...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda2
...
...
"


However, if i enter command: fsck -n /dev/sda1
i got:

"
...
...
/boot: clean, 36/26104 files, 17488/104388 blocks
"

The comand : tune2fs -o^has_journal /dev/sda2
also shows error:

"
...
Bad magic number in super-block while trying to open /dev/sda2
Couldn't find valid filesystem superblock.
"



The /dev/sda2 in this new 500GB is the filesystem that i need to enlarge so that it can use the rest of the available space in this /dev/sda2 partition.

The "fdisk -l" command shows that the /dev/sda2 has about 490GB.

But when i do the "df -h" command shows that:

/dev/mapper/VolGroup00-LogVol00 (for some reason the original person who set up this system made the /dev/sda2 mapped to this /dev/mapper/VolGroup00-LogVol00) is about 224GB.

I was trying to follow the steps so that i can use the resize2fs command in the steps to enlarge the /dev/sda2 filesystem to have 490GB.



Would you please show me how can i fix this error:

"Bad magic number in super-block while trying to open /dev/sda2"

in my /dev/sda2 so that i can continue to follows the steps to successfully enlarge my /dev/sda2 to have 490GB.

Thank you very much.

Kevin
Reply With Quote
Sponsored Links
  #2  
Old 3rd January 2009, 16:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Can you post the output of
Code:
fdisk -l
?
__________________
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
  #3  
Old 5th January 2009, 02:12
kevinluu kevinluu is offline
Junior Member
 
Join Date: Jan 2009
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default Bad magic number in super-block while trying to open /dev/sda2

Dear Mr. Falko,

The "fdisk -l" command gives the below message;

Disk /dev/sda: 500.1GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 60801 488279610 8e Linux LVM

Thank you very much.

Kevin
Reply With Quote
  #4  
Old 5th January 2009, 10:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

/dev/sda2 is an LVM partition. The tutorial doesn't work with LVM partitions. For resizing LVM partitions, take a look at this tutorial: http://www.howtoforge.com/linux_lvm
__________________
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
  #5  
Old 11th January 2009, 01:53
kevinluu kevinluu is offline
Junior Member
 
Join Date: Jan 2009
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko View Post
/dev/sda2 is an LVM partition. The tutorial doesn't work with LVM partitions. For resizing LVM partitions, take a look at this tutorial: http://www.howtoforge.com/linux_lvm
Dear Mr. Falko,

The tutorial in the URL below

http://www.howtoforge.com/linux_lvm

uses linux commands: pvcreate, pvdisplay, vgdisplay,....,lvcreate, lvdisplay, lvscan etc.

In my system (Fedora 4) I could not find these commands at all.

After i switched "su" super user account, i then entered any vg/lv/pv command mentioned in the tutorial. i got the error message as shown below:

bash: pvdisplay: command not found

or

bash: lvscan: command not found

etc.

However, I can access df, fdisk, ls command etc. without any problem.

Please let me know where are these vg/lv/pv commands are?

What should i do before i can access and use these vg/lv/pv command to follow your tutorial?

Please help.

Thank you very much.

Kevin
Reply With Quote
  #6  
Old 11th January 2009, 14:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Please log in as root directly (without "su"). The PATH variable is then different, and you should find the commands. If not, please post the output of
Code:
ls /sbin
__________________
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
  #7  
Old 12th January 2009, 08:32
kevinluu kevinluu is offline
Junior Member
 
Join Date: Jan 2009
Posts: 8
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by falko View Post
Please log in as root directly (without "su"). The PATH variable is then different, and you should find the commands. If not, please post the output of
Code:
ls /sbin
Dear Mr. Falko,

Yesterday, i used the "su" command, i could NOT access those lv.../vg.../pv... etc. commands.

Today, after the "su -" command, i can access those lv.../vg.../pv... etc. commands mentioned in your tutorial.

I will try your tutorial this coming weekend.

Thank you very much.

Kevin
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
Intel 82815 Video Card & Ubuntu 8.10 harvey527 Kernel Questions 8 5th November 2010 14:51
ISPConfig Instalations problems ggarcia24 Installation/Configuration 12 13th November 2007 00:07
ERROR: The PHP binary coming with ISPConfig does not work properly on your system! qvindesland Installation/Configuration 22 21st May 2007 16:05
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29
open ports rayit General 6 18th January 2006 14:23


All times are GMT +2. The time now is 02:50.


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