LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-02-2006, 10:50 PM   #1
xbill311x
Member
 
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
/dev/mapper/VolGroup00-LogVol00
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?

Thanks,

Bill
 
Old 01-02-2006, 11:47 PM   #2
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
why not just shutdown -F now
 
Old 01-02-2006, 11:54 PM   #3
xbill311x
Member
 
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?

Thanks

Bill
 
  


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


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