[ltp] Re: Re: Suspend to ram and usb-stick (SOLVED)

Volker Braun linux-thinkpad@linux-thinkpad.org
Wed, 27 Oct 2004 16:43:06 -0400


Nothing is secretly unmounted at suspend. You either keep any given file
system mounted, in which case the drivers better survive the suspend, or
you close files / leave directories and then unmount manually.

Especially the rmmod ehci_hcd will fail if the usb-2.0-stick is still
mounted. Then your script goes off to suspend with /dev/sda mounted. After
resume, /dev/sda is still in use and the next free block device is
/dev/sdb and so on.

Moral of the story, unmount external file systems before suspend. In case
of usb stuff, you could alternatively use userspace tricks or maybe ub. 

-Volker