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:
udisksctl unmount -b /dev/sdXn
To power-off device /dev/sdX
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?
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.
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?
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?
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.
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.
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.
Hi
I don’t see it here on 4.16.9-1-default with GNOME, Nautilus and USB 3.0, now I do see some stack trace for the shell on unmounting with Nautilus, but all functional, no lockup…
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
|__ Port 1: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M
|__ Port 1: Dev 15, If 0, Class=Hub, Driver=hub/4p, 5000M
|__ Port 1: Dev 17, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
|__ Port 2: Dev 16, If 0, Class=Mass Storage, Driver=uas, 5000M
HDD uses the uas driver, all unmounted and unplugged fine…
Hi,
Malcolm, sorry, maybe I do not understand well but there îs no problem if I unmounted from Dolphin.
Command line is the problem.
udisksctl unmount -b /dev/x - working
then
udisksctl power-off -b /dev/x - froze the system.