[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Diferencias
Muestra las diferencias entre dos versiones de la página.
Próxima revisión | Revisión previa | ||
es:howtos:general_admin:automount_via_udev [2019/02/06 11:10 (UTC)] – creado slackwarespanol | es:howtos:general_admin:automount_via_udev [2019/02/07 11:21 (UTC)] (actual) – slackwarespanol | ||
---|---|---|---|
Línea 1: | Línea 1: | ||
- | ====== Automounting usb drives is udev ====== | ||
- | I've a GoFlexNet that runs Slackware Arm that I like to use as NAS (nice to be able to do software raid with the 2 sata drives). Along with having an array I also wanted to be able to share any usb disk really quickly without having to interact in any way with the appliance: this is what I came up with: | ||
- | The idea is to use the volume labels to have the usb drive mounted and exported via NFS. Any partition that has no label or that is linux swap will be ignored. Well the umounting upon drive unplug is pointless but it also cleans up the exported filesystems avoiding writes in the parent directory. | + | ====== El montaje automático de unidades USB es udev ====== |
+ | Tengo una GoFlexNet que ejecuta Slackware Arm que me gusta usar como NAS (es bueno poder hacer una incursión de software con las 2 unidades sata). Además de tener una gran variedad también quería ser capaz de compartir los discos USB muy rápidamente sin tener que interactuar de alguna manera con el dispositivo esto es lo que se me ocurrió: | ||
- | I wrote a couple of really simple | + | La idea es usar las etiquetas de volumen para tener la unidad USB montada y exportada |
+ | |||
+ | Escribí un par de reglas de udev realmente simples para llamar al programa de administración: | ||
root@nas:~# cat / | root@nas:~# cat / | ||
Línea 11: | Línea 12: | ||
root@nas:~# | root@nas:~# | ||
| | ||
- | And this is the management | + | Y este es el script |
root@nas:~# cat / | root@nas:~# cat / | ||
Línea 47: | Línea 48: | ||
root@nas:~# | root@nas:~# | ||
| | ||
- | This is what my / | + | Así es como se ve inicialmente mi / |
root@nas:~# cat / | root@nas:~# cat / | ||
Línea 56: | Línea 57: | ||
root@nas:~# | root@nas:~# | ||
- | it gets populated with new lines as the usb drives come and go. The only thing you may want to do before unplugging any usb drive is remounting the filesystem | + | se llena con nuevas líneas a medida que las unidades USB van y vienen. Lo único que puede hacer antes de desenchufar cualquier unidad USB es volver a montar el sistema de archivos |
- | ====== | + | ====== |
<!-- If you are copying information from another source, then specify that source --> | <!-- If you are copying information from another source, then specify that source --> | ||
<!-- * Original source: [[http:// | <!-- * Original source: [[http:// | ||
Línea 63: | Línea 64: | ||
<!-- * Originally written by [[wiki: | <!-- * Originally written by [[wiki: | ||
<!-- * Contributions by [[wiki: | <!-- * Contributions by [[wiki: | ||
+ | * Autor [[wiki: | ||
+ | * Traducido por: [[wiki: | ||
<!-- Please do not modify anything below, except adding new tags.--> | <!-- Please do not modify anything below, except adding new tags.--> | ||
<!-- You must remove the tag-word " | <!-- You must remove the tag-word " | ||
{{tag> | {{tag> |