When I installed doth HDDs were recognised but elementary only gave the option to put things on one. I chose my SSD. It insisted on putting the swap file there too. Can I get access to the other drive now and move my swapfile? How do I do that?
2 Answers
You'll want to access the drives when they're not mounted, so install gparted
on a "live CD" or thumb drive, where you'll be able to toss your swap on one disk and create one on another.
Now to activate the partition
- Boot up elementary OS again and run
sudo gparted
. Right-click on the swap drive and go to "Properties". - Copy the partition's UUID.
- Run
sudo nano /etc/fstab
and look at the line with "swap" in its third column. Replace the old UUID with the new one, save, and exit. - Enable the swap with
sudo swapon --all --verbose
- Confirm its existence with
cat /proc/swaps
reboot
to make sure it loads
-
You don't need to use a Live CD here. You might only run
sudo swapoff -a
, fire upgparted
and create a new swap partiton and continue by step 2. Commented Nov 27, 2016 at 21:06
https://help.ubuntu.com/community/SwapFaq
This should basically have all the information you'll need.
Basically make a swap partition(or file) on the second drive and then configure swapon to use it.