On Wed, Jan 17, 2007 at 08:15:17PM -0600, Greg Wallace wrote:
> I want to try running a manual fsck on my main partition.  I booted into
> runlevel 3 and tried "umount /dev/hda2" but got "device is busy".

The runlevel certainly doesn't have anything to do with it... don't know
who would have told you it did.

>  I'm thinking that I should be trying to unmount the filesystem itself,
>  not the device,

You don't mount devices, only filesystems.  Filesystems often, but not
nearly always, live on devices.

>  but don't know how to figure out what that is (and I can't remember a
>  command that would show the filesystem name associated with the device).
>  Then again, maybe I'm way off base here.

man mount(1)

>  Anyway, I just need to be able to unmount the filesystem so I can run
>  fsck on it.

No, you need to unmount it (or mount it read-only) in order to *repair* it
with fsck.  You can *check* it all you want.

Or touch /forcefsck, and then reboot the box, since you already indicated
that wasn't a problem.

> Can someone tell me what to enter to do the unmount?

You don't want to do that... if you unmount the filesystem, exactly where
do you expect your running software to be coming from after you do so?

Amazing to me that in the entire thread to date, no one pointed out how
fsck actually works, or why you really don't want to un-mount the
filesystem.

-- 
 Marc Wilson |     Don't take life so serious, son, it ain't nohow
 [EMAIL PROTECTED] |     permanent.  -- Walt Kelly
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to