Skip to Content
MvpDots

Sharing a drive with Windows

A data partition (NTFS) that both systems use: projects, models and downloads live there once, not twice.

Mount it with the kernel's NTFS driver

files/fstab.example in the playbook, the line for the shared drive:

UUID=<uuid>  /mnt/shared  ntfs3  noatime,uid=1000,gid=1000,fmask=0133,dmask=0022,windows_names,prealloc,nofail,x-gvfs-show,x-gvfs-name=Shared  0 0
OptionMeaning
ntfs3in-kernel NTFS driver (faster than ntfs-3g)
uid/gid=1000every file shows as yours
fmask=0133,dmask=0022files are not all marked executable
windows_namesrefuse names Windows cannot open (a:b)
nofailif the drive can't mount, boot continues anyway
x-gvfs-showappears in the file manager's sidebar

Before editing fstab: back it up, then test with sudo findmnt --verify and sudo mount -a.

Git repositories on NTFS

NTFS has no "executable" bit, and Windows tools like CRLF line endings. Per repository:

git config core.filemode false
git config core.autocrlf false

Run scripts as bash script.sh. Mark them executable inside git with git update-index --chmod=+x.

Bluetooth earbuds in both systems

Both systems share one Bluetooth chip, but earbuds remember only the key of whichever system paired last. Pair in Linux, then copy the key into Windows' registry. The ArchWiki page "Bluetooth → Dual boot pairing" walks through it.

Before and after

/etc/fstab
 /swap/swapfile none swap defaults 0 0
+UUID=<uuid>  /mnt/shared  ntfs3  noatime,uid=1000,gid=1000,fmask=0133,dmask=0022,windows_names,prealloc,nofail,x-gvfs-show,x-gvfs-name=Shared  0 0
Terminal — apply without rebooting
sudo mkdir -p /mnt/shared
sudo findmnt --verify      # must report no errors before you go on
sudo mount -a

On this page