LinuxQuestions.org
Review your favorite Linux distribution.
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 05-03-2004, 02:49 PM   #1
ashley75
Member
 
Registered: Aug 2003
Posts: 231

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, 02:55 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

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

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 04:12 PM.
 
Old 05-03-2004, 04:55 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
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, 07:26 PM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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.

http://www.linuxgazette.com/issue49/...-HOWTO-12.html

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.
 
  


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


All times are GMT -5. The time now is 05:27 PM.

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