Solved

I/O Error on directory previously mounted by smbmount

Posted on 2001-06-07
6
300 Views
Last Modified: 2013-12-06
(Red Hat; Samba 2.0.7)

I mounted (as a user; not as root) a directory from the windows network neigborhood onto a directory named "Zip", like so:

~>smbmount //Snorrie/Zip Zip

Unfortunately, I forgot to unmount the directory before shutting down "Snorrie" and pressing "Yes" on the message "There are 1 user(s) connected to your computer. (...) Do you want to continue?"

Now when I want to use the directory it says:

~>cd Zip
~/Zip>ls
ls: .: I/O Error

I can't delete, move, rename, mount or unmount it. Can you find some way to undo this? Preferably without haveing to go superuser, because my system manager is a bit grumpy and doesn't really understand Linux.
0
Comment
Question by:asciiman
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:jdfox
ID: 6167780
I'm afraid you'll need to su to root to fix this.  I would attempt a umount first, then delete zip if umount fails.
0
 

Author Comment

by:asciiman
ID: 6171232
No can do:
I'm unable to delete zip( Permission denied). Even the Superures can't. I just don't understand.
0
 
LVL 5

Expert Comment

by:jdfox
ID: 6172076
Please ls -al zip, and post results here.

Thanks,

JF
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:asciiman
ID: 6176052
~> ls -al zip
ls: zip: I/O Error

A very infomative responce I might add. ;)
0
 
LVL 3

Accepted Solution

by:
comotai earned 200 total points
ID: 6190058
Try one or more of the following;

smbumount ~/zip
umount -f ~/zip

If those don't work out then you can always try;

rm -rf ~/zip

and then try to remove the entry from /etc/mtab

However, in order to really clear it from you system, it's going to take a reboot. :/

If you get the ~/zip directory removed with rm -rf and out of the /etc/mtab file, you might be able to try to do an smbmount again to the same directory (with the other machine up) then do the smbumount and that might clear it up.

Good luck!
0
 

Author Comment

by:asciiman
ID: 6194184
The "umount -f" worked! Pity you have to be root. Oh well, you can't have everything.

Thanks a lot.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now