Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Powering-off external USB HDD causes Tumbleweed to lock-up

  1. #1

    Default Powering-off external USB HDD causes Tumbleweed to lock-up

    OK running Tumbleweed from my machine's internal drive. sometimes I have an external USB HDD attached

    I used to unmount the partitions on the external drive and power it down with gnome-disks. After a recent update, the power-down option on gnome-disks ceased to work. Instead the system locked-up. Had to do Alt+SysRq+"R","E","I","S","U","B" to get it back.

    My understanding is that gnome-disks uses these commands:

    To unmount partition /dev/sdXn:

    Code:
    udisksctl unmount -b /dev/sdXn
    To power-off device /dev/sdX

    Code:
    udisksctl power-off -b /dev/sdX
    Issued these commands from a virtual - Ctrl+Alt+F1 - terminal

    The "unmount" commands worked OK, but the "power-off" command filled the screen with text and then froze the system.

    Just before I did a reisub, I noted down a few phrases from the screen: "kernel not syncing", "kernel panic", "hard lockup",...

    What's going on?

    Is there some other way of powering-down an ext USB HDD?

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,667
    Blog Entries
    3

    Default Re: Powering-off external USB HDD causes Tumbleweed to lock-up

    As long as you unmount the disk before powering off, it should be okay.

    Hmm, I usually unplug the USB cable before I power off the external disk. So that would be:
    1. umount the drive
    2. unplug the USB cable (either end)
    3. power off the drive.


    For that matter, I usually power on, and let the drive get up to speed before I plug in the USB cable.
    openSUSE Leap 15.3; KDE Plasma 5.18.6;

  3. #3
    Join Date
    Feb 2018
    Location
    Romania
    Posts
    484

    Default Re: Powering-off external USB HDD causes Tumbleweed to lock-up

    Same here (without screen filled with text).
    With power-off my system has frozen 3 times in a row.
    Strange. I used these commands a week ago and everything was fine.

  4. #4
    Join Date
    Feb 2018
    Location
    Romania
    Posts
    484

    Default Re: Powering-off external USB HDD causes Tumbleweed to lock-up

    Quote Originally Posted by nrickert View Post
    As long as you unmount the disk before powering off, it should be okay.

    Hmm, I usually unplug the USB cable before I power off the external disk. So that would be:
    1. umount the drive
    2. unplug the USB cable (either end)
    3. power off the drive.


    For that matter, I usually power on, and let the drive get up to speed before I plug in the USB cable.
    Sorry, there is a misunderstanding. I am talking about a 2.5" hdd powered only by USB.

  5. #5

    Default Re: Powering-off external USB HDD causes Tumbleweed to lock-up

    Have you tried sync;sync;sync...depending upon the number of partitions on the disk before running the commands to insure you don't have any cached writes waiting?
    I don’t have anything to hide, but I don’t have anything I want to show you either.

  6. #6
    Join Date
    Feb 2018
    Location
    Romania
    Posts
    484

    Default Re: Powering-off external USB HDD causes Tumbleweed to lock-up

    1. I did not sync but I did not write anything on it.
    2. I think that if there was some caches writes waiting, I would not unmount it (not power-off).

  7. #7

    Default Re: Powering-off external USB HDD causes Tumbleweed to lock-up

    Re: nrickert's suggestion. To clarify: the drive in Q is an external USB drive; it draws its power from the computer to which it is attached.

    Moving on:

    Could this - the recent tendency of my system to freeze when I attempt to power-down an ext HDD - be a "permissions" problem? I.e., have the permissions for gnome-discs, udisksctl (whatever) gone awry somewhere as a result of a recent update?

    What if I tossed a "sudo" into the mix - would that do anything, like, bad?

    A thought (of more general interest): is there a way of asking the system to simulate the performance of a command (and to report back) without actually carrying-out the command?

  8. #8
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,667
    Blog Entries
    3

    Default Re: Powering-off external USB HDD causes Tumbleweed to lock-up

    Quote Originally Posted by another_roadrunner View Post
    Sorry, there is a misunderstanding. I am talking about a 2.5" hdd powered only by USB.
    Okay. I never had a problem with one of those. I just unmount, then unplug the USB (which powers it down).

    I have usually mounted via the "Device Notifier" in KDE. So I unmount the same way, and it tells me that it is safe to remove. But I guess that's probably the same as what Gnome-disks was doing.
    openSUSE Leap 15.3; KDE Plasma 5.18.6;

  9. #9
    Join Date
    Feb 2018
    Location
    Romania
    Posts
    484

    Default Re: Powering-off external USB HDD causes Tumbleweed to lock-up

    From what I was reading it is better to unplug an external hdd after "power-off" command. After "unmount" the hdd is still powered and platters still spin. "Power-off" will shut down the power and the platters will stop spin.

  10. #10
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    32,320
    Blog Entries
    15

    Default Re: Powering-off external USB HDD causes Tumbleweed to lock-up

    Quote Originally Posted by nrickert View Post
    Okay. I never had a problem with one of those. I just unmount, then unplug the USB (which powers it down).

    I have usually mounted via the "Device Notifier" in KDE. So I unmount the same way, and it tells me that it is safe to remove. But I guess that's probably the same as what Gnome-disks was doing.
    Hi
    Likewise here, one note though I always use a Y adapter to ensure there is plenty of power for a USB disk... never had an issue unmounting/syncing then unplugging.

    I also use a USB hub/USB 2.5" caddie, this is powered via a usb power adapter for the HDD, also have a USB IDE-SATA adaptor with separate power for 3.5" drives, this also works fine.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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