Linux USB
 help / color / mirror / Atom feed
* USB disk disconnect problems
@ 2022-08-21 11:17 James Dutton
  2022-08-21 14:47 ` Alan Stern
  2022-10-03 18:04 ` James Dutton
  0 siblings, 2 replies; 15+ messages in thread
From: James Dutton @ 2022-08-21 11:17 UTC (permalink / raw)
  To: linux-usb@vger.kernel.org

Hi,

Say I have mounted a usb disk.
I then disconnect the usb device
Linux complains about failed writes etc.
I then plug the usb device back in
Linux still complains about failed writes, and does not recover.

How do I get Linux to recognise the reinserted usb disk and carry on as normal?

I know my suggested behaviour might be detrimental for some users, in
case one modifies the usb disk in another computer and then comes
back, but I would like an option that assumes it has not been plugged
into anything else.

The reason being, I have a system that boots from a USB disk.
Due to interference, the USB device disconnects for a second or two
and then comes back, but Linux does not see it and I have to reboot
Linux to recover. So, in this situation I wish Linux to be able to
recover immediately, without needing a reboot.

The physical USB device removal then reinserting reproduces the
problem I am seeing, so I thought it would be a good example to get
working, if we could.

Can anyone give me any pointers as to where to start with fixing this?

Kind Regards

James

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

end of thread, other threads:[~2022-10-03 20:22 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-21 11:17 USB disk disconnect problems James Dutton
2022-08-21 14:47 ` Alan Stern
2022-08-21 16:36   ` James Dutton
2022-08-21 16:40     ` James Dutton
2022-08-21 18:11       ` Alan Stern
     [not found]   ` <CAA6KcBC2wEc78fgrMLBfbyEinR3rVUY6z8HeUbE=wtv0c4BP2Q@mail.gmail.com>
2022-08-21 19:03     ` Alan Stern
2022-08-21 20:03   ` Matthew Dharm
2022-08-21 20:59     ` James Dutton
2022-08-21 21:26       ` Matthew Dharm
2022-08-21 22:56         ` James Dutton
2022-08-22 10:03           ` Oliver Neukum
2022-08-22 10:18       ` Oliver Neukum
2022-10-03 18:04 ` James Dutton
2022-10-03 18:17   ` Alan Stern
2022-10-03 20:21     ` James Dutton

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