Is it possible to create a swap partition on a DietPi system?
I’m asking because I’m not totally clear on what DietPi does to save logs to RAM, and if there’s anything else I should know about in regards to what DietPi does. Will there be any conflicts or is it as simple as just adding a UUID= line in /etc/fstab ?
I’d try it myself but don’t wanna mess anything up, thought I’d ask you guys first 
Hi,
DietPi uses a swapfile, rather than a swap partition. Swapfile allows for ondemand size/location changes.
You can change the size of the swap file in:
dietpi-config > advanced > swapfile
To change the location and size:
/DietPi/dietpi/func/dietpi-set_dphys-swapfile 100 /mnt/mysuperdooperdrive/swapfile.file
Above will create a 100MB swapfile in location /mnt/mysuperdooperdrive/swapfile.file
Either way, if you want to specifically use a swap partition, /etc/fstab entry should be fine, just make sure to disable swapfile:
/DietPi/dietpi/func/dietpi-set_dphys-swapfile 0 /var/swap