Jump to content
InsanelyMac Forum
Sign in to follow this  
Good Day

mount partition by its LABEL

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

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.



×