[opensuse] unmount usb flash manually in terminal
Hello: This occurs in openSUSE 13.1 and its deafult KDE4 installation. User abc is logged in at graphical display 0 through kdm inot KDE4 session. He inserts a USB stick which is recognized and mounted automatically by KDE4 device manager. df -h /dev/sdb1 978M 94M 884M 10% /run/media/abc/KINGSTON The he wants to unmount it in a login shell (ssh session): umount /dev/sdb1 umount: /var/run/media/abc/KINGSTON: umount failed: Operation not permitted umount /run/media/flexys/KINGSTON/ umount: /run/media/abc/KINGSTON: umount failed: Operation not permitted Is this normal? How can the user unmount the device? Not by suing to root but as a normal user. Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
I made typo, the second umount command is: umount /run/media/abc/KINGSTON/ umount: /run/media/abc/KINGSTON: umount failed: Operation not permitted Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Istvan Gabor
Hello:
This occurs in openSUSE 13.1 and its deafult KDE4 installation.
User abc is logged in at graphical display 0 through kdm inot KDE4 session.
He inserts a USB stick which is recognized and mounted automatically by KDE4 device manager.
df -h /dev/sdb1 978M 94M 884M 10% /run/media/abc/KINGSTON
The he wants to unmount it in a login shell (ssh session):
umount /dev/sdb1 umount: /var/run/media/abc/KINGSTON: umount failed: Operation not permitted
umount /run/media/flexys/KINGSTON/ umount: /run/media/abc/KINGSTON: umount failed: Operation not permitted
Is this normal? How can the user unmount the device? Not by suing to root but as a normal user.
User must use the graphical app provided, on my system it is: Device Notifier Icon is in the "System Tray". I don't recall that w/o making "special" provisions, <user> was every permitted to mount/umount system devices. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, 10 Sep 2015 15:55:23 -0400 Patrick Shanahan wrote:
* Istvan Gabor
[09-10-15 15:33]: Hello:
This occurs in openSUSE 13.1 and its deafult KDE4 installation.
User abc is logged in at graphical display 0 through kdm inot KDE4 session.
He inserts a USB stick which is recognized and mounted automatically by KDE4 device manager.
df -h /dev/sdb1 978M 94M 884M 10% /run/media/abc/KINGSTON
The he wants to unmount it in a login shell (ssh session):
umount /dev/sdb1 umount: /var/run/media/abc/KINGSTON: umount failed: Operation not permitted
umount /run/media/flexys/KINGSTON/ umount: /run/media/abc/KINGSTON: umount failed: Operation not permitted
Is this normal? How can the user unmount the device? Not by suing to root but as a normal user.
User must use the graphical app provided, on my system it is: Device Notifier Icon is in the "System Tray".
I don't recall that w/o making "special" provisions, <user> was every permitted to mount/umount system devices.
Dynamically mounted devices also appear at the bottom of the "Places" panel (toggle w/ F9) in Dolphon. Right-click the device and select 'safely remove." [oS 13.2 KDE4 (4.14.9)] -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Carl Hartung
Dynamically mounted devices also appear at the bottom of the "Places" panel (toggle w/ F9) in Dolphon. Right-click the device and select 'safely remove." [oS 13.2 KDE4 (4.14.9)]
Krusader also has a provision to mount/umount devices under "Tools" -> "MountMan" and there may be an installable widget to accomplish same. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Отправлено с iPhone
10 сент. 2015 г., в 22:55, Patrick Shanahan
написал(а): * Istvan Gabor
[09-10-15 15:33]: Hello:
This occurs in openSUSE 13.1 and its deafult KDE4 installation.
User abc is logged in at graphical display 0 through kdm inot KDE4 session.
He inserts a USB stick which is recognized and mounted automatically by KDE4 device manager.
df -h /dev/sdb1 978M 94M 884M 10% /run/media/abc/KINGSTON
The he wants to unmount it in a login shell (ssh session):
umount /dev/sdb1 umount: /var/run/media/abc/KINGSTON: umount failed: Operation not permitted
umount /run/media/flexys/KINGSTON/ umount: /run/media/abc/KINGSTON: umount failed: Operation not permitted
Is this normal? How can the user unmount the device? Not by suing to root but as a normal user.
User must use the graphical app provided, on my system it is: Device Notifier Icon is in the "System Tray".
I don't recall that w/o making "special" provisions, <user> was every permitted to mount/umount system devices.
Devices are most likely mounted via udisks so udisksctl unmount could be used to do it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/10/2015 11:49 PM, Andrei Borzenkov wrote:
Отправлено с iPhone
Devices are most likely mounted via udisks so udisksctl unmount could be used to do it.
Perhaps not relevant here, but when did the "ctl" programs come into existence? You see them all the time now. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 11 Sep 2015 00:49:23 +0300 Andrei Borzenkov wrote: 8< - - - - - trimmed - - - - - >8
Devices are most likely mounted via udisks so udisksctl unmount could be used to do it.
I can't seem to get udisksctl to cooperate. I plugged in a test USB stick and it was auto-mounted: /dev/sdb1 --> /run/media/carlh/USB20FD /dev/sdb1 on /run/media/carlh/USB20FD type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=100,fmask=0022,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2) ~> udisksctl umount /run/media/carlh/USB20FD Unknown command `umount' Hmmmm ... okay, I guess I can understand "unmount" vs "umount" in this context. ~> udisksctl unmount /run/media/carlh/USB20FD Usage: udisksctl unmount [OPTION...] Unmount a filesystem. Application Options: -p, --object-path Object to unmount -b, --block-device Block device to unmount -f, --force Force/lazy unmount --no-user-interaction Do not authenticate the user if needed ~> udisksctl unmount /dev/sdb1 Usage: udisksctl unmount [OPTION...] Unmount a filesystem. Application Options: -p, --object-path Object to unmount -b, --block-device Block device to unmount -f, --force Force/lazy unmount --no-user-interaction Do not authenticate the user if needed Okay, I give up ... right-click the drive in Dolphin and 'safely remove' worked. What gives? Thx! Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2015-09-11 02:32, Carl Hartung wrote:
~> udisksctl unmount /dev/sdb1 Usage: udisksctl unmount [OPTION...]
Unmount a filesystem.
Application Options: -p, --object-path Object to unmount -b, --block-device Block device to unmount -f, --force Force/lazy unmount --no-user-interaction Do not authenticate the user if needed
Try "udisksctl unmount -b /dev/sdb1" or "udisksctl unmount -p /run/media/carlh/USB20FD" -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, 11 Sep 2015 02:47:40 +0200 Carlos E. R. wrote:
On 2015-09-11 02:32, Carl Hartung wrote:
~> udisksctl unmount /dev/sdb1 Usage: udisksctl unmount [OPTION...]
Unmount a filesystem.
Application Options: -p, --object-path Object to unmount -b, --block-device Block device to unmount -f, --force Force/lazy unmount --no-user-interaction Do not authenticate the user if needed
Try "udisksctl unmount -b /dev/sdb1" or "udisksctl unmount -p /run/media/carlh/USB20FD"
~> udisksctl unmount -b /dev/sdb1 Unmounted /dev/sdb1. Note: The device remained visible in the "Places" panel in Dolphin until I physically unplugged it. Contrast that with it actually disappearing when you right-click and select "safely remove." As I understand it, the "safely remove" procedure powers USB devices down in addition to dismounting them, which is great when real (mechanical) USB attached external hard drives are involved. After plugging it back in and confirming it was mounted: carlh@linux-z4hf:~> udisksctl unmount -p /run/media/carlh/USB20FD (udisksctl unmount:13448): GLib-GIO-CRITICAL **: g_dbus_object_manager_get_object: assertion 'g_variant_is_object_path (object_path)' failed Error looking up object with path /run/media/carlh/USB20FD Oops! :-) ~> udisksctl unmount -b /dev/sdb1 Unmounted /dev/sdb1. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Thank you all for your suggestions.
Devices are most likely mounted via udisks so udisksctl unmount could be used to do it.
udisksctl unmount -b /dev/sdb1 worked in an ssh login terminal. Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2015-09-10 21:33, Istvan Gabor wrote:
Is this normal? How can the user unmount the device?
Well, the device was mounted as your user, but you are refused permission because there is no entry in fstab with the option "user" in it, as it was automatically mounted. That's my guess, at least. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Andrei Borzenkov
-
Carl Hartung
-
Carlos E. R.
-
Istvan Gabor
-
Patrick Shanahan
-
Xen