LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Running fsck (or e2fsck) on root file system... (https://www.linuxquestions.org/questions/linux-newbie-8/running-fsck-or-e2fsck-on-root-file-system-398839/)

xbill311x 01-02-2006 09:50 PM

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

Boow 01-02-2006 10:47 PM

why not just shutdown -F now

xbill311x 01-02-2006 10:54 PM

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


All times are GMT -5. The time now is 07:49 PM.