On Wednesday, January 17, 2007 @ 8:33 PM, Randall Schulz wrote:

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

Interesting.  I booted up in runlevel 3 thinking that would prevent anything
from from interfering with the umount.  Based on a note from Sunny, sounds
like I need to boot from the installation DVD in order to be able to unmount
the file system.

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


So I guess there was nothing wrong with umount /dev/hda2, it was simply
unmountable, so to speak, for other reasons.

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

Thanks.  I'll make note of that.

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

Ok, so there was nothing wrong with what I entered, it's just that the
filesystem was unmountable.

>> Thanks,
>> Greg Wallace


>Randall Schulz

Thanks,
Greg Wallace


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

Reply via email to