Mickv
12-29-2000, 02:34 AM
Hi, When running an fsck on Red Hat Linux, when I try to run:
fsck /dev/hda1
I get a warning message saying that it can cause severe damage to the file system.
What is the correct way to run it? Do I need to unmount the drive first?
Thanks,
H. M. Murdock
12-29-2000, 03:18 AM
you dont need to totally umount it, but you do need to atleast remount it read-only so that while it is checking the filesystem, nothing can change anything on the disk and meess it up. Unmounting is the best option, but that is not always possible, especially if it is yopur root filesytem without booting from some sort of floppy.
Murdock
------------------
In 1972, a crack commando unit was sent to prison by a military court for a crime they didn't commit. These men promptly escaped from a maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune. If you have a problem, if no one else can help, and if you can find them, maybe you can hire the A-Team.
hambleto
12-29-2000, 07:42 AM
As Murdock said you can mount it in Read only. However from personal experience if you run fsck while mounted be prepared to have to fdisk the whole dir. I lost everything on one of my external drives by not unmounting the disk before running the util. Good luck