equivalent of /etc/fstab ?

indy

Registered
Hi,

How can i change definitively a mount point ? I have a partition named data, mounted on /Volumes/data and i want mount it on /Users at boot time.
Thx in advance.
 
/etc/fstab is the right file. You may want to use LABEL rather than entering in the device node, since the device nodes tend to change from boot to boot.

Since you seem to know about /etc/fstab, it's the same format, just do LABEL=Volume Name instead of /dev/diskXsX. The autodiskmount command will know which volume that is (no matter what the device node is) and mount it where you want. Since none of the startup files use anything in /Users, you don't need to edit anything else. mount doesn't know how to handle LABEL (in fact, it gives a bus error when it tries to), so anything with that isn't mounted at boot time, but rather later when autodiskmount is first run.

(Really, I don't know if anything in /etc/fstab is automatically mounted at boot time. I tried it when I was setting up a swap partition, and it didn't seem to mount at boot - I switched to using LABEL with it and having the virtual memory stuff started after autodiskmount does.)
 
Back
Top