Greg,

On Wednesday 17 January 2007 18:15, 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".

That means either a process has a file on the mounted file system open 
or there is a process with a directory on that file system as its 
current working directory (this is the one that's easy to overlook).


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

There's no real difference when it comes to using the "umount" command. 
It will look up a mount-point directory in /etc/mtab and translate it 
to the name of the device mounted there for you, so you can use either 
to accomplish an unmount operation.


> 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).

The "mount" command shows which device is mounted on which mount point 
(a directory).


> Then again, maybe I'm 
> way off base here.  Anyway, I just need to be able to unmount the
> filesystem so I can run fsck on it.  Can someone tell me what to
> enter to do the unmount?

% umount /dev/sd...

% umount /dev/hd...

% umount /media/...

etc.


> Thanks,
> Greg Wallace


Randall Schulz
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to