I have a USB drive which has a data partition and a bootable Linux installed. The Linux installation is LUKS encrypted so it asks for password every time I insert the drive even though I don't even want to mount it.

I looked around and found the hidden flag but that apparently works for windows only. Is there a flag that makes Ubuntu not try to auto-mount the partition. If not, is there another way to make it not mount automatically? Preferably one where I modify the drive so it would work on every pc.


Well, I was able to achieve this by flagging the partitions as esp, which is definitely a bad solution, but it works.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.