LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2005, 10:59 AM   #1
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
How to use fsck?


Hi all, I'm trying to do some maintenance to my FC4 based linux system. When I run 'fsck.ext3 -p /dev/hda7' I get a message telling me it's dangerous to use fsck on a mounted filesystem. So I booted from knoppix cd to do it, but I got an error message telling me something like 'Filesystem has unsupported features / . Try to get a newer version of e2fsck'. So I tried with the fedora rescue disk but I couldn't get the file system unmounted (it mounts it under /mnt/sysimage, I tried everything to get it umounted but I got error messages telling 'device or resource busy'). Is there a way to use fsck in a safe way from inside FC4 or in another way to check/repair/maintain the filesystem??
Thanks in advance.

P.S. I also tried with Feather boot cd and got the same results as with knnoppix.

Last edited by Hungry ghost; 08-01-2005 at 11:01 AM.
 
Old 08-01-2005, 11:35 AM   #2
germanyzulu
LQ Newbie
 
Registered: Jul 2005
Distribution: Ubuntu "Dapper" 6.06 LTS
Posts: 18

Rep: Reputation: 1
#shutdown -Fr now

Hey,

I'm not sure about FC4 (I use Debian "Sarge") but I think you can enter (as root):

Code:
#shutdown -Fr now
(The "-F" makes the system do an fsck check on all partitions at the next boot and the "-r" tells it to reboot)

I'm assuming this is a partition you cant just unmount??
 
Old 08-01-2005, 12:40 PM   #3
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Original Poster
Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
You're right, I can't umount it, even if I try to remount it read-only it fails. I'll do what you suggested me to see what happens. Thanks for your reply.
 
Old 08-01-2005, 12:56 PM   #4
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Original Poster
Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Yes, it worked; thanks again.
 
Old 11-07-2009, 01:13 AM   #5
rohanrote
LQ Newbie
 
Registered: Nov 2009
Location: India
Posts: 5

Rep: Reputation: 0
Detail instruction about fsck command.

I want to have a disk cleanup on rhel 5 file server like we have in windows. I am thinking of running a fsck command. But i have read that not to run this command on a mounted partition. What should i do ?

Please give me detail information about fsck and also tell me about the other utilities which i can use to system tuneup.
 
  


Reply



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
Fsck scottpioso Linux - Newbie 7 06-01-2003 03:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:30 AM.

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