On Tue, 11 Mar 2003, Ron Farrer wrote: > > Hello, > > I have a machine that apparently has a bad spot on the disk. I'd like to > run fsck on it, but the problem is the machine is headless and is only > accessed remotely (ssh). Without pulling it out, hooking up a montior & > keyboard, is there a way to run fsck safely, yet remotely, on a mounted > partition (the disk only has one: root) without causing any (further) > damage? > > TIA, > Ron > -- > Email: <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>
Assuming this is ext2 you can do something like tune2fs -i 1 /dev/hda and reboot and it will fsck on the reboot However there is now way you can do a fsck live unless you can get it to remount the rootfs read only and even then I don't think it will let you Rgds Rus -- http://www.65535.net | MSN: [EMAIL PROTECTED] | e: [EMAIL PROTECTED] "More bits for your bite" Lifetime FreeBSD + Linux Hosting and Shell Accounts Please respect RFC1855 and don't top post -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

