I have just connected an external RAID1 enclosure (a Lacie Quadro2) through FireWire800 interface to my iMac 24.
I copied all my internal "Machintosh HD" to the new disk, setted the system to use the external disk as Startup Disk, the volume is named "My HD".
After restarting, I run Disk Utility and resized the internal disk 1st partition to 100GB, then made a new partition of about 500GB, named "TM HD".
Then I configured Time Machine to use "TM HD" and runned it ...
.. all works very very fine, but ...
I'd like to made "Machintosh HD" hidden when the system is started using the external disk ... and eventually have it to be the boot disk if and only if the external HD ("my HD") is not available or not connected in order to avoid unwanted filesystem modification.
Is it possible to tell Mac to not visualize a given partition on the internal disk?
Any idea is wellcome, thanks in advance :)
You could attach an applescript to your login items that unmounts that volume:
If you want the disk simply hidden from view in the Finder:
You can find more by running
SetFile
orman SetFile
You can hide the internal disk using Finder’s preferences (under Finder > Preferences > General). This will hide both the “Macintosh HD” and “TM HD” partitions. The disks are still mounted, so Time Machine keeps working.
I'm answering to my question basing on the comment by cOle2 in which he suggest to use fstab.
I'm giving my own answer as I think it could be nice and useful to do the job with a single shell line, without the need of any external editor (vi, emacs, pico, nano,etc)
This works great and can be simply C&P-ed in the Terminal without customizations.
Thanks to everyone for the tips given
Unfortunately in Mojave none of the above worked for me. (SetFile is deprecated):
However this works:
I now have got rid of the 9MB "Untitled" partition.