Using Removable Media

Accessing Removable Media

Thunar soporta soportes extraíbles si fue compilado con soporte para HAL, o usted utiliza FreeBSD. Sin embargo en FreeBSD 6.0 o más recientes, es recomendable usar HAL antes que el soporte nativo proporcionado por Thunar.

Montar dispositivo

Montar soportes extraibles es hacer el sistema de ficheros de éste accesible. Cuando se monta un soporte, el sistema de ficheros de esté es asociado a un subdirectorio de su sistema de ficheros.

To access media, insert the media in the appropriate device, or connect the new device to your computer (i.e. connect an USB stick to one of your USB ports). An object that represents the media is added to the side pane of the file manager. If xfdesktop is running and configured to display File/launcher icons this object will also be added to your desktop.

Para montar el soporte, haga clic en el objeto que lo representa. Por ejemplo, para montar un disquete, haga clic en el objeto Unidad de disquete en el panel latera. El gestor de archivos añadirá ahora el sistema de ficheros del soporte a la jerarquía de su sistema y mostrará los contenidos del disquete en el area principal.

Expulsar dispositivo

Si el dispositivo del soporte es motoroziado (por ejemplo, una unidad de CD-ROM), haga clic derecho en el objeto del soporte en el panel lateral o en el escritorio y seleccione Expulsar volumen. El soporte será expulsado del dispositivo en pocos segundos. Si el dispositivo no es motorizado (por ejemplo, un disquete o una unidad USB), haga clic derecho en el objeto del soporte y elija Desmontar volumen. Después de un corto periodo de tiempo, una notificación aparecerá para informarle de que puede retirar de forma segura el soporte o desconectar el dispositivo de la computadora.

Notificación de desmontado

Sin embargo esta notificación solo aparecerá si el soporte para libnotify está activado, y usted tiene instalado un servicio de notificaciones. Un servicio de notificaciones para Xfce está disponible desde Xfce Goodies Project. Si el soporte para notificaciones no está disponible, espere hasta que el menú contextual desaparezca antes de retirar el soporte o desconectar el dispositivo.

Be aware that you cannot eject or unmount media that is still in use by one or more applications. Therefore if the file manager refuses to eject media, make sure you close all applications that were accessing the media, and be sure to also check command line applications running in Terminal windows.

Asegúrese de desmontar los soportes removibles antes de expulsarlos. No extraiga un un disquete de la disquetera antes de haberlo desmontado. No desconecte una memoria USB antes de desmontarla. Si extrae cualquier soporte antes de desmontarlo puede ocasionar pérdida de información o destruir el sistema de ficheros.

Management of Removable Drives and Media

Thunar también es capaz de controlar automáticamente dispositivos removibles y soportes si el paquete thunar-volman está instalado en su sistema. Esta funcionalidad requiere soporte para HAL.

Ahora, si el soporte para HAL está disponible y thunar-volman está instalado en su sistema, usted puede activar el Gestor de volúmenes de Thunar. Para ello, abra las preferencias del gestor de archivos, vaya a la página Avanzado y seleccione el botón Activar gestión de volúmenes .

El siguiente paso es personalizar la administración de los soportes y los dispositivos removibles a sus necesidades. Haga clic en el enlace Configurar en la sección de Gestor de volúmenes, debajo del botón. El diálogo de configuración del Removable Drives and Media será mostrado.

Removable Drives and Media

If you have used the gnome-volume-manager previously, you should feel right at home, because it was designed to look and behave similar to gnome-volume-manager. The preferences are divided by device categories to make it easy to locate the option for you specific device.

The Storage page contains the most important options. As the name suggests these options apply only to storage devices like external harddisk drives, USB sticks and CD-ROMs. The Removable Storage options are described in detail below.

Mount removable drives when hot-plugged

Enable this option to automatically mount file systems on removable drives (i.e. external harddisk drives or USB sticks) when such drives are plugged into the computer.

This option must be enabled for certain other features to work with removable drives. For example, if you disable this option, certain kinds of portable music players cannot be detected any more and so, even if you enabled the Play music files when connected option on the Multimedia page, the specified command will not be run when you hot-plug your portable music player.

Mount removable media when inserted

Enable this option to automatically mount file systems on removable media (i.e. CD-ROMs or DVDs) when you insert the media into the drive.

This option must be enabled for certain other features to work with removable media. For example, if you disable this option, it is impossible to detect whether the removable media has auto-run capabilities, and so the Auto-run programs on new drives and media option has no effect for removable media.

Browse removable media when inserted

Enable this option to automatically display the content of newly inserted media in the file manager. Note however, that the contents will only be displayed if no other action was possible or you choose to ignore the other possible actions. For example, if you insert a CD-ROM with auto-run capabilities and the Auto-run programs on new drives and media option is enabled, you will be prompted whether you want to allow or ignore the auto-run. If you choose to ignore the auto-run the contents will be displayed in the file manager.

Arrancar automáticamente programas en nuevos discos y dispositivos.

Enable this option to make use of auto-run capabilities of certain removable drives and media. See the Desktop Application Autostart Specification for details about the auto-run mechanism. To enhance security, you will always be prompted to confirm the auto-run.

If the Windows emulator WINE is installed on your system, the auto-run mechanism will also try to run autorun.exe files using WINE.

Auto-open files on new drives and media

Enable this option to make of auto-open capabilities of certain removable drives and media. See the Desktop Application Autostart Specification for details about the auto-open mechanism. To enhance security, you will always be prompted to confirm the auto-open.

Las siguientes opciones permiten especificar un comando para ejecutar cuando cierto tipo de soporte es insertado o se conecta algún dispositivo externo. El comando puede utilizar tres variables especiales que se sustituirán cuando el comando se ejecute:

%d

Cada aparición de %d en el comando se sustituirá con la ruta del dispositivo nuevo añadido. Por ejemplo, si inserta una memoria USB, la ruta del archivo del dispositivo será /dev/da0s1 o /dev/sda1.

Si ningún archivo de dispositivo es asociado con el dispositivo o el dispositivo no se puede encontrar por alguna razón, la variable %d se sustituirá con una cadena vacía.

%h

Cada aparición del %h en el comando se sustituirá con la HAL UDI del nuevo dispositivo añadido.

%m

Cada aparición de %m en el comando se sustituirá con el punto de montaje donde el nuevo disposistivo ha sido montado. Si el dispositivo no puede ser montado (por ejemplo impresoras o teclados) o el montaje automático está deshabilitado, %m se sustituirá con la cadena vacía.

Troubleshooting the Volume Manager

Useful tips to trouble shoot the volume manager in case it does not work as expected.

  1. Make sure Thunar is running as daemon. The volume manager depends on this, as it is not a daemon by itself. By default, Xfce automatically spawns Thunar as daemon on startup. If it got killed for some reason, open the Run program (using the keyboard shortcut Alt+F2 or right-click on the desktop and choose Run Program... from the desktop menu), enter Thunar --daemon and click Run.

  2. Try running thunar-volman from a Terminal window after hot-plugging the drive or inserting the media. First, you need to figure out the HAL UDI of the new device using lshal or hal-device. Once you know the UDI, run thunar-volman --device-added <udi-of-your-device> in a Terminal window and watch the output for errors or warnings.

If it still refuses to work, ask on the Xfce Forum or the thunar-dev mailing list for help.