LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-28-2005, 03:40 PM   #1
Barx
Member
 
Registered: Jun 2004
Location: Italy
Distribution: Slack x64 current
Posts: 150

Rep: Reputation: 26
fsck on root filesystem without reboot?


Hi all

I hope I'm on topic.

There's a way to run fsck on root filesystem without rebooting the system?

I cannot run fsck on a mounted filesystem and (obviously) I can't umount it while the system is running.

I tried remounting it in read-only mode like seen on google search but I get a "busy" error and I can't do it.

The filesystem is an ext3

I want to fsck it because i was low on disk space ( 100 mb free ), so I deleted 400 mb of crap and I'm still with only 100 mb free.

And I can't find this crap, with a du -sh * I can't find nothing strange .. like clusters wasn't signed as free ..
 
Old 03-28-2005, 04:44 PM   #2
ironwalker
Member
 
Registered: Feb 2003
Location: 1st hop-NYC/NewJersey shore,north....2nd hop-upstate....3rd hop-texas...4th hop-southdakota(sturgis)...5th hop-san diego.....6th hop-atlantic ocean! Final hop-resting in dreamland dreamwalking and meeting new people from past lives...gd' night.
Distribution: Siduction, the only way to do Debian Unstable
Posts: 506

Rep: Reputation: Disabled
Why....wont you reboot?
uptime?
Please...just reboot...see if you have an empty drive now.If not...reboot into recovery mode and run fsck again with other parameters to see if theres a problem and exactly what it is.
If you run chrootkit.....run it again to do some kind of comparison.
I like rkhunter...also I use tripwire....things like these help let you spot a rootkit which if your space problem still exists is exactly what you have.
If a rootkit is indeed on your system....zero your harddrive and reinstall.
 
Old 03-29-2005, 04:34 AM   #3
Barx
Member
 
Registered: Jun 2004
Location: Italy
Distribution: Slack x64 current
Posts: 150

Original Poster
Rep: Reputation: 26
The real reason 'coz I won't reboot is for exercise .. I want to solve every problem without rebooting.

The problem is on my home server, and I don't run rootkit detection SW.

At this point I hope that a fsck on reboot will fix all .. and that no rootkit are on my system ..
 
Old 03-29-2005, 04:55 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you'll have to "unload" the filesystem before you can remount it read-only ( you'll have to unmount any filesystems which are mounted on top of your filesystem, like proc)
 
  


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
fsck and reboot on FC4! lecedre Fedora 2 09-18-2005 09:11 AM
Kernel 2.6.9- Reiserfs fsck, reboot, repeat Doolspin Linux - Software 0 10-27-2004 06:29 PM
Cant reboot. Inode, fsck? fedoraguy Linux - Newbie 1 08-13-2004 04:20 PM
Repair a filesystem ...fsck is it??????? hrg Linux - General 3 07-24-2004 08:41 AM
fsck fails to mount filesystem GoatKing Linux - Software 6 01-26-2004 10:41 PM

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

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