Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: "Jordan Crouse" <jordan.crouse@amd.com>
To: "Rodolfo Giometti" <giometti@linux.it>
Cc: linux-mips@linux-mips.org
Subject: Re: USB sleep & mount
Date: Tue, 23 May 2006 09:11:13 -0600	[thread overview]
Message-ID: <20060523151113.GK18042@cosmic.amd.com> (raw)
In-Reply-To: <20060523132418.GA28124@enneenne.com>

On 23/05/06 15:24 +0200, Rodolfo Giometti wrote:
> Hello,
> 
> When I put the system to sleep and then it wakes up everything works
> well _if_ the USB key is not mounted before the sleep. For instance,
> if I mount partition "/dev/sda1" (first USB key partition) and then go
> to sleep, at wake up the system forgets device "/dev/sda" and
> registers a new device "/dev/sdb" so, obviously, the filesystem
> previously mounted is not accessible anymore.

Thats exactly right - USB sleep is a very delicate and broken procedure.
Basically, the controller seems to be giving up and re-enumerating 
everything.

> My question is: is that correct since the userland, before going to
> sleep, should umount all external filesystems or it's a bug? :)

The userland technically *shouldn't* have to unmount the filesystems, but
its the safest option we have - between enumeration issues, and the age 
old problem of unplugging the external device while in sleep - its just
better to unmount the device before heading for nap time (or mount the
thing with '-a' so data isn't lost).

Is that ideal?  Of course not - but welcome to the wonderful world of
USB in Linux.

Jordan

      reply	other threads:[~2006-05-23 15:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-23 13:24 USB sleep & mount Rodolfo Giometti
2006-05-23 15:11 ` Jordan Crouse [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060523151113.GK18042@cosmic.amd.com \
    --to=jordan.crouse@amd.com \
    --cc=giometti@linux.it \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox