Page 4 of 6

Re: More Gparted problems. [SOLVED]

Posted: Sun Sep 27, 2020 1:19 pm
by Sparky
tony37 wrote: Sun Sep 27, 2020 1:17 pm If you don't want a swap partition (making a swap file later on should also be possible) then you simply remove the last line from fstab (that UUID doesn't exist anymore anyway).
Thanks Tony!

Re: More Gparted problems. [SOLVED]

Posted: Sun Sep 27, 2020 1:20 pm
by tony37
It's possible that your system will still try to resume from swap, is there somewhere a "RESUME" variable in your /etc/default/grub file?

Re: More Gparted problems. [SOLVED]

Posted: Sun Sep 27, 2020 1:23 pm
by Sparky
No resume:

Code: Select all

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(unset PRETTY_NAME; (. /etc/lsb-release; echo ${PRETTY_NAME:?}) 2>/dev/null || echo Debian)"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

Re: More Gparted problems. [SOLVED]

Posted: Sun Sep 27, 2020 1:27 pm
by tony37
Ok, then I think things should go fine. Let me know if booting does take a lot longer than expected, or if you'd get an error.

Re: More Gparted problems. [SOLVED]

Posted: Sun Sep 27, 2020 1:32 pm
by Sparky
Will do, thanks!

Re: More Gparted problems. [SOLVED]

Posted: Sun Sep 27, 2020 1:51 pm
by tony37
Do you ever get close to using 12GB RAM? In that case it's best to make a swap file, following this guide worked for me. You can always remove it afterwards, there also isn't this gparted hassle involved.

Re: More Gparted problems. [SOLVED]

Posted: Sun Sep 27, 2020 4:30 pm
by Sparky
The link points back to this thread.

Re: More Gparted problems. [SOLVED]

Posted: Sun Sep 27, 2020 4:42 pm
by tony37
oops, corrected

There's a lot of explanation there, if you just want instructions to create a 2GB swapfile:

Code: Select all

sudo dd if=/dev/zero of=/swapfile bs=1024 count=2000000
sudo mkswap /swapfile
sudo chmod 600 /swapfile
sudo swapon /swapfile
and then add the following to /etc/fstab if you want to boot with it:

Code: Select all

/swapfile    none    swap    sw    0    0
If you want, say a 4GB swapfile, then change count=2000000 in the first command to count=4000000

And to remove the swapfile: remove the entry from /etc/fstab (or put a '#' in front of it) and:

Code: Select all

sudo swapoff /swapfile
sudo rm /swapfile

Re: More Gparted problems. [SOLVED]

Posted: Sun Sep 27, 2020 5:14 pm
by Sparky
Thanks Tony, I really appreciate your help!
I find myself running out of RAM when I use VirtualBox, which wasn't as apparent before, so I'll add the 4GB swap.

Re: More Gparted problems. [SOLVED]

Posted: Sun Sep 27, 2020 5:59 pm
by Sparky
Did it!

Code: Select all

$ swapon --show
NAME      TYPE SIZE USED PRIO
/swapfile file 3.8G   0B   -2