Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 05-03-2004, 01:49 PM   #1
Registered: Aug 2003
Posts: 232

Rep: Reputation: 30
File system check

Could someone please give me the instructions and command line of how to do File System check???

I would like to do a file system check and save the process to a file so I check the file and see if there is any issues???

something about fsck but I am not sure exactly command line.

thanks so much
Old 05-03-2004, 01:55 PM   #2
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
fsck -l LOG_FILE /dev/hdxy where xy designate the partition you want to check.
Old 05-03-2004, 02:35 PM   #3
Registered: Aug 2003
Posts: 232

Original Poster
Rep: Reputation: 30
thanks for your reply.

1. so you have to run file system check for each seperate partition??? you can't do it once for all ???

2. any issues with the files when we do the file system check ???? Any serious issue that might happen???

3. you have the LOG_FILE on fsck but you didn't mention about the location. how does it work????

thanks again

Last edited by ashley75; 05-03-2004 at 03:12 PM.
Old 05-03-2004, 03:55 PM   #4
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Check out the man pages for fsck, but I believe the -A flag will cause fsck to examine each partition in your fstab. As for question 2, if you've got damaged files, then fsck will attempt to repair them. That repair action will either succeed or fail; if it succeeds, great, if it fails, you may be SOL. I'm not sure exactly what kinds of options you might have to repair a corrupted file if fsck cannot solve them. I'd recommend searching other threads here at LQ or Googling for more info. Good luck with it. -- J.W.
Old 05-04-2004, 06:26 PM   #5
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Here is a link containing a script for /etc/init.d/ that runs fsck at boot.
You may want to run this script for just run level 1.

I didn't see it mentioned but you want to mount a partition readonly (ro) before running fsck.

One of the numbers at the end of the /etc/fstab entry concerns fsck checking.

You may want to use tune2fs to reduce the maximum mount count for the partitions. This will run fsck during bootup automatically more often.


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
An error Occurred during the file system check. Dropping you to shell; the system wil aneikei Linux - Newbie 3 02-11-2010 07:38 PM
error during file system check laurentwahl Linux - General 1 05-21-2005 07:33 PM
file system check GoBoy Linux - Software 1 03-27-2005 04:39 AM
file system check nakkaya Linux - Software 5 03-14-2003 11:28 PM
How to check what is your file system? Alinuxnoob Linux - Newbie 2 03-31-2002 01:37 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration