Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-02-2006, 09:50 PM   #1
Registered: Mar 2005
Location: Delaware
Distribution: Fedora Core 4
Posts: 93

Rep: Reputation: 15
Running fsck (or e2fsck) on root file system...

Hi all,

All I want to do is check my root partition for errors and fix them, ie scandisk. Here's my df:

[root@localhost ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
56119596 39049784 14173124 74% /
/dev/hda1 101086 10046 85821 11% /boot
/dev/shm 123848 0 123848 0% /dev/shm

Would I do this?:

Go to single user mode, remount it ro, run fsck:

root# init 1
root# mount -o remount,ro /dev/mapper/VolGroup00-LogVol00
root# fsck -C /dev/mapper/VolGroup00-LogVol00

Then, when finished:

root# mount -o remount,rw /dev/mapper/VolGroup00-LogVol00
root# init 5

I mean, is that what I should do? I'm not sure...

And what is /dev/shm?


Old 01-02-2006, 10:47 PM   #2
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
why not just shutdown -F now
Old 01-02-2006, 10:54 PM   #3
Registered: Mar 2005
Location: Delaware
Distribution: Fedora Core 4
Posts: 93

Original Poster
Rep: Reputation: 15
I spose I could do that. Is there a way I can have it write the results to a log so that I could view them?




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
How to fsck / while system running LinuxGeek Linux - Software 2 07-19-2005 10:43 AM
booting file system errors => cannot run fsck snake_eye Slackware 7 08-26-2004 01:18 PM
run e2fsck when system is running? mikeshn Linux - General 1 10-14-2003 11:55 AM
Ambiguous error messages from fsck, but not from e2fsck jiffydude Linux - Software 2 09-12-2003 06:02 PM
fsck, e2fsck, mke2fs ?'s - RH9 blackx Linux - Newbie 6 05-23-2003 02:02 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 AM.

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