The situation is as follows.
- I have a Linux partition on a primary drive (modestly-sized SSD, and sharing it with Windows).
- I have another Linux (ext4) partition on a hard drive. It is permanently mounted in
- I don't want to make a swap file on a root drive to save space.
Thus I want to make a swap file on the hard drive partition. I've successfully created and enabled a swap file, but I have trouble enabling it permanently in
/etc/fstab. Should it be mounted under
/dev/ (where the drive is mounted), or under
/mnt/ (where the file system is mounted)?