Help - Search - Members - Calendar
Full Version: mount partition by its LABEL
InsanelyMac Forum > Apple World > Mac Programming and Development
Good Day
hello, how would i mount a partition by its LABEL ?
have this on /etc/fstab
LABEL=BackupData /Backup/Data hfs rw,noauto 1 2

CODE

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

same when mounting by LABEL

CODE

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


actually i'm emulating this with
CODE

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
DiaboliK
mount /Volumes/Backup/Data

-D-
Good Day
QUOTE (DiaboliK @ Apr 24 2009, 08:00 PM) *
mount /Volumes/Backup/Data

-D-


thanks for reply
not sure this work
seems like 'mount by label' is not doable in OSX
it is possible by device or uuid
would be great if OSX store all volume names as devices somewhere in /dev
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.