== Insertar y extraer ==
Al insertar una unidad USB externa, se monta automáticamente; es decir, se hace visible en el administrador de archivos y aparece como un subdirectorio en /media/username/.
[https://trisquel.info/files/caja-automount_0.png]
Antes de retirarlo, haga clic en el símbolo rojo que aparece junto a él para que Trisquel detenga cualquier operación de lectura o escritura.
== Evitar el montaje al insertar ==
Si necesita insertar una unidad USB pero sin montarla automáticamente (por ejemplo, para examinarla con ddrescue después de que tuvo problemas cuando se usó anteriormente):
1. En una terminal, ejecute
$ sudo systemctl stop udisks2.service
2. Insert the device
3. In a terminal, run
$ sudo systemctl start udisks2.service
Stopping the udisks2 service prevents automatically mounting devices but also has side effects (e.g. gnome-disks won't work properly) hence why the above advice is restarting it after the USB drive was inserted.
==Always avoid mounting a specific device==
To always prevent a ''specific device'' from being mounted automatically at insertion, a possibility is to add an entry for it in /etc/fstab with the option "noauto". For example:
UUID=2023-05-03-14-46-00 none mac noauto 0 0
Obtain the UUID of the file system of the device with the blkid command (e.g. if lsblk shows the device as having a partition /dev/sb1, blkid /dev/sdb1 will provide the UUID value to replace 2023-05-03-14-46-00 in the line above).
==Unmount a device automaticallly mounted==
To unmount a device automatically mounted in order to further use it with command line (e.g. with dd), run
$ udiskctl unmount --block-device /dev/sdxy
Replace sdxy with the corresponding device, e.g. sdc1.
Revisiones
03/30/2025 - 02:11
