Difference between revisions of "Udiskie"

From ArchWiki
Jump to: navigation, search
(added troubleshooting section about crash, see bug #40446)
m (Unmounting: removed unnecessary whitespace in front of commands)
Line 19: Line 19:
 
Use the <code>udiskie-umount</code> command to unmount media. For example, for a device named "MY_USB_DRIVE":
 
Use the <code>udiskie-umount</code> command to unmount media. For example, for a device named "MY_USB_DRIVE":
  
  udiskie-umount /media/MY_USB_DRIVE
+
udiskie-umount /media/MY_USB_DRIVE
  
 
Or, you can unmount all media with the command:
 
Or, you can unmount all media with the command:
  
  udiskie-umount -a
+
udiskie-umount -a
  
 
== Troubleshooting ==
 
== Troubleshooting ==

Revision as of 14:16, 19 May 2014

Merge-arrows-2.pngThis article or section is a candidate for merging with File manager functionality#Udiskie.Merge-arrows-2.png

Notes: May be too short for a separate article. (Discuss in Talk:File manager functionality#Udiskie)

udiskie is an automatic disk mounting service using udisks. It can be used for mounting CDs, flash drives, and other media. It is simple to use and requires no configuration.

Installation

You can install udiskie by using the udiskie package that is found in the official repositories. Start the udiskie service by adding:

udiskie --tray &

to your xinitrc file, before the window manager is loaded. The tray icon is optional and requires the pygtk package to be installed. If you want to use experimental support for udisks2, start the udiskie service with:

udiskie -2 --tray &

Once udiskie is running, all removable media will automatically be mounted under /media under a new directory that matches the device name.

Unmounting

Use the udiskie-umount command to unmount media. For example, for a device named "MY_USB_DRIVE":

udiskie-umount /media/MY_USB_DRIVE

Or, you can unmount all media with the command:

udiskie-umount -a

Troubleshooting

Udiskie crashes

If you get an output like this:

$ udiskie
Traceback (most recent call last):
  File "/usr/bin/udiskie", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2829, in <module>
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 449, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 742, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 639, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: PyYAML

you need to install python2-yaml. See FS#40446.