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! |
you could boot up with a live cd, make sure the drive isnt mounted and run fsck.
|
ok, but i can not check it in runtime? like windows scan disk?
|
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. |
If you run /sbin/shutdown with the -F swotch it will force fsck at the next bootup.
|
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 11:02 PM. |