LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-08-2007, 12:52 PM   #1
mamtasahai1
Member
 
Registered: Jan 2007
Location: India
Distribution: RHEL 5, Fedora 9, Solaris, FreeBSD
Posts: 52

Rep: Reputation: 15
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.
 
Old 09-08-2007, 12:54 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,652

Rep: Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536Reputation: 536
Umm.. so what's the problem?
 
Old 09-08-2007, 01:32 PM   #3
mamtasahai1
Member
 
Registered: Jan 2007
Location: India
Distribution: RHEL 5, Fedora 9, Solaris, FreeBSD
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AlucardZero View Post
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.

Last edited by mamtasahai1; 09-08-2007 at 01:35 PM.
 
Old 09-08-2007, 02:21 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,590

Rep: Reputation: 188Reputation: 188
Quote:
Originally Posted by mamtasahai1 View Post
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
 
Old 09-08-2007, 02:31 PM   #5
mamtasahai1
Member
 
Registered: Jan 2007
Location: India
Distribution: RHEL 5, Fedora 9, Solaris, FreeBSD
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jailbait View Post
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.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Repair File System Gujju Red Hat 6 08-01-2011 10:23 PM
How do I repair the File System Error ch.keller Linux - Software 5 07-04-2006 03:10 AM
Repair file system zillah Fedora - Installation 4 08-24-2005 02:00 PM
File System Check Repair or.... scoobs Linux - Software 1 09-15-2004 01:15 AM
How to repair File System Error - unattached inode 37138 ch.keller Linux - Software 1 07-21-2004 08:42 PM


All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
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