OK , I know this sounds a bit silly and solid state drives like a USB flash stick are probably the last thing on earth you want to use as a swap disk since they could go bad pretty quick from all the read/writes.
Regardless of the bad idea aspect of this I would like to know how to make one of my old 4 gig USB sticks my designated swap disk so that when my computer running Ubuntu Precise starts up, it will use the USB stick as swap.
Couple of twists to add to the challenge:
the computer I'm using is my wife's laptop core2 duo and has 4gigs of ram
she likes Ubuntu but doesn't trust me to backup her hd so I have her running Ubuntu 12.04 on a 16gb highspeed USB 2 flash memory stick with persistency.
the second USB stick will be my swap disk and when the live USB starts up I want it to do all the heavy swap writing etc on the second USB stick
Anyone up to the challenge. Trivial maybe but please indulge me :D
cat /proc/swaps
. In the following list shown there should be your usb drive mounted as swap. Good luck to you, bro! :) – FuzzyQ Aug 09 '12 at 09:41swapoff -a
then editing the/ertc/fstab
to remove the USB device line and thenswapon -a
again? – Drubio Mar 29 '20 at 09:47