LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to check root partition? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-check-root-partition-673789/)

proNick 10-02-2008 01:37 PM

how to check root partition?
 
hi all!

how can i check my root partition (using fsck.ext3), when it is mounted? can i do it only using some cd distribution or on system boot?


tnx in adv!

ncsuapex 10-02-2008 01:43 PM

you could boot up with a live cd, make sure the drive isnt mounted and run fsck.

proNick 10-02-2008 01:57 PM

ok, but i can not check it in runtime? like windows scan disk?

onebuck 10-02-2008 02:05 PM

Hi,

The drive that you want to perform maintenance on must not be mounted. If you use a LiveCD then make sure the drive is not mounted before you do a 'fsck' on the filesystem.

If you pass to the kernel the 'single' parameter at boot then you should be able to perform maintenance on the hdd.

BTW, poor comparison for 'ok, but i can not check it in runtime? like windows scan disk?'. That's why GNU/Linux is stable as compared to M$ Windows. Linux maintenance of hdd requires that you not have the chance of anyone writing to the device you are working on. That's one of the reasons why you use the 'single' user mode.

camelrider 10-02-2008 06:33 PM

If you run /sbin/shutdown with the -F swotch it will force fsck at the next bootup.

camelrider 10-02-2008 06:36 PM

If you run "/sbin/shutdown -Fr now" the machine will do a fsck on reboot.
The "F" switch forces fsck and the "r" asks for immediate reboot.


All times are GMT -5. The time now is 05:02 AM.