Ricevo 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 l'utilizzo dell'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 l'utilizzo del 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'identificatore di volume funziona
mymac:~ user$ sudo mount -t hfs /dev/disk0s4 /Users/user/test
Aggiornare:
Il mio obiettivo è quello di mettere la mountlinea in /etc/fstabquanto voglio montare un volume su un mountpoint personalizzato.
fstabquesto modo: UUID=<volume_uuid> /mount/point autoe ho funzionato sudo mount -a. Si è verificato lo stesso errore:... mount_hfs: No such file or directory
fstab, tuttavia uso sempre almeno i primi quattro campi. Vedo che manchi il terzo campo, (fs_vfstype), nel tuo commento. Lo stai omettendo fstab? Dovresti modificare la tua domanda e mostrare esattamente cosa hai provato fstabe quale editor hai usato. Detto questo, nessuno dei miei punti di mount è diverso da quello predefinito / Volumesper il quale noneè impostato. Proverò una volta che vedrò la tua modifica e il punto di montaggio che stai tentando.
mountcomando non può utilizzareUUIDoLABELdeve utilizzare l'identificatore del disco, ad es/dev/disk0s4. Inoltre come perhapsmaybeharry ha sottolineato che il metodo di OS X è quello di utilizzarediskutil. Per risolvere il tuo aggiornamento ... Comunquefstabpuoi usareUUIDoLABEL, basta guardare gli esempi nella pagina man perfstab. In un Terminale digitarefstabe quindi fare clic con il tasto destro sufstabe selezionare Apri man page, quindi leggerlo nella sua interezza! :)