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