LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Repair file system (https://www.linuxquestions.org/questions/linux-general-1/repair-file-system-583172/)

mamtasahai1 09-08-2007 11:52 AM

Repair file system
 
Hi, I m using RHEL 5. I often facing problem that repair file system, when i change some setting in fstab or kernel. I tried so many commands (like fsck /dev/hda) but I m not sure that what command should I provide this time. Please guide me.

AlucardZero 09-08-2007 11:54 AM

Umm.. so what's the problem?

mamtasahai1 09-08-2007 12:32 PM

Quote:

Originally Posted by AlucardZero (Post 2885643)
Umm.. so what's the problem?

System is giving the message:
Repair File system 1#

I put command fsck /dev/hda

but it is again giving me the same message
What command should i supply?
I m not able to run the system.

jailbait 09-08-2007 01:21 PM

Quote:

Originally Posted by mamtasahai1 (Post 2885681)
System is giving the message:
Repair File system 1#

I put command fsck /dev/hda

but it is again giving me the same message
What command should i supply?
I m not able to run the system.

You need to run fsck against a partition, not an entire drive. You need to use a command like:

fsck /dev/hda$

where $ is the number of the partition which you want to repair.

See:
man fsck

http://linux.die.net/man/8/fsck

-----------------
Steve Stites

mamtasahai1 09-08-2007 01:31 PM

Quote:

Originally Posted by jailbait (Post 2885732)
You need to run fsck against a partition, not an entire drive. You need to use a command like:

fsck /dev/hda$

where $ is the number of the partition which you want to repair.

See:
man fsck

http://linux.die.net/man/8/fsck

-----------------
Steve Stites

Thank u Sir, I'll try it.


All times are GMT -5. The time now is 11:14 PM.