?
Solved

I/O Error on directory previously mounted by smbmount

Posted on 2001-06-07
6
Medium Priority
?
305 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Cloud Training Guides

FREE GUIDES: In-depth and hand-crafted Linux, AWS, OpenStack, DevOps, Azure, and Cloud training guides created by Linux Academy instructors and the community.

 

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

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.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month11 days, 4 hours left to enroll

770 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