Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-13-2006, 12:36 PM
|
#1
|
LQ Newbie
Registered: Dec 2005
Posts: 13
Rep:
|
Super-blocks Corrupted
During boot I get "Buffer I/O error on device hda2" messages. So, I figure a files system check is in order, but fsck returns:
Server:~ # fsck /dev/hda2
fsck 1.38 (30-Jun-2005)
e2fsck 1.38 (30-Jun-2005)
Couldn't find ext2 superblock, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/hda2
So, I boot up from CD and use mkfs -n /dev/hda2 to obtain a list of super-blocks which returns block size=4096 and the following list of super-blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000
Continuing from the CD boot and without hda2 mounted I enter each of these super-blocks in sequence as:
fsck -b <super-block> /dev/hda2
The first 5 super-blocks return bad magic number in super-block. The last 5 returns invalid argument.
Any ideas what to do next? The system does boot, but I'm worried that someday it might not due to filesystem corruption. Since the system is running, is there anyway to force the super-block to the correct value. As FYI in case it is somehow involved, I created this drive using Ghost For Linux (G4L) option Click'n'Clone. I don't know if the original drive has these same problems or not.
|
|
|
04-13-2006, 10:41 PM
|
#2
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
Try rebuilding the superblock
fsck has a switch to rebuild the superblock.
|
|
|
04-14-2006, 08:02 AM
|
#3
|
LQ Newbie
Registered: Dec 2005
Posts: 13
Original Poster
Rep:
|
Super-blocks Corrupted
AwesomeMachine,
Could you please be specific about the correct fsck switch to rebuild the super block as I wasn't able to identify it from the man pages. It seems that I need to specify a valid super-block via -b, but I'm unable to identify one.
And the source of your Power is right on. ><IXOYE>
|
|
|
04-14-2006, 08:33 AM
|
#4
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187
|
Caution: If you have a logical volume on /dev/hda2, using fsck on it will destroy the volume. For logical volumes, use fsck /dev/mapper/<vol name>/.
|
|
|
04-14-2006, 08:52 AM
|
#5
|
LQ Newbie
Registered: Dec 2005
Posts: 13
Original Poster
Rep:
|
Super-blocks Corrupted
AwesomeMachine,
Could you please be specific about the correct fsck switch to rebuild the super block as I wasn't able to identify it from the man pages. It seems that I need to specify a valid super-block via -b, but I'm unable to identify one.
And the source of your Power is right on. ><IXOYE>
|
|
|
07-16-2006, 08:04 AM
|
#6
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep: 
|
its been some time so even tho I am no expert as I have some probs myself try this
tune2fs run when system booted and man tune2fs gives info on how to force a change in the checking
if the system does not boot....mandriva kicks you to a root prompt to do stuff like that
Last edited by aus9; 07-16-2006 at 08:07 AM.
|
|
|
All times are GMT -5. The time now is 04:58 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|