LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-06-2004, 09:00 PM   #1
mohsinjq
LQ Newbie
 
Registered: Nov 2004
Location: pakistan
Posts: 2

Rep: Reputation: 0
recover root filesystem redhat linux


hi,

my linux system crashed last night. When i try to boot it from hard disk i get error "kernel panic: no init found try passing out init= option to kernel"

i then started linux rescue from cdrom. i tried to mount the / filesystem in /mnt mount point but i am unable to mount the root filesystem whereas /boot filesystem mounts successfully.

i then tried the e2label command "e2label /dev/hda2" this command returns error "e2label bad magic number in super block /dev/hda2
could not dinf valid filesystem in superblock"

i also tried to run fdisk and when a try verify command in fdisk i get "62 unallocated sectors" message. though fdisk is showing three filesystems

1. /dev/hda1 linux
2. /dev/hda2 linux
3. .dev.hda3 linux swap

Is there any possibility to recover from this kind of error.

regards,
mohsin.
 
Old 11-06-2004, 09:08 PM   #2
n0xvb
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; openSUSE 11.2
Posts: 255

Rep: Reputation: 32
You can try running this command:

/sbin/fsck -C -a /dev/hda2

that will run a check of your filesystem.
 
Old 11-06-2004, 09:56 PM   #3
mohsinjq
LQ Newbie
 
Registered: Nov 2004
Location: pakistan
Posts: 2

Original Poster
Rep: Reputation: 0
i tried the /sbin/fsck -C -a /dev/hda2 command. But there is no fsck file at /sbin folder. if i run "fsck -C -a /dev/hda2" i get following error message

WARNING; couldn't open /etc/fstab : no such file or directory
fsck.ext2: bad magic number in super block while trying to open /dev/hda2 (null)

the superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and really contains an ext2 filesystem then superblock is corrupt.

from,
mohsin.
 
Old 11-10-2004, 04:39 AM   #4
n0xvb
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; openSUSE 11.2
Posts: 255

Rep: Reputation: 32
What is the contents of your /etc/fstab file? The fsck said it couldn't find it...

Are you logged in as root?

Last edited by n0xvb; 11-10-2004 at 04:41 AM.
 
Old 11-10-2004, 09:30 AM   #5
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hi,

That's maybe not a ext2/ext3 filesystem...

Oliv'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trying to recover files with ext3 filesystem bgenora Linux - Newbie 1 11-07-2005 11:54 AM
Linux Redhat recover Bootloader saeed144 Linux - Newbie 1 10-12-2005 12:48 PM
Reformatted ext3 filesystem - recover? addy86 Linux - General 11 01-10-2005 12:49 AM
Recover Data in Dead ReiserFS Filesystem Schultz Linux - Newbie 4 10-15-2003 04:18 PM
filesystem: recover or not to recover? bdp Linux - General 3 06-06-2003 03:40 AM


All times are GMT -5. The time now is 04:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration