Comment 117 for bug 792085

Revision history for this message
In , Luis-medina-1 (luis-medina-1) wrote :

(In reply to Oliver Neukum from comment #6)
> What does the eject command on a terminal do?

Hi Oliver,

The eject command just unmount the partitions.

medina:~ # eject /dev/sdb

systemd-journalctl log:

Jun 30 13:12:50 medina.novell.com udisksd[2047]: Cleaning up mount point /run/media/luis/LUIS (device 8:17 is not mounted)
Jun 30 13:12:50 medina.novell.com ntfs-3g[4472]: Unmounting /dev/sdb1 (LUIS)
Jun 30 13:12:50 medina.novell.com udisksd[2047]: Cleaning up mount point /run/media/luis/ALBERTO (device 8:18 is not mounted)

However, if detach the hdd it gets remounted in my USB 3.0 port.

medina:~ # udisksctl power-off -b /dev/sdb

systemd-journalctl log:

Jun 30 13:13:01 medina.novell.com udisksd[2047]: Powering off /dev/sdb - successfully sent SCSI command START STOP UNIT
Jun 30 13:13:01 medina.novell.com kernel: sd 7:0:0:0: [sdb] Synchronizing SCSI cache
Jun 30 13:13:01 medina.novell.com udisksd[2047]: Powered off /dev/sdb - successfully wrote to sysfs path /sys/devices/pci0000:00/0000:00:14.0/usb3/3-1/remove
Jun 30 13:13:01 medina.novell.com kernel: sd 7:0:0:0: [sdb]
Jun 30 13:13:01 medina.novell.com kernel: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
Jun 30 13:13:01 medina.novell.com kernel: usb 3-1: USB disconnect, device number 5
Jun 30 13:13:01 medina.novell.com kernel: usb 3-1: new SuperSpeed USB device number 6 using xhci_hcd
Jun 30 13:13:01 medina.novell.com kernel: usb 3-1: New USB device found, idVendor=0bc2, idProduct=2321
Jun 30 13:13:01 medina.novell.com kernel: usb 3-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
Jun 30 13:13:01 medina.novell.com kernel: usb 3-1: Product: Expansion
Jun 30 13:13:01 medina.novell.com kernel: usb 3-1: Manufacturer: Seagate
Jun 30 13:13:01 medina.novell.com kernel: usb 3-1: SerialNumber: NA4BQHLX
Jun 30 13:13:01 medina.novell.com kernel: scsi8 : uas
Jun 30 13:13:01 medina.novell.com kernel: scsi 8:0:0:0: Direct-Access Seagate Expansion 0502 PQ: 0 ANSI: 6
Jun 30 13:13:01 medina.novell.com kernel: sd 8:0:0:0: Attached scsi generic sg1 type 0
Jun 30 13:13:01 medina.novell.com kernel: sd 8:0:0:0: [sdb] 3907029167 512-byte logical blocks: (2.00 TB/1.81 TiB)
Jun 30 13:13:01 medina.novell.com kernel: sd 8:0:0:0: [sdb] 4096-byte physical blocks
Jun 30 13:13:01 medina.novell.com kernel: sd 8:0:0:0: [sdb] Write Protect is off
Jun 30 13:13:01 medina.novell.com kernel: sd 8:0:0:0: [sdb] Mode Sense: 4f 00 00 00
Jun 30 13:13:01 medina.novell.com kernel: sd 8:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Jun 30 13:13:01 medina.novell.com mtp-probe[4516]: checking bus 3, device 6: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-1"
Jun 30 13:13:01 medina.novell.com mtp-probe[4516]: bus: 3, device: 6 was not an MTP device
Jun 30 13:13:03 medina.novell.com kernel: sdb: sdb1 sdb2 sdb3
Jun 30 13:13:03 medina.novell.com kernel: sd 8:0:0:0: [sdb] Attached SCSI disk
Jun 30 13:13:03 medina.novell.com kernel: hfsplus: write access to a journaled filesystem is not supported, use the force option at your own risk, mounting read-only.
Jun 30 13:13:03 medina.novell.com udisksd[2047]: Mounted /dev/sdb2 at /run/media/luis/ALBERTO on behalf of uid 1000
Jun 30 13:13:03 medina.novell.com org.gtk.Private.UDisks2VolumeMonitor[2504]: disc.c:332: error opening file BDMV/index.bdmv
Jun 30 13:13:03 medina.novell.com gnome-session[2458]: (gnome-shell:2609): Clutter-CRITICAL **: clutter_layout_manager_get_child_meta: assertion 'CLUTTER_IS_LAYOUT_MANAGER (manager)' failed
Jun 30 13:13:03 medina.novell.com gnome-session[2458]: (gnome-shell:2609): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
Jun 30 13:13:03 medina.novell.com gnome-session[2458]: (gnome-shell:2609): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
Jun 30 13:13:03 medina.novell.com gnome-session[2458]: (gnome-shell:2609): Clutter-CRITICAL **: clutter_layout_manager_get_child_meta: assertion 'CLUTTER_IS_LAYOUT_MANAGER (manager)' failed
Jun 30 13:13:03 medina.novell.com gnome-session[2458]: (gnome-shell:2609): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
Jun 30 13:13:03 medina.novell.com gnome-session[2458]: (gnome-shell:2609): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
Jun 30 13:13:03 medina.novell.com org.gtk.Private.UDisks2VolumeMonitor[2504]: disc.c:332: error opening file BDMV/BACKUP/index.bdmv
Jun 30 13:13:04 medina.novell.com ntfs-3g[4551]: Version 2014.2.15 external FUSE 29
Jun 30 13:13:04 medina.novell.com ntfs-3g[4551]: Mounted /dev/sdb1 (Read-Write, label "LUIS", NTFS 3.1)
Jun 30 13:13:04 medina.novell.com ntfs-3g[4551]: Cmdline options: rw,nodev,nosuid,uid=1000,gid=100,dmask=0077,fmask=0177,uhelper=udisks2
Jun 30 13:13:04 medina.novell.com ntfs-3g[4551]: Mount options: rw,nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,default_permissions,fsname=/dev/sdb1,blkdev,blksize=4096
Jun 30 13:13:04 medina.novell.com udisksd[2047]: Mounted /dev/sdb1 at /run/media/luis/LUIS on behalf of uid 1000
Jun 30 13:13:04 medina.novell.com ntfs-3g[4551]: Global ownership and permissions enforced, configuration type 1
Jun 30 13:13:04 medina.novell.com org.gtk.Private.UDisks2VolumeMonitor[2504]: disc.c:332: error opening file BDMV/index.bdmv
Jun 30 13:13:04 medina.novell.com org.gtk.Private.UDisks2VolumeMonitor[2504]: disc.c:332: error opening file BDMV/BACKUP/index.bdmv
Jun 30 13:13:04 medina.novell.com gnome-session[2458]: (gnome-shell:2609): Clutter-CRITICAL **: clutter_layout_manager_get_child_meta: assertion 'CLUTTER_IS_LAYOUT_MANAGER (manager)' failed
Jun 30 13:13:04 medina.novell.com gnome-session[2458]: (gnome-shell:2609): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed
Jun 30 13:13:04 medina.novell.com gnome-session[2458]: (gnome-shell:2609): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed

This is what happens in my USB 2.0 port.

medina:~ # eject /dev/sdb

systemd-journalctl log:

Jun 30 13:17:53 medina.novell.com udisksd[2047]: Cleaning up mount point /run/media/luis/LUIS (device 8:17 is not mounted)
Jun 30 13:17:53 medina.novell.com ntfs-3g[4732]: Unmounting /dev/sdb1 (LUIS)
Jun 30 13:17:53 medina.novell.com udisksd[2047]: Cleaning up mount point /run/media/luis/ALBERTO (device 8:18 is not mounted)

medina:~ # udisksctl power-off -b /dev/sdb

systemd-journalctl log:

Jun 30 13:18:01 medina.novell.com udisksd[2047]: Powering off /dev/sdb - successfully sent SCSI command START STOP UNIT
Jun 30 13:18:01 medina.novell.com kernel: sd 9:0:0:0: [sdb] Synchronizing SCSI cache
Jun 30 13:18:01 medina.novell.com udisksd[2047]: Powered off /dev/sdb - successfully wrote to sysfs path /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3/remove
Jun 30 13:18:01 medina.novell.com kernel: sd 9:0:0:0: [sdb]
Jun 30 13:18:01 medina.novell.com kernel: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
Jun 30 13:18:01 medina.novell.com kernel: usb 2-3: USB disconnect, device number 4

P.S.

medina:~ # uname -a
Linux medina.novell.com 3.16.7-21-desktop #1 SMP PREEMPT Tue Apr 14 07:11:37 UTC 2015 (93c1539) x86_64 x86_64 x86_64 GNU/Linux