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.
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.