Can I use swap file safely, deadlock free on NTFS?
Yes, this is possible if it’s properly setup. Below is the example how to create, initialize and turn on a 2 GB swap file safely, deadlock free: dd if=/dev/zero of=swapfile bs=1M count=2000 mkswap swapfile swapon swapfile You must turn off the swap file with ’swapoff’ before you would be able to unmount NTFS. Please also note that other solutions, for example using swap on a loop device, are not safe and can cause deadlock!