Fitz Mutch
Senior Member
How to automatically mount a swap partition at startup and un-mount it at shutdown or when you unplug the USB storage device.
/jffs/configs/fstab
Type blkid, to know the UUID of the partition.
Never use /dev/sda1 in /jffs/configs/fstab for a swap partition because you could mistakenly erase the wrong partition, when you have multiple USB storage devices.
If Asuswrt had enabled the Linux device mapper, you could encrypt the swap partition automatically. You never really know what's sitting in your swap space.
/jffs/configs/fstab
Code:
UUID=11111111-2222-3333-4444-555555555555 none swap defaults 0 0
Type blkid, to know the UUID of the partition.
Never use /dev/sda1 in /jffs/configs/fstab for a swap partition because you could mistakenly erase the wrong partition, when you have multiple USB storage devices.
If Asuswrt had enabled the Linux device mapper, you could encrypt the swap partition automatically. You never really know what's sitting in your swap space.
Last edited: