Difference between revisions of "Udiskie"

From ArchWiki
Jump to: navigation, search
m (Introduction)
m (details)
(47 intermediate revisions by 16 users not shown)
Line 1: Line 1:
[[Category:Auto-mounting (English)]]
+
[[Category:Hardware detection and troubleshooting]]
 
+
[http://bitbucket.org/byronclark/udiskie Udiskie] is an automatic disk mounting service using {{Pkg|udisks}}. It can be used for mounting CDs, flash drives, and other media. It is simple to use and requires no configuration.
== Introduction ==
+
Udiskie is an automatic disk mounting service using [http://www.archlinux.org/packages/?q=udisks udisks]. It can be used for mounting CDs, flash drives, and other media. It is simple to use and requires no configuration.
+
  
 
== Installation ==
 
== Installation ==
You can install Udiskie by using the [http://aur.archlinux.org/packages.php?ID=37279 udiskie] package that is found in the [[AUR]].
 
  
Start the Udiskie service by adding
+
You can [[pacman|install]] Udiskie by using the {{Pkg|udiskie}} package that is found in the [[official repositories]].
 +
Start the Udiskie service by adding:
  
  udiskie &
+
udiskie &
  
 
to your [[xinitrc]] file, before the [[window manager]] is loaded.
 
to your [[xinitrc]] file, before the [[window manager]] is loaded.
  
Once Udiskie is running, all removable media will automatically be mounted under <code>/media</code> under a new directory that matches the device name.
+
Once Udiskie is running, all removable media will automatically be mounted under {{ic|/media}} under a new directory that matches the device name.
  
 
== Unmounting ==
 
== Unmounting ==
Use the <code>udiskie-umount</code> command to unmount and eject 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
Line 23: Line 21:
  
 
   udiskie-umount -a
 
   udiskie-umount -a
 
== Window Manager Menu Scripts ==
 
 
For convenience, you can add a script to the menu in some window managers to allow for easy access and control of removable media.
 
 
=== Openbox ===
 
 
''todo''
 
 
=== Window Maker ===
 
Create a "Generated Submenu" entry in the root menu.
 
 
<pre>
 
#!/bin/bash
 
 
# For a Window Maker menu for removable media.
 
#
 
# This script will generate sub-menus for any device mounted
 
# under /media. You can browse the device in a file manager or
 
# unmount it.
 
#
 
# It will ignore the "cd", "dvd", and "fl" directories.
 
#
 
# It uses "emelFM2" file manager to browse the media.
 
 
cd /media
 
 
echo \"Media\" MENU
 
 
for i in *
 
do
 
  if [ "$i" != "cd" ] && [ "$i" != "dvd" ] && [ "$i" != "fl" ]
 
  then
 
    echo \"Browse $i\" EXEC \"emelfm2 -1 \'/media/$i\'\"
 
  fi
 
done
 
 
for i in *
 
do
 
  if [ "$i" != "cd" ] && [ "$i" != "dvd" ] && [ "$i" != "fl" ]
 
  then
 
    echo \"Unmount $i\" EXEC \"udiskie-umount \'/media/$i\'\"
 
  fi
 
done
 
 
echo \"Eject Disc\" EXEC \"eject --traytoggle\"
 
 
echo \"Media\" END
 
</pre>
 
 
== Links ==
 
* [http://bitbucket.org/byronclark/udiskie Udiskie Homepage]
 
* [http://aur.archlinux.org/packages.php?ID=37279 Udiskie AUR package]
 

Revision as of 19:05, 31 May 2013

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 &

to your xinitrc file, before the window manager is loaded.

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