Mount a disk elsewhere /Volumes

When a new disk is connected to a Mac/OSX, it automatically mounts on /Volumes.
Is it possible to manually mount it elsewhere?

For example, on "/raid"?

  • m66 -

man umount
man mount

I know about mount/umount. I was just not sure if I could manipulate the fstab file without getting into any kind of trouble...
Since all disks/volumes automount on /Volumes.

  • m66 -

Why do you want to manipulate /etc/fstab? As soon as it's automounted:

$ mount # to get the device path
$ umount /Volumes
$ mount /dev/path/ /raid

The issue here is that I am going to migrate from a SUN Solaris based server to a OS X based server.
On the Solaris server, the external raid system is mounted on /raid.
It is important for me to maintain the paths on the file system.
That is why I would like to get an equal mount point on OS X as I currently have on the Solaris server.

One thing is to manually change the mount point for a disk, but I also need it to stay that way after a reboot as well.

  • m66 -

Seems that my crystal ball misinterpreted your information so far. The words "newly connected" and "automatically mounts" apparently triggered the "I want to mount my USB pen drive in a different directory" chain.

As long as your external RAID system is connected using the same device path, just add it in /etc/fstab (and I'm sure OSX has a nifty GUI for that) to keep it there even after a reboot.