Prevent erasing a read-only volume

I have multiple mounted volumes of USB and CD and DVD with read-only permission, it seems they are still erasable, any config or flag could manage this? Thanks.

These are the Developer Forums where developers get together and try to figure out issues with code etc. For product support questions you need to go the Apple Support forums.

Thank you for the comment, this is a dev question seeking for any flag or config to prevent erasing a read-only volume like mounting approval API or noexec or ronly params when remount, any thoughts? Thanks.

Prevent erasing a read-only volume
 
 
Q