Public bug reported:

Use case: As a user of hot swap-able SATA disks using a Harddrive Riser
over eSATA. I need a safe, easy and convenient way to remove the hot
swap-able SATA disk without rebooting and without having to go to the
command line.

When attempting to eject an harddisk or a solid state disk using the eject 
button in "Gnome Disk Utility" it issues the 'eject' command which results in 
an IOCTL error.
The correct commands the eject button in the GUI should issue to eject a SATA 
HDD or SSD are:

# where X is the drive letter of the drive being worked with

# -Y   Put drive to sleep
sudo hdparm -Y /dev/sdX
# remove the device from the kernel
sudo sh -c 'echo 1 > /sys/block/sdX/device/delete'

Please see the screen shots for the error.
This should be an easy fix (20 minutes) for someone who is good a programmer.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnome-disk-utility 3.28.3-0ubuntu1~18.04.1
ProcVersionSignature: Ubuntu 4.15.0-74.84-generic 4.15.18
Uname: Linux 4.15.0-74-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Wed Jan  8 21:07:32 2020
InstallationDate: Installed on 2018-11-11 (423 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
SourcePackage: gnome-disk-utility
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: gnome-disk-utility (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug bionic

** Attachment added: "The Eject Button in Gnome Disk Utility"
   
https://bugs.launchpad.net/bugs/1858860/+attachment/5318659/+files/2020-01-08%281%29EjectSATADriveButton.png

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-disk-utility in Ubuntu.
https://bugs.launchpad.net/bugs/1858860

Title:
  Gnome Disk Utility Issues incorrect command when ejecting a SATA
  Harddisk or Solid State Drive

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-disk-utility/+bug/1858860/+subscriptions

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to