Red HatThis forum is for the discussion of Red Hat 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.
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
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.