Download your favorite Linux distribution at LQ ISO.
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 04-10-2004, 08:14 PM   #1
Registered: May 2003
Location: Caribbean
Distribution: Fedora Core2
Posts: 403

Rep: Reputation: 30
How to use Fsck

I wanted to try out Fsck, but it warns that I should not scan a mounted filesystem, what should I do?

Thank you.
Old 04-10-2004, 08:19 PM   #2
Registered: Mar 2004
Location: Jinhua, People's Republic of China
Distribution: MDK, RH, KNPX
Posts: 161

Rep: Reputation: 30
Unmount the filesystem before using fsck. This is always a good idea. If you don't you could cause global warming, a rise in nuclear arms production, world inflation, massive unemployment, and loss of your data.

I made this sound more scary than it is, because if I say 'loss of data' and move on, some people think it is a joke. No joke. Good practice not to use fsck on mounted filesystems.
Old 04-10-2004, 08:29 PM   #3
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
you could also use this:

shutdown -rF now

that would reboot your computer with instructions to perform an fsck upon reboot automatically...
Old 04-20-2004, 11:00 AM   #4
LQ Newbie
Registered: Apr 2004
Posts: 14

Rep: Reputation: 0
Hey everyone,

thanks for all your help, it's being most helpful! Problem is now fixed, was resolved by a reboot with fsck. However the funny thing is that no errors were reported.

What I think has happened is that some users use Xwin32 to log into the machine, and I think a rogue KDE has gone nuts and claimed a heap of resources. What I was unaware of and explains a lot, is that tools like du will only report the space being used by closed files, so files that havn't had thier handle closed will not be included. This would account for the discrepency between du and df. Found that the tool 'lsof' was helpful in starting to track down what went wrong.

Again thanks to everyone, glad that is solved and i've got that 80GB of disk back!

Fingers crossed though that dosn't happen again! Although I know the solution now, and it forced me to getting around to backing up a heap of stuff .


Old 04-20-2004, 11:00 AM   #5
LQ Newbie
Registered: Apr 2004
Posts: 14

Rep: Reputation: 0
Whoops, wrong thread! Sorry guys.


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
Need help with fsck Grill Master Linux - Newbie 2 07-05-2005 05:37 PM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 07:51 AM
How to do fsck Please help Zi5 Linux - Distributions 2 05-13-2004 06:47 PM
fsck help afrodocter Linux - Software 6 04-29-2004 10:42 AM
Fsck scottpioso Linux - Newbie 7 06-01-2003 03:06 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:09 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