How can I mount every single hard drive connected to a computer (preferably excluding flash drives and CDs) to it's own mount point. For example, if my connected drives looked like so:
DISK MEDIA TYPE
/dev/disk0 INTERNAL
/dev/disk0
/dev/disk0s1
/dev/disk1 REMOVABLE
/dev/disk1
/dev/disk2 INTERNAL
/dev/disk2
I would want to mount every drive and partition, unless it is removable (flash drive), or a CD.
The mount points should be in there own folders, ex: /dev/disk0
would be mounted to /home/root/mounts/fooName1
, and /dev/disk2
would be mounted to /home/root/mounts/fooName2
. If this is possible without any extra programs, great. Thanks in advance!