LinuxQuestions.org
Review your favorite Linux distribution.
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, 11:59 AM   #1
odiseo77
Senior Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 1,022

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
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 odiseo77; 08-01-2005 at 12:01 PM.
 
Old 08-01-2005, 12:35 PM   #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, 01:40 PM   #3
odiseo77
Senior Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 1,022

Original Poster
Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
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, 01:56 PM   #4
odiseo77
Senior Member
 
Registered: Dec 2004
Location: Caracas, Venezuela
Distribution: Debian Sid, OpenSUSE 13.1
Posts: 1,022

Original Poster
Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
Yes, it worked; thanks again.
 
Old 11-07-2009, 02: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


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


All times are GMT -5. The time now is 02:35 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration