listar todos los discos, montados y no montados:
sudo fdisk -l
listar particiones por label, id y UUID
ls /dev/disk/by-label -alh
ls /dev/disk/by-id -alh
ls /dev/disk/by-uuid -alh
- sudo mount -t iso9660 -o ro,loop=/dev/loop0 'ISO_File' 'Mount_Point'
fstab (/etc/fstab):
Estructura:
[Device] [Mount Point] [File_system] [Options] [dump] [fsck order]
- [Device]: Dispositivo que puede se obtenido con 'ls /dev/disk/by-uuid -alh'
- [Mount Point]: Lugar donde se montara el disco.
- Options]: opciones para el sistema de archivos.
- [dump]: Utiliza dump para hacer un respaldo del sistema de archivos. "0" para ignorar el respado y "1" para realizar el respaldo.
- [fsck order]: Orden que le indica a fsck si revisar el sistema de archivos (0 indica no revisar)
[File_system]: Tipo del sistema de archivos de utilizado por la particiĆ³n (etx2, ext3, vfat, ntfs-3g, etc.)
[
Opciones para fstab:
- sync/async - All I/O to the file system should be done (a)synchronously.
- auto - The filesystem can be mounted automatically (at bootup, or when mount is passed the -a option). This is really unnecessary as this is the default action of mount -a anyway.
- noauto - The filesystem will NOT be automatically mounted at startup, or when mount passed -a. You must explicitly mount the filesystem.
- dev/nodev - Interpret/Do not interpret character or block special devices on the file system.
- exec / noexec - Permit/Prevent the execution of binaries from the filesystem.
- suid/nosuid - Permit/Block the operation of suid, and sgid bits.
- ro - Mount read-only.
- rw - Mount read-write.
- user - Permit any user to mount the filesystem. This automatically implies noexec, nosuid,nodev unless overridden.
- nouser - Only permit root to mount the filesystem. This is also a default setting.
- defaults - Use default settings. Equivalent to rw, suid, dev, exec, auto, nouser, async.
- _netdev - Used for network shares (nfs, samba, sshfs, etc), mounting the network share is delayed until after the boot process brings up the network (otherwise the mount will fail as the network is not up).
Ejemplos de fstab:
# datos
UUID=55a95a1e-7edc-4392-a7f5-7cdc2b9c2d97 /media/datos/ ext2 auto,users 0 0
# windows
UUID=319E17A54184CF9E /media/windows/ ntfs-3g auto,usuario,uid=1000,gid=100,utf8,dmask=027,fmask=137 0 0
Tip - Evitar que los discos montados aparezcan en el escritorio de Gnome:
- Abrir un terminal y ejecutar el comando 'gconf-editor'.
- Acceder a 'apps->nautilus->desktop'.
- Deseleccionar 'volumes_visible'.
Biblio: http://ubuntuforums.org/showthread.php?t=283131
| The End |
No comments:
Post a Comment