LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-01-2003, 01:37 PM   #1
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Ubuntu
Posts: 462

Rep: Reputation: 30
Fsck


Hello,

Call me stupid, but I'm trying to run the FSCK utility to check my filesystems. Obviously, the disk has to be dismounted. However, this is what happens when I try to dismount the drive. . . .

[root@ASUSA7V266-E root]# umount /dev/hda3
umount: /: device is busy
[root@ASUSA7V266-E root]#

And if I don't try this, this is what happens:

[root@ASUSA7V266-E root]# fsck
fsck 1.32 (09-Nov-2002)
e2fsck 1.32 (09-Nov-2002)
/dev/hda3 is mounted.

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

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

Can someone help me here? What do I need to do? Thank you.
 
Old 06-01-2003, 01:41 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You can't unmount your root partition if you are using it.

Use RH CD1 to boot into rescue mode by typing:
linux rescue

at the boot prompt. Then you can mount/unmount, run fsck etc from there.
 
Old 06-01-2003, 02:17 PM   #3
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Ubuntu
Posts: 462

Original Poster
Rep: Reputation: 30
Okay, I got it to run. If there are problems, what would it say?
 
Old 06-01-2003, 02:20 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
It would give you a list of any problems it could see.
 
Old 06-01-2003, 02:43 PM   #5
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Ubuntu
Posts: 462

Original Poster
Rep: Reputation: 30
Okay, this is what it said:

dev/hda 2 -boot:clean 45/____ files . . . blocks
dev/hda3 - clean ______files, _____blocks

I assume this means the filesystem is fine? Also, I have dev/hda4 as my swap partition. It won't check that, will it?
 
Old 06-01-2003, 02:53 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Clean means that it is OK.

As for swap - try using "badblocks".
 
Old 06-01-2003, 03:04 PM   #7
scottpioso
Member
 
Registered: Jan 2003
Location: United States of America and damn proud of it!
Distribution: Ubuntu
Posts: 462

Original Poster
Rep: Reputation: 30
What do you mean by that? What would I do to do as you're suggesting?
 
Old 06-01-2003, 03:06 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Look at the man page for full usage but basically:
badblocks /dev/hdaX
 
  


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 Off
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
How to use Fsck pembo13 Linux - General 4 04-20-2004 11:00 AM


All times are GMT -5. The time now is 08:21 AM.

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