Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 311
  • Last Modified:

I/O Error on directory previously mounted by smbmount

(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
asciiman
Asked:
asciiman
  • 3
  • 2
1 Solution
 
jdfoxCommented:
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
 
asciimanAuthor Commented:
No can do:
I'm unable to delete zip( Permission denied). Even the Superures can't. I just don't understand.
0
 
jdfoxCommented:
Please ls -al zip, and post results here.

Thanks,

JF
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
asciimanAuthor Commented:
~> ls -al zip
ls: zip: I/O Error

A very infomative responce I might add. ;)
0
 
comotaiCommented:
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
 
asciimanAuthor Commented:
The "umount -f" worked! Pity you have to be root. Oh well, you can't have everything.

Thanks a lot.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now