[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Re: mnt input output error - maybe dumb mistake



Bruce Timberlake wrote:

On Tuesday 11 May 2004 03:38 pm, Jim Dory wrote:
Here's the problem:

[root/root]# cd /mnt
[root/root]# dir
dir: .: Input/output error

The error of my ways:

I am using this raq4r as a file share server with samba. I was
testing my abilities at backups when I did this:
[root/root]# mount -t smbfs //123.456.789.123/c$ /mnt -o
username=mine,password=mypasswd

It is common practice to make another directory under /mnt as the actual attach point for mounts. Nothing really prevents you from attaching directly to /mnt; it's just not conventional.

Then I changed to /mnt and there were the files. Ok.. so next I
tried umount. I did a man umount and I tried a few things, but the
files were still there.

You can't umount a mount point "in use" - if there is a file open on it, or even if a user is sitting "in" the directory at a bash prompt.
From the man page:

 Note that a file system cannot be unmounted when it is 'busy'- for
 example, when there are open files on it, or when some process has
 its working directory there, or when a swap file on it is in use.
 The offending process could even be umount itself - it opens libc,
 and libc in its turn may open, for example, locale files. A lazy
 unmount avoids this problem.


To umount /mnt, try:

 cd ~
 umount /mnt


P.S. - This list will cease to exist on Friday, May 14 2004. Please
visit http://www.cobaltfacts.com and/or http://lists.qbalt.com and
subscribe to one or more of those lists for help in the future.





Thanks Bruce, that did it. Guess I was trying to be too complicated. Whoohoo! I was getting worried as I was reading through the corrupted filesystem messages throughout google.

as for the p.s., already been there done that. Figured this list isn't dead yet, judging by the number a message it is generating for the last couple days. But I'm subscribed to both.. thanks.

cheers, Jim

--
Jim D.
http://www.nomealaska.org