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 01-06-2007, 06:35 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
FSCK Question


I was reading that running "fsck" will scan the disk for errors and possible repair them so I attempted to try this on my box and received the following message...

Code:
cwilliams:~# fsck
fsck 1.40-WIP (14-Nov-2006)
e2fsck 1.40-WIP (14-Nov-2006)
/dev/mapper/cwilliams-root is mounted.

WARNING!!!  Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? no

check aborted.
What is the normal process to do something like this?
 
Old 01-06-2007, 07:03 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
When your computer boots, the root file system is in ram and the partitions are initially mounted read only. Then, every so many boots, fsck is run and the system is checked.

To do it manually, on your root file system, since everything is mounted there, you need to do the same thing and boot up using a rescue disk and perform repairs with the disk off-line. You don't have the option of unmounting the the root filesystem because you need it to run normally.

Last edited by jschiwal; 01-06-2007 at 07:05 PM.
 
Old 01-06-2007, 07:03 PM   #3
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
It means if the device is mounted, you or someone might
write onto the device as it it scanning or repairing. That's why it suggests you umount the device before using
fsck. For example, when fsck starts to scan or repair your /home directory and you are surfing the net, cookies and cache are writing to the disk. And this will cause problems. So umount to be safe.
 
  


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
What exactly does fsck do? jgombos Linux - Newbie 9 11-21-2006 11:12 PM
how to use fsck dsids Linux - Newbie 5 03-16-2006 07:30 AM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 07:51 AM
FSCK help please.... stepper1971 Linux - Newbie 3 06-21-2002 01:18 AM
fsck question SLAKK3R Linux - Newbie 4 04-28-2002 03:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:19 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
Open Source Consulting | Domain Registration