Jump to content
3 posts in this topic

Recommended Posts

hello, how would i mount a partition by its LABEL ?

have this on /etc/fstab

LABEL=BackupData /Backup/Data hfs rw,noauto 1 2

 

bash-3.2# mount /Backup/Data
mount_hfs: No such file or directory

same when mounting by LABEL

 

bash-3.2# mount LABEL=BackupData
mount_hfs: No such file or directory

 

actually i'm emulating this with

diskutil list | grep BackupData | awk '{ print $6 }'

it returns diskXsY and i can mount it with `mount' or `diskutil mount'

 

but this is just a dirty hack

 

in FreeBSD i'm just adding this to fstab

/dev/ufs/BackupData /Backup/Data .....

then simply

mount /Backup/Data

does just what it is expected to do

 

thanks for any suggestions

Link to comment
https://www.insanelymac.com/forum/topic/163435-mount-partition-by-its-label/
Share on other sites

×
×
  • Create New...