Je récupère l'UUID et le label d'un disque à partir de 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'utilisation de l'étiquette du volume ne fonctionne pas :
$ 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'utilisation de l'UUID du volume ne fonctionne pas avec ou sans guillemets :
$ 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
l'utilisation de l'identifiant de volume fonctionne
mymac:~ user$ sudo mount -t hfs /dev/disk0s4 /Users/user/test
Mise à jour :
Mon but est de mettre le mount
ligne dans /etc/fstab
car je veux monter un volume sur un point de montage personnalisé.