Ottengo l'UUID e l'etichetta di un disco da diskutil info disk0s4
diskutil info disk0s4
Device Identifier: disk0s4
Device Node: /dev/disk0s4
Whole: No
Part of Whole: disk0
Device / Media Name: Untitled
Volume Name: Data
Mounted: No
File System Personality: HFS+
Type (Bundle): hfs
Name (User Visible): Mac OS Extended
Journal: Unknown (not mounted)
Owners: Disabled
Partition Type: Apple_HFS
OS Can Be Installed: No
Media Type: Generic
Protocol: PCI
SMART Status: Verified
Volume UUID: F8C88B2D-5412-343B-8969-254F3AC559B8
Disk / Partition UUID: 1738336E-68DD-46B1-997E-57469CF0472D
Total Size: 338.0 GB (337984569344 Bytes) (exactly 660126112 512-Byte-Units)
Volume Free Space: 0 B (0 Bytes) (exactly 0 512-Byte-Units)
Device Block Size: 512 Bytes
Read-Only Media: No
Read-Only Volume: Not applicable (not mounted)
Device Location: Internal
Removable Media: No
Solid State: Yes
mount
utilizzando l'etichetta del volume non funziona:
$ sudo mount -t hfs LABEL=Data /Users/user/test
GetMasterBlock: Error 2 opening LABEL=Data
GetMasterBlock: Error 2 opening LABEL=Data
mount_hfs: error on mount(): error = -1.
mount_hfs: No such file or directory
mount
che utilizza il volume UUID non funziona con o senza virgolette:
$ sudo mount -t hfs uuid=F8C88B2D-5412-343B-8969-254F3AC559B8 /Users/user/test
GetMasterBlock: Error 2 opening uuid=F8C88B2D-5412-343B-8969-254F3AC559B8
GetMasterBlock: Error 2 opening uuid=F8C88B2D-5412-343B-8969-254F3AC559B8
mount_hfs: error on mount(): error = -1.
mount_hfs: No such file or directory
$ sudo mount -t hfs UUID="F8C88B2D-5412-343B-8969-254F3AC559B8" /Users/user/test
GetMasterBlock: Error 2 opening UUID=F8C88B2D-5412-343B-8969-254F3AC559B8
GetMasterBlock: Error 2 opening UUID=F8C88B2D-5412-343B-8969-254F3AC559B8
mount_hfs: error on mount(): error = -1.
mount_hfs: No such file or directory
mount
utilizzando l'identificativo del volume funziona
mymac:~ user$ sudo mount -t hfs /dev/disk0s4 /Users/user/test
Aggiornamento:
Il mio obiettivo è mettere la riga mount
in /etc/fstab
perché voglio montare un volume su un punto di montaggio personalizzato.