LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-13-2005, 06:07 PM   #1
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Rep: Reputation: 15
Question Forcibly Remove Dead Smb Mounts


Does anyone know of a good way to mount Samba volumes so that you dont have to reboot your box to get them unmounted when the remote server gets reset?

This is utterly annoying.

I am using Suse 9.1 and fuser -k just hangs. It never worked for me anyway.

Maybe some kind of a loop mount or container fs that can be forcibly removed will do the job?
 
Old 06-13-2005, 07:07 PM   #2
rkettle
Member
 
Registered: Jun 2005
Posts: 204

Rep: Reputation: 30
not sure what you mean by remote server being reset... I assume you are talking client side.

I use samba alot, but do not quite get what the problem is... however, you could cron samba mounts and umounts at regular intervals so that it is transparent to users.

However, sounds like samba is not configured right to me.

Regards
Richard
 
Old 06-13-2005, 10:15 PM   #3
tunasashimi
Member
 
Registered: Jun 2005
Posts: 82

Original Poster
Rep: Reputation: 15
Okay

Try this:

mount //server/c /mnt/c

Browse it a little, copy and edit some files
Now turn off the server that had the shared files
And turn it back on

1) /mnt/c is no longer accessible on the linux box
2) you can't unmount it (filesystem busy)
(fuser -k hangs forever)
3) you can remount it, but only in a different subdirectory
4) listing /mnt takes forever and eventually gives an io error

This has happened on every single linux installation I have tried!!!

Please people! I would like to find a remedy!!!
Why doesnt unmount instantly return?! What is the big deal?
If I tell my computer to do something, I dont care who else is doing what,
it must do what I want, INSTANTLY.

Or it sucks!
 
Old 06-13-2005, 11:51 PM   #4
jerky
Member
 
Registered: Jul 2003
Distribution: RH 7.3 , RH9,RHEL,FC
Posts: 38

Rep: Reputation: 15
lazy umount

you can run "umount -lf /mountpoint" and this will unmount it without a care in the world

If your smbmount is mounted via your "/etc/fstab" , you may also try using a soft mount for both NFS/SMB shares as it will make it easier to unmount / fix in the case your winbloz box goes down.

Last edited by jerky; 06-13-2005 at 11:52 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SMB mounts not working after Fedore 4 install sketchydave Linux - Networking 5 07-13-2005 02:40 PM
FiFo sharing over NFS/SMB mounts..?? JZMatrix Linux - General 3 12-12-2004 02:11 AM
Remove mounts from desktop gnome Justin_Time Slackware 6 06-28-2004 11:09 AM
NFS SMB common mounts greno Linux - Networking 1 06-02-2004 05:51 PM
smb mounts in fstab failing gw1500se Mandriva 4 05-31-2004 08:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration