Solved

I/O Error on directory previously mounted by smbmount

Posted on 2001-06-07
6
298 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

760 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

22 Experts available now in Live!

Get 1:1 Help Now