More Gparted problems. [SOLVED]

Message
Author
User avatar
Sparky
Posts: 1205
Joined: Sun Dec 23, 2018 6:07 pm

Re: More Gparted problems. [SOLVED]

#31 Post 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!
MX Linux Asus F552, 12GB RAM, 500GB WD SSD MX19.2
Dell Inspiron 7559 16GB RAM 1X 256GB SSD & 1TB SSD MX KDE 21.1 & Windows 11
Mini Tower PC 2X 256GB SSD MX KDE21.1

tony37
Posts: 1306
Joined: Sat Jul 18, 2020 12:34 pm

Re: More Gparted problems. [SOLVED]

#32 Post 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?

User avatar
Sparky
Posts: 1205
Joined: Sun Dec 23, 2018 6:07 pm

Re: More Gparted problems. [SOLVED]

#33 Post 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=""
MX Linux Asus F552, 12GB RAM, 500GB WD SSD MX19.2
Dell Inspiron 7559 16GB RAM 1X 256GB SSD & 1TB SSD MX KDE 21.1 & Windows 11
Mini Tower PC 2X 256GB SSD MX KDE21.1

tony37
Posts: 1306
Joined: Sat Jul 18, 2020 12:34 pm

Re: More Gparted problems. [SOLVED]

#34 Post 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.

User avatar
Sparky
Posts: 1205
Joined: Sun Dec 23, 2018 6:07 pm

Re: More Gparted problems. [SOLVED]

#35 Post by Sparky »

Will do, thanks!
MX Linux Asus F552, 12GB RAM, 500GB WD SSD MX19.2
Dell Inspiron 7559 16GB RAM 1X 256GB SSD & 1TB SSD MX KDE 21.1 & Windows 11
Mini Tower PC 2X 256GB SSD MX KDE21.1

tony37
Posts: 1306
Joined: Sat Jul 18, 2020 12:34 pm

Re: More Gparted problems. [SOLVED]

#36 Post 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.
Last edited by tony37 on Sun Sep 27, 2020 4:42 pm, edited 1 time in total.

User avatar
Sparky
Posts: 1205
Joined: Sun Dec 23, 2018 6:07 pm

Re: More Gparted problems. [SOLVED]

#37 Post by Sparky »

The link points back to this thread.
MX Linux Asus F552, 12GB RAM, 500GB WD SSD MX19.2
Dell Inspiron 7559 16GB RAM 1X 256GB SSD & 1TB SSD MX KDE 21.1 & Windows 11
Mini Tower PC 2X 256GB SSD MX KDE21.1

tony37
Posts: 1306
Joined: Sat Jul 18, 2020 12:34 pm

Re: More Gparted problems. [SOLVED]

#38 Post 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

User avatar
Sparky
Posts: 1205
Joined: Sun Dec 23, 2018 6:07 pm

Re: More Gparted problems. [SOLVED]

#39 Post 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.
MX Linux Asus F552, 12GB RAM, 500GB WD SSD MX19.2
Dell Inspiron 7559 16GB RAM 1X 256GB SSD & 1TB SSD MX KDE 21.1 & Windows 11
Mini Tower PC 2X 256GB SSD MX KDE21.1

User avatar
Sparky
Posts: 1205
Joined: Sun Dec 23, 2018 6:07 pm

Re: More Gparted problems. [SOLVED]

#40 Post by Sparky »

Did it!

Code: Select all

$ swapon --show
NAME      TYPE SIZE USED PRIO
/swapfile file 3.8G   0B   -2
MX Linux Asus F552, 12GB RAM, 500GB WD SSD MX19.2
Dell Inspiron 7559 16GB RAM 1X 256GB SSD & 1TB SSD MX KDE 21.1 & Windows 11
Mini Tower PC 2X 256GB SSD MX KDE21.1

Post Reply

Return to “Software / Configuration”