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| Option | Meaning |
|---|---|
ntfs3 | in-kernel NTFS driver (faster than ntfs-3g) |
uid/gid=1000 | every file shows as yours |
fmask=0133,dmask=0022 | files are not all marked executable |
windows_names | refuse names Windows cannot open (a:b) |
nofail | if the drive can't mount, boot continues anyway |
x-gvfs-show | appears 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 falseRun 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
/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 0sudo mkdir -p /mnt/shared
sudo findmnt --verify # must report no errors before you go on
sudo mount -aHybrid graphics
Laptops with Intel + NVIDIA (muxless Optimus) draw the screen with the Intel GPU. The NVIDIA GPU should be fully off until a game or a CUDA job wants it. That saves several watts and keeps the laptop cool.
Docker on the shared drive
Container images and volumes grow to tens of gigabytes. Here they live on the big shared drive, not on the Linux partition, and Docker refuses to start when that drive is missing.