Setting the mount point for 2nd HDD

Discussion in 'Mac OS X Lion (10.7)' started by lhridley, Aug 28, 2011.

  1. lhridley macrumors newbie

    Joined:
    Jul 14, 2010
    #1
    Hi all,

    I have a Macbook Pro 15" that I have modified as follows:

    1. Replaced the original HDD with a 128GB SSD
    2. Replaced the optical drive with a 500GB HDD

    The mount point for the 500GB HDD is currently "/Volumes/Mac500GB". I'd like to change that to "/opt". How do I go about doing that in Lion (OS X 10.7)?
     
  2. lhridley thread starter macrumors newbie

    Joined:
    Jul 14, 2010
    #2
    Solution thus far....

    OK, so this is what I've done so far, and it seems to be working, but I'm looking for some verification that this is the correct way to do this:

    1. Set up a directory on the primary HDD (the SSD) of "/opt"
    2. Created a file named "/etc/fstab" with the following information in it:

    UUID=<UUID of the drive partition> /opt hfs rw 1 2

    The HDD now mounts as "/opt".

    Is this the correct way to go about this?
     
  3. slinkman macrumors newbie

    Joined:
    Apr 25, 2012
    #3
    From my Lion install

    Hey

    I was looking to do a similar thing, but when I went to the fstab file (as I would in linux) I found this:
    Code:
    $ cat /etc/fstab.hd 
    IGNORE THIS FILE.
    This file does nothing, contains no useful data, and might go away in
    future releases.  Do not depend on this file or its contents.
    $
    
    I couldn't find any alternative, so I just resigned myself living without proper mounting capabilities.
     
  4. Taz Mangus macrumors 68040

    Taz Mangus

    Joined:
    Mar 10, 2011
    #4
    You could create a symbolic link such with "ln -s /Volumes/Mac500GB /opt". This is similar to what you want to do but not exactly the same.
     

Share This Page