Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

2 Answers

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
1  
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
add comment

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
add comment

Your Answer

 
discard

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.