How to set drive as Read-Only through software for use with both Windows and Linux

Is there a software solution to make a USB drive read-only that will keep those permissions when switching between Windows and Linux?

Windows diskpart - locks it down for windows, but no protection when used on Linux.

U3 - Would have worked by placing a new image on the CD partition of the desired files. But no longer supported or available to convert new drives.

The hardware read-only switch is not an option for my use-case.

2 replies