#138 udisks support for mount/unmount

open
nobody
None
5
2011-05-10
2011-05-10
Anonymous
No

The udisks utility (heir to DeviceKit) is a standard part of most modern distributions, with no DE-specific dependencies. It allows regular users to mount and unmount removable media with the syntax

udisks --mount /dev/foo
udisks --unmount /dev/foo

It's just like pmount, except it doesn't depend on HAL.

Discussion

  • Mat
    Mat
    2011-05-10

    I don't use udisks. But with Xfe is easy to allow user to mount device (eg: usb key) . I add the correct mount points in fstab (eg: /dev/sdi1/ /media/usbkey1/ auto user, noauto 0 0) , created a folder in /media (eg: usbkey1 = usb device on usb port1) and give the right permission to that folder (eg: chmod ug+rwx -R /media/usbkey1) . Now after reboot i can mount every usb key i plug in such port clicking on mount command (on such directory) in Xfe (of course i must umount it manually too) pratically is a semi-automount. Another thing is that it will not use disk labels.

     
  • Roland Baudin
    Roland Baudin
    2011-06-05

    As pointed by another user, it's easy to add the ability to mount / unmount medias.
    Anyway, I'll investigate the use of udisks.
    Thanks for the idea.
    RB