Solved

I/O Error on directory previously mounted by smbmount

Posted on 2001-06-07
6
301 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

832 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