2020-09-06 22:16:22 +01:00
|
|
|
# mount
|
|
|
|
|
2022-10-20 14:26:58 +01:00
|
|
|
> Fornisce accesso a un intero filesystem in una directory specifica.
|
2021-10-05 17:20:42 +01:00
|
|
|
> Maggiori informazioni: <https://manned.org/mount.8>.
|
2020-09-06 22:16:22 +01:00
|
|
|
|
|
|
|
- Mostra tutti i filesystem montati:
|
|
|
|
|
|
|
|
`mount`
|
|
|
|
|
2022-10-20 14:26:58 +01:00
|
|
|
- Monta un dispositivo in una directory:
|
2020-09-06 22:16:22 +01:00
|
|
|
|
2022-10-20 14:26:58 +01:00
|
|
|
`mount -t {{tipo_di_filesystem}} {{percorso/del/dispositivo}} {{percorso/della/directory_desiderata}}`
|
2020-09-06 22:16:22 +01:00
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Monta un CD-ROM (con il filetypo ISO9660) a `/cdrom` (sola lettura):
|
2020-09-06 22:16:22 +01:00
|
|
|
|
|
|
|
`mount -t {{iso9660}} -o ro {{/dev/cdrom}} {{/cdrom}}`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Monta tutti i filesystem definiti in `/etc/fstab`:
|
2020-09-06 22:16:22 +01:00
|
|
|
|
|
|
|
`mount -a`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Monta un filesystem specifico descritto in `/etc/fstab` (ad esempio `/dev/sda1 /my_drive ext2 defaults 0 2`):
|
2020-09-06 22:16:22 +01:00
|
|
|
|
|
|
|
`mount {{/my_drive}}`
|
|
|
|
|
2022-10-20 14:26:58 +01:00
|
|
|
- Monta una directory in un'altra directory:
|
2020-09-06 22:16:22 +01:00
|
|
|
|
2022-10-20 14:26:58 +01:00
|
|
|
`mount --bind {{percorso/della/vecchia_directory}} {{percorso/della/nuova_directory}}`
|