Change swap partition from SSD to MHD

OPENSUSE 13.2 - KDE

Hello all. The opensuse article config SSD’s says to delete the swap partition. Some say I should delete, some don’t. So, I want to just shift the partition from the SSD to MHD (Magnetic Hard Drive - used now as backup HD). I can use GParted to copy and paste the swap partition from SSD to MHD and delete from SSD. How do change system files to do this? Thanks.

systemd’s fstab generator should automatically detect it if you’ve deleted the the partition from the SSD, added it to your mechanical drive and rebooted.

If you don’t want to reboot, try; **sudo systemctl restart swap.target
**
Then type free and see if you have Swap: showing the expected size.

Depends on how much memory you have and if you actually use much swap. But if you don’t have it then if you over book memory things break. Fact is that SSD’s wear out. The drive will some day stop working. how long depends on lots of stuff. most recent drives say 20+gig per day writes for 5 years. In 5 years there will be a whole new set of devices with everything faster better longer lasting. Maybe if you plan or giving the drive to your grand children you might worry about it but…

I used GParted to copy linux swap from the SSD to the MHD and deleted swap from the SSD. On reboot, grub wouldn’t start. I had to do upgrade install. Opensuse booted to my original start screen.

>free
             total       used       free     shared    buffers     cached
Mem:       8074120    7571864     502256      22784    1075604    5525300
-/+ buffers/cache:     970960    7103160
Swap:      2106364         16    2106348


Did it work? Is opensuse using the swap partition on the MHD?

Now, that was a real convoluted method of doing this! I am surprised Miuku and gogalthorp missed it.

All you needed to do was launch the Yast Partitioner. Choosing the Swap partition, you merely then had a choice to Edit, Move, Resize, or Delete.

Quick, straight-forward, simple…

My favourite method is to Edit, where I choose the Do Not Mount option, then Finish out of the Partitioner. This turns off the Swap file and removes it from fstab, taking care of the fine details as it goes.

Then, back into the Partitioner, create a new Swap partition on the other drive, select to mount that partition, and it creates, adds to fstab, and starts the Swap in the new location.

No problems with Grub, no other problems, done, fully system aware, and over with.

I figured out that that’s what they meant after I completed the upgrade install. :stuck_out_tongue:

So, it worked? Opensuse uses the swap on MHD.

The ‘free’ command says it worked. My swap partition is now on my MHD (backup drive). Unless otherwise noted, this thread is closed. Thanks to all…