You can hide your NTFS by changing the corresponding partition type to 0x83
(if MBR) or 0x8300
(if GPT). It will trick Windows it's a Linux partition. Use fdisk
or gdisk
on Linux to do so.
It works because Windows looks at the partition type and finds it important, Linux doesn't. In Linux you can specify the filesystem explicitly (like with mount -t
or in /etc/fstab
) and if there's any automagic, it recognizes the filesystem by its header or so (similarly Linux doesn't care about file extensions and recognizes files by their content).
I confirmed my solution (both cases: MBR and GPT) with Windows 7 and Kubuntu 16.04.2 LTS. At the moment I don't have access to Windows 10, hopefully it behaves the same way. Conclusions:
- Windows doesn't mount a partition with Linux partition type, even if there's NTFS inside. You cannot assign a drive letter at all. Such partition seems to behave as if it was pure Linux partition. I expect Windows won't mess with it.
- Linux can mount NTFS regardless of corresponding partition type.
Trivia: In Linux you can have any filesystem inside a regular file and mount it. In this case there's no partition table holding the partition type. This clearly shows that Linux just doesn't care about the partition type when mounting.