Lost Connection
Hi, not sure if this will be calssed as off topic or not, but I am a Ham and it is about Linux.
I have a link between Linux (Mandrake 8.2) and a windows XP Pro box (established by smbmount). If (when) the XP box goes down, then comes back up again, the link is no longer there. If I try to access it from Linux:
Quoted 1 line
ls
XP_Drive
I get
ls : XP_Drive: Input/output error
If I try to access from midnight commander I get
File 'XP_Drive' existd\s but cannot be stat-ed: Input/output error
The only way I have managed to resolve the problem to date is to reboot linux, I know there has to be a better way..............what is it please
Barry
ve3nav/va3wi
Hello Barry,
You have multiple options. Linux believes that the drive is still mounted
but the XP machine knows nothing about that old connection. You can (as root) run umount /path/to/where/you/mounted.
As an example I mount a shared folder on my wife's XP machine. I use
smbmount //wildhare/new\ stuff /home/jack/wildhare
If she reboots before I unmount the drive I have to be careful. Any console that is in /home/jack/wildhare or a subfolder will hang if I try to move out of there (with a good reason). From any console *not* in /home/jack/wildhare I can run (as root) umount /home/jack/wildhare
If there is a console (or any program) that has the mounted filesystem as its current directory you will get an error telling you that it is in use. You can find out what/who is using it by running fuser -v /home/jack/wildhare. You can force it to unmount by running umount -f /home/jack/wildhare.
The other option is to kill the smbmount process. ps aux|grep smbmount to find its pid.
I hope this helps,
Jack Zielke
KG4GJY
Quoting barry <[email protected]>:
Quoted 33 lines
Hi, not sure if this will be calssed as off topic or not, but I am a Ham and
it is about Linux.
I have a link between Linux (Mandrake 8.2) and a windows XP Pro box (established by smbmount). If (when) the XP box goes down, then comes back up
again, the link is no longer there. If I try to access it from Linux:
Quoted 1 line
ls
XP_DriveI get
ls :
XP_Drive: Input/output errorIf I try to access from midnight commander I get
File '
XP_Drive' existd\s but cannot be stat-ed: Input/output errorThe only way I have managed to resolve the problem to date is to reboot linux,
I know there has to be a better way..............what is it pleaseBarry
ve3nav/va3wi
-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 2 lines · Jack Zielke
The other option is to kill the smbmount process. ps aux|grep smbmount to find its pid.
... you might also try:
kill pidof smbmount ...
Signature · 2 lines
73 , de WD0FPC
aka: terryHi, Barry:
Yes, this is off topic.
This list is about amateur radio uses of linux.
Not about hams that happen to use linux for
non-amateur radio uses.
I'd suggest "[email protected]".
Another suggestion would be to follow the suggestion
at the bottom of every post on this list:
"More majordomo info at http://vger.kernel.org/majordomo-info.html"
However, let me guess that you 'smbmount'ed a XP filesystem
on a linux workstation. Then, when the XP filesystem 'goes down', you are suprised to see that the linux workstation has dropped the 'link' (smbmount)! :-|
Try smb-un-mount'ing the XP-filesystem before the XP box "goes down".
Then re-smbmount'ing when the XP box 'goes up'.
;-)
See 'man smbumount'
HTH, Chuck
Quoted 28 lines · barry
Hi, not sure if this will be calssed as off topic or not, but I am a Ham and it is about Linux.
I have a link between Linux (Mandrake 8.2) and a windows XP Pro box (established by smbmount). If (when) the XP box goes down, then comes back up again, the link is no longer there. If I try to access it from Linux:
Quoted 1 line
ls
XP_DriveI get
ls :
XP_Drive: Input/output errorIf I try to access from midnight commander I get
File '
XP_Drive' existd\s but cannot be stat-ed: Input/output errorThe only way I have managed to resolve the problem to date is to reboot linux, I know there has to be a better way..............what is it please
Barry
ve3nav/va3wi
-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html