Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Specifying mount points in 10.2 UNIX
It is now possible to specify mount points in OS X 10.2. First create the file /etc/fstab (if it doesn't exist already) and use this format:
LABEL=volumename    /your/mount/point    hfs    rw      1       2
Tabs separate the above fields.

Note that specifying the device directly like you typically would on a UNIX machine did not work when I tried it.
    •    
  • Currently 2.33 / 5
  You rated: 1 / 5 (3 votes cast)
 
[10,841 views]  

Specifying mount points in 10.2 | 8 comments | Create New Account
Click here to return to the 'Specifying mount points in 10.2' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Doesn't work on my set up
Authored by: mschaff on Aug 24, '02 09:54:57AM

I tried this on a Jag upgraded machine (Beige G3 with 2 partitions, "OS_X" and "Apps")...

I'm trying to mount the second partition as a directory within the main file system (so I don't have to go through /Volumes/). Ultimately, (if I could get this to work), I'd like to replace the "Applications" folder on my OS X drive with the mounted "Apps" drive.

I've used the syntax below (with both, "/New_Appications" and "/New_Appications/") and the drive doesn't mount upon restart. When I run disk utility, I can see the drive, but it is grayed out and will not mount when I try using the "Mount" menu item.

LABEL=Apps /New_Appications/ hfs rw 1 2
(wih tabs between entries)

Any suggestions?



[ Reply to This | # ]
Works on mine! Cool!
Authored by: donvy on Aug 24, '02 12:03:39PM

Not sure why it doesn't work on yours. My setup works with the following contents for /etc/fstab:

LABEL=swap /swap hfs rw 1 2
LABEL=Users /Users hfs rw 1 2

Of course I had to create /swap and /Users first, and changed their permissions to 777. I noticed that they had these permissions when they were originally in /Volumes.



[ Reply to This | # ]
Works on mine! Cool!
Authored by: mahakali on Sep 01, '02 03:34:48AM
LABEL=swap /swap hfs rw 1 2 LABEL=Users /Users hfs rw 1 2 Of course I had to create /swap and /Users first, and changed their permissions to 777. I noticed that they had these permissions when they were originally in /Volumes.
Ok, I don't get it. Which one is the volume's name? Is it the 1st one? And do I need to add /Volumes befor the name if i have it under other partition? Example, I put my applications under a partition named anna. Then, which line should I put in it? LABEL=anna /Applications hfs rw 1 2 or LABEL=/Volumes/anna /Applications hfs rw 1 2 ot LABEL=Applications anna hfs rw 1 2 or LABEL=Applications /Volumes/anna hfs rw 1 2 Thanks for any help.

[ Reply to This | # ]
Works on mine! Cool!
Authored by: mahakali on Sep 01, '02 04:10:28AM

Nevermind, it works! woo hoo!



[ Reply to This | # ]
Doesn't work on my set up
Authored by: mschaff on Aug 25, '02 11:35:11AM

***UPDATE***:

It works now. A detail escaped me. It seems that in order to mount the disk as a directory, the directory must already exist. In my case, I now have my Applications partition mount where the 'Applications' folder was on my OS_X partition.

A good reason for doing this (as opposed to just aliasing or creating a symbolic link) is that the Apple installer should recognize this partition as my 'Applications' folder.

I also used the tip below and renamed the Applications partition with a '.' in front so it wouldn't also mount on the desktop. Thanks for the tip!



[ Reply to This | # ]
Doesn't work on my set up
Authored by: bluehz on Aug 26, '02 07:59:51AM

When you append a "." to the name of the dir (aka mountpoint) does the Apple installer and others still see that as the "Applications" dir?



[ Reply to This | # ]
Not working here either / fstab reference
Authored by: bluehz on Aug 24, '02 06:08:57PM
Not having much luck with this one myself - and I am pretty familiar with fstab setup in Linux. FYI - there is an excellent fstab resource here: http://www.humbug.org.au/talks/fstab/fstab.html

[ Reply to This | # ]
hidden
Authored by: fisk on Aug 25, '02 04:50:29AM

i tried this for my /Users dirextory and it worked like it should, but the volume was still visible on the desktop.

the solution: rename the volumes with disktool so that the name begins with a dot ( . )

just do "disktool -n device newname"

to find out which volume is which device just write "mount" at the prompt and a list och all mounted devices shows up



[ Reply to This | # ]