LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices

Reply
 
Search this Thread
Old 07-03-2005, 01:11 PM   #1
zillah
Member
 
Registered: Oct 2004
Posts: 532

Rep: Reputation: 30
Repair file system


I have got 3 OSs on my laptop Latitude Dell D600 (Windows , FC3, Solaris 10)

I have got no problem to boot in any of these 3 OSs.

After while I tried to boot into linux I received this error message :

Run 'setenforce 1' to reenable.

Give root password for maintenance (or type Control-D to continue):

Repair file system1#




After I spent one hour of googling I found this :

((If the system crashes (due to power outage etc...) then upon boot the system will check if the disk was unmounted cleanly. If not you may get the following message:
Unexpected inconsistency; Run fsck Manually
...
*** An error occurred during the file system check.
*** Dropping you to a shell; the system will reboot

Give root password for maintenance
(or type Control-D for normal startup):
At this point enter the root password then run fsck:
(repair file system) 1# fsck -A -y

***** FILE SYSTEM WAS MODIFIED *****
(repair file system) 2# exit ))

The link for above is this :

http://www.yolinux.com/TUTORIALS/Lin...lSysAdmin.html


I run the command : fsck -A -y then--------According to what the link advised

I rebooted the laptop, I received this error message:

mkrootdedv: label / not found
mount: error 2 mounting ext3
mount: error 2 mounting none
switchroot: mount failed:22
umount /initrd/dev failed:2
kernel panic. not syncing
Attempted to kinll init!

What should I do to solve this issue?

Last edited by zillah; 07-03-2005 at 01:22 PM.
 
Old 07-03-2005, 03:24 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,550

Rep: Reputation: 180Reputation: 180
"mkrootdedv: label / not found
mount: error 2 mounting ext3"

Your / partition is an ext3 file system.

"fsck -A -y "

When you ran fsck you ran it against every partition and you did not specify a file system type. fsck will try to figure out the file system type. If it cannot it will assume ext2. It is quite possible that fsck changed your ext3 / partition toan ext2 file system.

"What should I do to solve this issue?"

Boot a rescue CD. Run fsck against each Linux partition except swap. Give the correct file system type for each partition. For example:

fsck -t ext3 /dev/hda1
fsck -t reiserfs /dev/hda3


--------------------------------
Steve Stites
 
Old 07-03-2005, 10:34 PM   #3
zillah
Member
 
Registered: Oct 2004
Posts: 532

Original Poster
Rep: Reputation: 30
Quote:
Give the correct file system type for each partition. For example:
How can I verify each partition type?( i.e. for example what command I have to use to know if the "/boot" is ext2 or ext3 ?)

I have got this CD Rescue (http://www.sysresccd.org/download.en.php), I booted the laptop with the CD and :

I tried to use this command : fsck -t ext3 /dev/hda2 (partition where /boot directory resides)

I received this message:

((fsck 1.35 (28-Feb-2004)
e2fsck 1.35 (28-Feb-2004)
fsck.ext2: File system has unsupported feature(s) (/boot)
e2fsck: Get a newer version e2fsck.)).

Is this the right CD ?

Last edited by zillah; 07-03-2005 at 10:41 PM.
 
Old 07-04-2005, 10:19 AM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,550

Rep: Reputation: 180Reputation: 180
"How can I verify each partition type?"

You get into circular reasoning here. Each partition has the file system type in the first superlock. If you do not tell fsck what file system type that you have then fsck will read it from the first superblock and tell you. If the first superblock is damaged to where fsck cannot tell what file system type it is then you have to tell fsck so that fsck will not guess wrong. In the case where you have to tell fsck what file system type it is you cannot read the file system type from the partition.

"fsck.ext2: File system has unsupported feature(s) (/boot)
e2fsck: Get a newer version e2fsck.)).

Is this the right CD ?"

When the mkfs command creats a file system it places the mkfs version number in the first superblock. fsck checks the mkfs version number and will not try to repair a file system which was created by a version of mkfs which is newer than the version of fsck. The answer is to get a version of fsck which is as new or newer than the version of mkfs used to create the file system.

-----------------------
Steve Stites
 
Old 08-24-2005, 01:00 PM   #5
zillah
Member
 
Registered: Oct 2004
Posts: 532

Original Poster
Rep: Reputation: 30
I booted my linux box through CD1 and then "F5" for rescue mode, and then command : "linux rescue", and then I tried vi /etc/fstab...

I could not find file fstab,,,,,,,,,,,,.
 
  


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
REPAIR WINDOWS( linux installed system) sajjadc Linux - Software 8 08-11-2006 10:06 AM
How do I repair the File System Error ch.keller Linux - Software 5 07-04-2006 02:10 AM
File System Check Repair or.... scoobs Linux - Software 1 09-15-2004 12:15 AM
How to repair File System Error - unattached inode 37138 ch.keller Linux - Software 1 07-21-2004 07:42 PM
Messed up my rc.conf can't get into system to repair it joe83 *BSD 2 07-18-2004 08:14 PM


All times are GMT -5. The time now is 07:22 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