Results 1 to 10 of 10

Thread: Suspend hangs if external drive is mounted

Hybrid View

  1. #1
    Join Date
    Oct 2006
    Beans
    28

    Suspend hangs if external drive is mounted

    Hello,
    I've been having an issue with suspending when I have an external hard drive plugged into my USB port.
    This issue began when I upgraded to Karmic 9.10 a few months ago.

    If I try to suspend (or hibernate) and the drive is mounted, the screen will go black and I'll see a blinking cursor, and about a minute later a strange error message will pop up (if needed I can recreate the error and write it down) complaining about I/O blocks and maybe FAT something.

    Then I can sometimes sorta fix the problem by using alt-F1 or alt-F7 but my computer runs terribly and usually freezes after that if I don't restart.

    I can avoid this issue by manually unmounting the drive before suspend but it's sort of a rub when I forget to do so and suspend fails.

    My error might be similar to this one:
    http://ubuntuforums.org/showthread.p...e+hang+suspend

    But I tried that hack and it did not fix my problem. (I suppose I could try harder.)

    Much thanks to anyone who can help out!

    Oh, my specs:
    Lenovo T500 ThinkPad notebook running Ubuntu 9.10
    Samsung 500GB USB drive (HXMU050DA/M22) using NTFS I believe (Properties says "Filesystem type: msdos")

  2. #2
    Join Date
    Oct 2006
    Beans
    28

    Re: Suspend hangs if external drive is mounted

    Bump

  3. #3
    Join Date
    Oct 2006
    Beans
    28

    Re: Suspend hangs if external drive is mounted

    Quote Originally Posted by Comrade42 View Post
    Bump
    maybe I'm bumping at odd hours for folks...

  4. #4
    Join Date
    Feb 2007
    Beans
    8

    Re: Suspend hangs if external drive is mounted

    That's brilliant; I had no idea that the external drive was the problem was. Ubuntu was mostly unusable on my laptop because suspend did not work. I have an 8 Gb SD card inserted into the card reader all the time, and thanks to you, I found out that's what was causing suspend to fail. While I can't help you solve your problem, I can confirm that unmounting prior to suspend fixes my problem as well. That script you linked to should work, but it's obviously a work around. You're supposed to run that script every time you want to sleep / wake up (actually, I think it remounts on its own upon wake up). It doesn't really "fix" suspend.

    Edit:

    Also, if you can edit the script here, I think it can do what you want. It describes basically the same problem.
    https://help.ubuntu.com/community/AspireOne/Ubuntu9.10
    I'm not an expert at this, but I think this is the most important line you need to edit:
    Code:
    for drive in $( /bin/ls /dev/mmcblk?p* ); do
    Specifically, the mmcblk?p* part should be whatever your device is. Let me know how it works out

    Edit Edit:

    Actually there might be more changes, particularly with the checking if it actually unmounted or not...
    Okay, it looks like the if statements do work, just find out where your drive is mounted
    Last edited by fugrank; March 24th, 2010 at 05:35 AM.

  5. #5
    Join Date
    Oct 2006
    Beans
    28

    Re: Suspend hangs if external drive is mounted

    Hmmmmm, it worked! It still displayed some error messages (like "FAT: bread failed ..." and "error: sdb block ...") but then it went right into suspend. That's pretty neat. Thanks for the help!

  6. #6
    Join Date
    Oct 2006
    Beans
    28

    Re: Suspend hangs if external drive is mounted

    Er, shoot, it doesn't always work.

    Here's the specific text of the error when I get the hang on suspend:
    Code:
    end_request: I/O error, dev sdb, sector 64
    Buffer I/O error on device sdb1, logical block 1
    Note: The computer successfully suspends if I simply unplug the external drive, though this is a scary solution to have to resort to.


    I think the difference this time was that I had a program accessing the external drive.

    As a sidenote, the specific text I changed in the script recommended by fugrank was:

    Code:
            for drive in $( /bin/ls /media/GANTRITHOR ); do
    from
    Code:
    for drive in $( /bin/ls /dev/mmcblk?p* ); do
    Perhaps I should have used "/dev/sdb" instead of the specific name of the drive I was dealing with ("GANTRITHOR")?

    Any help would be great! Thanks!

  7. #7
    Join Date
    Oct 2006
    Beans
    28

    Re: Suspend hangs if external drive is mounted

    Hmm, I've encountered a new problem: My hard drive doesn't auto-mount when I plug it in anymore, even after multiple restarts and plug/unplugging, and having it plugged in before booting.

    I changed the "/media/GANTRITHOR" in my above code to "/dev/sdb*" after thinking about it a little bit.

    But the drive not auto-mounting anymore is bothering me. Any advice?
    Thanks!

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
  •