Jump to content

mount partition by its LABEL


  • Please log in to reply
2 replies to this topic

#1
Good Day

Good Day

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 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

[codebox]
bash-3.2# mount /Backup/Data
mount_hfs: No such file or directory
[/codebox]
same when mounting by LABEL

[codebox]
bash-3.2# mount LABEL=BackupData
mount_hfs: No such file or directory
[/codebox]

actually i'm emulating this with
[codebox]
diskutil list | grep BackupData | awk '{ print $6 }'
[/codebox]
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

#2
DiaboliK

DiaboliK

    DiaboliK <- Capital K!

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,336 posts
  • Gender:Male
  • Location:Hollyweird, CA
mount /Volumes/Backup/Data

-D-

#3
Good Day

Good Day

    InsanelyMac Protégé

  • Members
  • Pip
  • 23 posts

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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy