Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to prevent Windows partition to access(read) Linux partition files within one physical hard disc?

Right now a couple of programs can do that. E.g. Linux Reader

I want to prevent that?

What are my possibilities?

I am currently running Windows 7 and would like to install as a dual boot Linux Mint 15.

share|improve this question

You could use LUKS to encrypt your volumes, and have it when you boot into Mint, it requires a password to mount the volumes. Windows would be unable to read the volumes after that.

To be honest, I'm not sure if Linux Reader can even read LVM volumes, so you might be able to get away with simply using LVM, but LUKS is most likely going to be the more secure way.

share|improve this answer
This password could even be hardcoded. The Windows tools are not going to search the Linux boot disk for possible passwords. – Hauke Laging Jun 29 '13 at 20:19

If you want to increase the fun factor of the solution then you could delete the Linux partitions from the partition table and recreate them with every boot from the initrd. If Linux has mounted the partitions (or rather: after the kernel has noticed them by a kpartx / partprobe call) then you could delete them again (in /boot/init.d/boot.local or even at a later stage from the initrd).

share|improve this answer
Or: have the partitions permanently deleted, and pass the offset (-o offset) to mount in the initrd. – ignis Jun 30 '13 at 19:33
@ignis loop devices are for image files. If you need a part of a block device then you should use dmsetup (device mapper). – Hauke Laging Jun 30 '13 at 21:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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