Networking Forums

Networking Forums > Computer Networking > Linux Networking > how can I umount or reconnect a share after the share provider reboots?

Reply
Thread Tools Display Modes

how can I umount or reconnect a share after the share provider reboots?

 
 
Gary Dale
Guest
Posts: n/a

 
      11-21-2004, 11:34 AM
I'm connecting to a couple of shares on an XP Pro workstation - not a
good idea, I know, but it's convenient in this case except:

sometimes the XP workstation gets rebooted while the shares are
connected. After that, I can't disconnect them and I can't reconnect
them. This creates a real problem because some programs (esp. under
wine) seem to read the full /mnt folder so they take forever.

I've tried umount //server/share --force as root but it doesn't work. I
get 4 or 5 error messages telling me things like the device is busy, etc..

To be clear: there are no processes that should be keeping the share
from being unmounted. The problem is specifically that the workstation
providing the share has rebooted. If it hadn't, umounting would work.
lsof and fuser both return errors, presumably due to the discrepancy
between the what the mount table thinks is mounted and what I really
have a connection to.

Any solutions?
 
Reply With Quote
 
 
 
 
Walter Mautner
Guest
Posts: n/a

 
      11-21-2004, 07:34 PM
Gary Dale wrote:

> I'm connecting to a couple of shares on an XP Pro workstation - not a
> good idea, I know, but it's convenient in this case except:
>
> sometimes the XP workstation gets rebooted while the shares are
> connected. After that, I can't disconnect them and I can't reconnect
> them. This creates a real problem because some programs (esp. under
> wine) seem to read the full /mnt folder so they take forever.
>

That's one of the reasons why I prefer to use autofs with a rather short
timeout for smb and other shares: I cannot forget to unmount them.
However, keeping a shell or file viewer open on the mountpoints prohibits
auto-unmounting and then there is a hang.
When you are certain no write access has to be performed, mount the shares
r/o and after everything else fails, remove the offending entry
in /etc/mtab, as a workaround.
--
Longhorn error#4711: TCPA / NGSCP VIOLATION: Microsoft optical mouse
detected penguin patterns on mousepad. Partition scan in progress
*to*remove*offending*incompatible*products.**Reactivate*your*MS*software.
Linux woodpecker.homnet.at 2.6.9-mm1[LinuxCounter#295241]
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Home Directory Mapping to Share\UserName sometimes maps to Share Bill Windows Networking 3 10-16-2007 03:26 PM
Need help to reconnect my share computer thru wireless router dmkAlex Wireless Internet 0 09-25-2007 07:27 PM
router reboots when file share downloading? trs80 Windows Networking 0 06-28-2005 05:51 AM
Simple Wireless Network to share ADSL Connection, but we cannot see or share files any more, help Hubert Dethurens Wireless Internet 3 12-22-2003 01:52 PM
Simple Wireless Network to share ADSL Connection, but we cannot see or share files any more, help Frank SERVAIS Wireless Internet 0 12-21-2003 04:22 PM



1 2 3 4 5 6 7 8 9 10 11