Results 1 to 2 of 2

Thread: Resuming with external disk switched off fails permanently

Hybrid View

  1. #1
    Join Date
    May 2009
    Location
    Belgium
    Beans
    24
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Question Resuming with external disk switched off fails permanently

    I have an exteral eSATA disk connected to a Lenovo L420 notebook, which I use only for data. The system (13.04, 3.8.0-29-generic) boots from the internal disk.
    Now the system goes to standby while the external disk is mounted. Then I switch off the external disk.
    When the system now resumes, and I forgot to switch on the external disk, resume fails permanently, even if I switch on the external disk and wait.
    The system then needs to be force-stopped and restarted.

    Isn't this behaviour unexpected? If the system cannot resume with the external disk basically missing, I'd expect it to wait until it becomes available, and then resume normally, instead of failing permanently.
    Last edited by belgianfries; August 27th, 2013 at 01:29 PM.

  2. #2
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Resuming with external disk switched off fails permanently

    You have a valid concern, but look at it this way. How would Linux behave if you disconnected your internal hard disk during a session? Would it freeze completely? Would it wait for a long time for you to reconnect it? Linux expects perfect hardware.

    When you power off your external drive and your notebook resumes, a mounted filesystem is now mysteriously gone. Linux does not tolerate file systems that disappear without kernel involvement. What are the errors shown in dmesg or /var/log?

    You would need to add an unmount command to your suspend script, then a remount command in your resume script.

    Why do you need to power off your external disk after suspend? Does the disk not go to sleep as well? Does it keep spinning or does it park the heads and go to idle?
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •