LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-19-2006, 11:10 AM   #1
Gujju
LQ Newbie
 
Registered: Jul 2006
Posts: 19

Rep: Reputation: 0
Repair File System


Hi All,

I am having file system problem in my web server. I have hosted 2 websites on it. And I am not able to start it.

It gives that typical error of :

Code:
***An error occured during the file system check.
*** Dropping you to a shell; the system will reboot
***When you leave the shell.
Give root password for maintenance
(or type Control-D for normal startup):
when i enter root password, it shows

Code:
(Repair filesystem) 1 #
And nothing is happening after that.

I search forums and tried to do fsck /dev/hdb but it says

Code:
Is /proc Mounted?
when i check /etc/fstab it show like this:

Code:
LABEL=/     /          ext3     defaults        1 1
LABEL=/boot /oot       ext3     defualts        1 2
none        .dev/pts   devpts   gid=5,mode=620  0 0
none        /proc      proc     defaults        0 0
none        /dev/shm   tmpfs    fefaults        0 0
/dev/hda3   swap       swap     defaults        0 0
/dev/fd0    /mnt/floppy auto    noauto,owner,kudzu 0 0
/dev/cdrom  /mnt/cdrom  udf,iso9660 noauto,owner.kudzu,ro 0 0
has anyone got any idea? what can i do to repair it or make it work?

Thanks in advance.
 
Old 12-19-2006, 04:10 PM   #2
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, RHL 5.2
Posts: 546

Rep: Reputation: 43
When I use fsck I specify the partition to be checked, not the drive. For example, fsck /dev/hdb1. You should be able to get a list of partitions using fdisk -l at the command line. Then run fsck on each of them.

Bill
 
Old 12-20-2006, 03:31 AM   #3
Gujju
LQ Newbie
 
Registered: Jul 2006
Posts: 19

Original Poster
Rep: Reputation: 0
Hi,
thanks for reply.

I tried fdisk -l but it says:
Code:
cannot open /proc/partitions
I have no idea what's wrong with it. After google it seems it is a simple/normal problem, But dont know why it's not working here.

when I did fdisk -s /dev/hda1 to hda3 it shows its size. Doesn't it means partition is there. any idea?

thank you.
 
Old 12-20-2006, 10:19 AM   #4
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, RHL 5.2
Posts: 546

Rep: Reputation: 43
The messages you are getting about /proc could be an issue with resolving your problem. /proc is a virtual filesystem used to interface with the kernel. It keeps track of hardware information and maintains details about all the processes on the system. There is a file there call /proc/partitions. You can view this using cat /proc/partitions.

If you are having problems viewing /proc it will be tough for the kernel to see your partitions. You should try booting up using a rescue CD or live CD to work on repairing your filesystem. I'm assuming since you are posting in the Red Hat forum that you have a Red Hat distibution. With Red Hat you can boot from the first CD into rescue mode and use fsck.

If you are able to view the partitions in /proc. Try doing fdisk -l /dev/hda, that will give you the partition information for your first hard drive. After that you should be able to use fsck /dev/hdaX where X is the individual partition number. Not sure if you have other OS's on you system, but only use fsck on the Linux partitions. If you have other drives like /dev/hdb, do the same for those.

Bill

ps - For linuxquestions.org it is probably a good idea to edit your distribution information inside MyLQ (see link at upper right of screen), this will keep people from having to ask all the time.
 
Old 12-21-2006, 05:01 AM   #5
Gujju
LQ Newbie
 
Registered: Jul 2006
Posts: 19

Original Poster
Rep: Reputation: 0
Hi Bill.

Thanks for info.

Actually I came to update you that I have resolved it the same way you mentioned. I have RedHat 9 distribution and install it from scratch with preventing the data as it is.

First i tried to add the hard disk to another pc but couldn't mount it. After that I tried to update the system with that bootable CD but it was not taking it. So I finally did new installation but prevent the data. So now my data is there and RH9 is working fine.

Thanks for your interest and Help.
 
Old 08-01-2011, 09:00 AM   #6
rahul.identity
LQ Newbie
 
Registered: Aug 2010
Location: India
Distribution: Fedora14 , Ubuntu 11.04
Posts: 16

Rep: Reputation: 0
Thumbs up Just mount it again..

Hey,


Just do one do thing mount your root partition in read write mode.
this usually happenes due to u hv mess with your partition table.

#mount -o and the path of ur root partion.

after that just u can able to comment in the fstab.
dont just search go on reading...
 
0 members found this post helpful.
Old 08-01-2011, 09:23 PM   #7
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 13,787

Rep: Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359Reputation: 2359
Quote:
Originally Posted by rahul.identity View Post
Hey,
Just do one do thing mount your root partition in read write mode. this usually happenes due to u hv mess with your partition table.

#mount -o and the path of ur root partion.

after that just u can able to comment in the fstab. dont just search go on reading...
As you've been asked several times before, spell out your words and write clearly. Second, don't reopen old threads..this is FIVE YEARS OLD, and was solved by following the instructions posted above. The partition table wasn't corrupt, clearly, since the OP POSTED IT.

Last edited by TB0ne; 08-01-2011 at 09:32 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I repair the File System Error ch.keller Linux - Software 5 07-04-2006 02:10 AM
Error on system repair santamaycry Suse/Novell 0 01-10-2006 11:14 PM
Repair file system zillah Fedora - Installation 4 08-24-2005 01:00 PM
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


All times are GMT -5. The time now is 04:19 PM.

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