On Thu, Nov 11, 2004 at 11:04:06AM -0700, Sandesh Singh wrote:
I wanted to know if there is any 'scandisk' sort of utility for Linux. I know about "fsck", but it warns me against running it on mounted filesystems. It doesn't run even in the single user mode.
Actually, after I went thru the startup scripts (Fedora Core 1), I saw that it checked for a command line argument ("forcefsck") and ran the checking utility. That worked. But is there a better solution than that? I mean, everytime I want to check the filesystem, I dont want to go thru grub.
You should unmount the filesystem. If you need to fsck the root fs, you'll pretty much have to reboot. I don't know any way to safely unmount / while the system is running.