| Red Hat This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-19-2006, 11:10 AM
|
#1
|
|
LQ Newbie
Registered: Jul 2006
Posts: 19
Rep:
|
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
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.
|
|
|
|
12-19-2006, 04:10 PM
|
#2
|
|
Member
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 17, 18, RHL 5.2
Posts: 537
Rep:
|
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
|
|
|
|
12-20-2006, 03:31 AM
|
#3
|
|
LQ Newbie
Registered: Jul 2006
Posts: 19
Original Poster
Rep:
|
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.
|
|
|
|
12-20-2006, 10:19 AM
|
#4
|
|
Member
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 17, 18, RHL 5.2
Posts: 537
Rep:
|
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.
|
|
|
|
12-21-2006, 05:01 AM
|
#5
|
|
LQ Newbie
Registered: Jul 2006
Posts: 19
Original Poster
Rep:
|
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.
|
|
|
|
08-01-2011, 09:00 AM
|
#6
|
|
LQ Newbie
Registered: Aug 2010
Location: India
Distribution: Fedora14 , Ubuntu 11.04
Posts: 16
Rep:
|
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.
|
08-01-2011, 09:23 PM
|
#7
|
|
Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 11,808
|
Quote:
Originally Posted by rahul.identity
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:28 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|