public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6.23-1] [USB Mass Storage] [USB_PERSIST] Losing mounted USB storage after resume
@ 2007-11-15 14:57 Raymano Garibaldi
  2007-11-15 17:01 ` Mark Lord
  0 siblings, 1 reply; 4+ messages in thread
From: Raymano Garibaldi @ 2007-11-15 14:57 UTC (permalink / raw)
  To: linux-kernel

Hi,

Is there a way/patch that would revert the USB mass storage
suspend/resume behavior to the way things worked on and prior to
kernel 2.6.21?

The problem is mounting a usb drive, suspending while mounted,
detaching the usb drive during suspend, reattaching usb drive during
suspend before resume, and resuming.

In this case the mount is lost and the drive has to be remounted after
resume. If the device remains attached while the computer is
suspended, USB_PERSIST works as expected and the device remains
mounted when the computer resumes. Kernel 2.6.21-x would leave the
mount point intact whether the device was left attached or was
detached and reattached while the computer was suspend.

We need this functionality particularly in read-only live USB distros.
In this case the USB device is read-only and can not change while the
computer is suspended even if it gets detached and is reattached
before resume.

Thank you,
Raymano G.

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

* Re: [2.6.23-1] [USB Mass Storage] [USB_PERSIST] Losing mounted USB storage after resume
  2007-11-15 14:57 [2.6.23-1] [USB Mass Storage] [USB_PERSIST] Losing mounted USB storage after resume Raymano Garibaldi
@ 2007-11-15 17:01 ` Mark Lord
  2007-11-15 21:57   ` Raymano Garibaldi
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Lord @ 2007-11-15 17:01 UTC (permalink / raw)
  To: Raymano Garibaldi; +Cc: linux-kernel

Raymano Garibaldi wrote:
> Hi,
> 
> Is there a way/patch that would revert the USB mass storage
> suspend/resume behavior to the way things worked on and prior to
> kernel 2.6.21?
> 
> The problem is mounting a usb drive, suspending while mounted,
> detaching the usb drive during suspend, reattaching usb drive during
> suspend before resume, and resuming.
> 
> In this case the mount is lost and the drive has to be remounted after
> resume. If the device remains attached while the computer is
> suspended, USB_PERSIST works as expected and the device remains
> mounted when the computer resumes. Kernel 2.6.21-x would leave the
> mount point intact whether the device was left attached or was
> detached and reattached while the computer was suspend.
> 
> We need this functionality particularly in read-only live USB distros.
> In this case the USB device is read-only and can not change while the
> computer is suspended even if it gets detached and is reattached
> before resume.
..

Some kind of boot flag would cure this one nicely.

I have the same issue here:  boot/run notebook from USB stick,
eventually suspend the notebook and unplug the stick so it can
be packed into the case for travel.

Unpack at the other end, replug the stick, and resume from suspend.
This should be doable, perhaps with a boot parameter override or something.

???

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

* Re: [2.6.23-1] [USB Mass Storage] [USB_PERSIST] Losing mounted USB storage after resume
  2007-11-15 17:01 ` Mark Lord
@ 2007-11-15 21:57   ` Raymano Garibaldi
  2007-11-25 18:19     ` Pavel Machek
  0 siblings, 1 reply; 4+ messages in thread
From: Raymano Garibaldi @ 2007-11-15 21:57 UTC (permalink / raw)
  To: Mark Lord; +Cc: linux-kernel

The scenario that you've described is exactly what I have in mind as
well. The lack of this feature, which worked fine in 2.6.21, is
holding us back on updating the kernel in our LiveUSB distribution. I
think that this is a feature that would be more and more needed as
portable storage devices start growing in capacity and speed and start
getting smaller in physical size.

Please advise us on how to accomplish this. Kernel boot option; patch;
anything! We'll take anything.

Thanks
Raymano G.

On 11/15/07, Mark Lord <lkml@rtr.ca> wrote:
> Raymano Garibaldi wrote:
> > Hi,
> >
> > Is there a way/patch that would revert the USB mass storage
> > suspend/resume behavior to the way things worked on and prior to
> > kernel 2.6.21?
> >
> > The problem is mounting a usb drive, suspending while mounted,
> > detaching the usb drive during suspend, reattaching usb drive during
> > suspend before resume, and resuming.
> >
> > In this case the mount is lost and the drive has to be remounted after
> > resume. If the device remains attached while the computer is
> > suspended, USB_PERSIST works as expected and the device remains
> > mounted when the computer resumes. Kernel 2.6.21-x would leave the
> > mount point intact whether the device was left attached or was
> > detached and reattached while the computer was suspend.
> >
> > We need this functionality particularly in read-only live USB distros.
> > In this case the USB device is read-only and can not change while the
> > computer is suspended even if it gets detached and is reattached
> > before resume.
> ..
>
> Some kind of boot flag would cure this one nicely.
>
> I have the same issue here:  boot/run notebook from USB stick,
> eventually suspend the notebook and unplug the stick so it can
> be packed into the case for travel.
>
> Unpack at the other end, replug the stick, and resume from suspend.
> This should be doable, perhaps with a boot parameter override or something.
>
> ???
>

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

* Re: [2.6.23-1] [USB Mass Storage] [USB_PERSIST] Losing mounted USB storage after resume
  2007-11-15 21:57   ` Raymano Garibaldi
@ 2007-11-25 18:19     ` Pavel Machek
  0 siblings, 0 replies; 4+ messages in thread
From: Pavel Machek @ 2007-11-25 18:19 UTC (permalink / raw)
  To: Raymano Garibaldi; +Cc: Mark Lord, linux-kernel

Hi!

> The scenario that you've described is exactly what I have in mind as
> well. The lack of this feature, which worked fine in 2.6.21, is
> holding us back on updating the kernel in our LiveUSB distribution. I
> think that this is a feature that would be more and more needed as
> portable storage devices start growing in capacity and speed and start
> getting smaller in physical size.
> 
> Please advise us on how to accomplish this. Kernel boot option; patch;
> anything! We'll take anything.

This is tricky to do safely. You could verify during resume that fs
was not modified (same last mount date on ext2) and if it was not,
just proceed as if it was not unmounted. Patch would be warmly
welcome.
							Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

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

end of thread, other threads:[~2007-11-25 18:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-15 14:57 [2.6.23-1] [USB Mass Storage] [USB_PERSIST] Losing mounted USB storage after resume Raymano Garibaldi
2007-11-15 17:01 ` Mark Lord
2007-11-15 21:57   ` Raymano Garibaldi
2007-11-25 18:19     ` Pavel Machek

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