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?
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.
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?
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.
/: 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…
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
udisksctl power-off -b /dev/x - froze the system.