I have an external hard drive that has Ubuntu installed on certain partitions. Whenever I connect it to my main PC, Windows attempts to mount two of the partitions, which are ext4 filesystems. So, it is unable to mount them, and I receive the "Do you want to format this disk?" window.
Is there a way to prevent Windows for attempting to mount these specific partitions of the hard drive?