Linux HAM/Amateur Radio development
 help / color / mirror / Atom feed
* Lost Connection
@ 2002-12-02 23:26 barry
  2002-12-03  1:24 ` Jack Zielke
  2002-12-03 22:12 ` Chuck Gelm
  0 siblings, 2 replies; 4+ messages in thread
From: barry @ 2002-12-02 23:26 UTC (permalink / raw)
  To: linux-hams

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:

>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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Lost Connection
  2002-12-02 23:26 Lost Connection barry
@ 2002-12-03  1:24 ` Jack Zielke
  2002-12-04 12:10   ` terry
  2002-12-03 22:12 ` Chuck Gelm
  1 sibling, 1 reply; 4+ messages in thread
From: Jack Zielke @ 2002-12-03  1:24 UTC (permalink / raw)
  To: barry_linux; +Cc: linux-hams

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 <barry_linux@rogers.com>:

> 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:
> 
> >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
> 
> 
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-hams" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


-- 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Lost Connection
  2002-12-02 23:26 Lost Connection barry
  2002-12-03  1:24 ` Jack Zielke
@ 2002-12-03 22:12 ` Chuck Gelm
  1 sibling, 0 replies; 4+ messages in thread
From: Chuck Gelm @ 2002-12-03 22:12 UTC (permalink / raw)
  To: barry_linux; +Cc: linux-hams

Hi, 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 "linux-newbie@vger.kernel.org".
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

barry wrote:
> 
> 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:
> 
> >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
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-hams" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Lost Connection
  2002-12-03  1:24 ` Jack Zielke
@ 2002-12-04 12:10   ` terry
  0 siblings, 0 replies; 4+ messages in thread
From: terry @ 2002-12-04 12:10 UTC (permalink / raw)
  To: linux-hams

On Mon, 2 Dec 2002, Jack Zielke wrote:

> The other option is to kill the smbmount process.  ps aux|grep smbmount
> to find its pid.

... you might also try:

    kill `pidof smbmount` ...


-- 
73 , de WD0FPC
    aka: terry


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-12-04 12:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-02 23:26 Lost Connection barry
2002-12-03  1:24 ` Jack Zielke
2002-12-04 12:10   ` terry
2002-12-03 22:12 ` Chuck Gelm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox