LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 10-08-2005, 10:02 AM   #1
bladehaze
LQ Newbie
 
Registered: Sep 2005
Posts: 12

Rep: Reputation: 0
Harddisk fails. /dev/hda4 cannot be mounted


My computer is running ubuntu 5.04, with 2 hard disks. and my /dev/hda4 is mounted as /home

I was uploading some stuff to another computer, and then the system freezed, with the habit given by Microsoft, I rebooted the system and then the nightmare began. When it tried to check the file-system, it gave the following error

-------------------------------------------------------------------
e2fsck 1.35 (28-Feb-2004)
e2fsck: Bad magic number in super-block while trying to open /dev/hda4
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 ufs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
------------------------------------------------------------------
Then I tried "e2fsck -b 8193 /dev/hda4", it still gave me the same error message above.
Then I found this paragraph
-------------------------------------------------------------
A filesystem can be corrupted so it can't be mounted, the result of damage to
the filesystem's superblock. Any attempt to mount it will fail.
The filesystem keeps backups of the superblock.
THere are backup copies of the superblock at block offsets 8193, 16385 (8192 x
2 + 1), 24577 (8192 x 3 +1)

you can check for the size of superblocks with dumpe2fs <device> | more
if the size is different use that in the formula above.
mine is Blocks per group: 32768

you can run e2fsck using a copy of the superblock

e2fsck -f -b <offset> <device>

eg. e2fsck -f -b 16385 /dev/hda1

(taken from 'running linux' by Matt Welsh and Lar Kaufmann)
---------------------------------------------------------------
I first tried 16385 and 24577 to substitute 8193, it didn't work, and I wondered maybe because I am use ext3 and the error message is meant for ext2, they might have different size of superblocks, so I try to use

"dumpe2fs /dev/hda4 | more"

It give me the following error message

--------------------------
dumpe2fs 1.35 (28-Feb-2004)
dumpe2fs: Filesystem revision too high while trying to open /dev/hda4
Couldn't find valid filesystem superblock
--------------------------
And then I have no idea how to continue.


maybe I need some tools for ext3, or any other good tools to rescue my data? Thanks a lot!

Last edited by bladehaze; 10-08-2005 at 10:17 AM.
 
Old 10-08-2005, 08:36 PM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
you need to boot up a Live CD like knoppix and run fsck on all partitons affected..( / , /home , /boot , etc......let fsck clean up everything first before re-booting.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/home has been mounted X times without being checked? moana Linux - Newbie 7 08-01-2009 08:15 AM
Putting /home on a different harddisk? Swakoo Linux - Newbie 9 10-27-2005 04:35 AM
I have an nfs mounted /home and 'adduser' fails to create a new user dipukm Linux - Software 4 06-01-2004 06:38 PM
Gnome login problem with mounted /home partition steveybaby2 Linux - Newbie 2 01-02-2004 09:41 AM
Windows partition is now mounted at /home!!!! jcksrobbins LinuxQuestions.org Member Success Stories 12 10-06-2003 04:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration