Preventing disks mounting at startup
Prevent a volume from mounting at startup - Apple Community
The excellent article linked above is very informative but doesn't cover what to do if the drives in question aren't HFS or APFS, but Linux drives.
I have my (very old) Mac set up to dual boot Linux - I have one 500GB SSD with OSX installed and another 500GB SSD with Linux Fedora 36 installed, plus a 4TB Hard drive that holds media for the Fedora system.
I want to avoid getting the dialogue from MacOS Finder on start up that states that the other disks are unreadable and invites me to eject, initialise or ignore. Ideally I just want MacOS to automatically ignore the Linux drives. This is because it wouldn't be wise to trust other family members not to initialise the Linux drives, plus it's just clunky getting the dialogue all the time.
So assuming the way forward is to create and edit etc/fstab my questions are:
1) If I boot into Linux and note the relevant drive's UUID numbers, can I then use these numbers in MacOS's etc/fstab file or do the UUIDs have to come from MacOS? i.e. are UUIDs "portable"?
2) With regard to the section of the article that's:
UUID=FF9DBDC4-F77F-3F72-A6C2-26676F39B7CE none hfs rw,noauto
or
UUID=FF9DBDC4-F77F-3F72-A6C2-26676F39B7CE none apfs rw,noauto
is it as simple as swapping hfs or apfs for ext4? Or do I need to do something different?
3) Do I need to repeat the process for partition UUIDs or is the UUID for each drive sufficient?
Thanks
Julian
Mac Pro, OS X 10.11