Mint 19 Swap File vs. old swap partition (SOLVED)

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
User avatar
winemaker9
Level 1
Level 1
Posts: 36
Joined: Mon Oct 26, 2009 11:18 am

Mint 19 Swap File vs. old swap partition (SOLVED)

Post by winemaker9 »

I'm currently running 18.3 Cinnamon and am planning on upgrading to 19 when it is fully released.
I've heard that 19 will be using a swap file as opposed to the current swap partition.
Questions:
Will this happen automatically?
If not
Do I need to do something, is the swap file created on updating or can I continue using the swap partition OR
Can I manually get rid of the swap partition and move that space into the "/" with 'gparted'

One other thing, is the new swap file dynamically sized or static like the partition?
Is there anyplace that goes into this a little deeper?

Thanks
Last edited by winemaker9 on Wed Jun 13, 2018 8:13 am, edited 1 time in total.
Steve
User avatar
catweazel
Level 19
Level 19
Posts: 9884
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: Mint 19 Swap File vs. old swap partition

Post by catweazel »

winemaker9 wrote:
Tue Jun 12, 2018 7:44 pm
I've heard that 19 will be using a swap file as opposed to the current swap partition.
Mint 19 is beta software so it's unsupported. Post your comments and questions on the Mint blog.

Linux Mint 19 "Tara" Cinnamon – BETA Release
Linux Mint 19 "Tara" MATE – BETA Release
Linux Mint 19 "Tara" Xfce – BETA Release
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
User avatar
xenopeek
Level 24
Level 24
Posts: 24927
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Mint 19 Swap File vs. old swap partition

Post by xenopeek »

Yes, a fresh install of Linux Mint 19 will create a swap file (/swapfile). AFAIK it is fixed size but you can relatively easily resize it (disable swap, resize file, enable swap) or just add another swap file in addition to the default one.

I noted the commands to create a swapfile here viewtopic.php?f=46&t=270961#p1480094. If you want to resize I think you just need to run sudo swapoff /swapfile first and then you can run those commands to recreate the swapfile of the size you want. You can skip the final step of editing /etc/fstab.

If you upgrade in place (using Update Manager's menu option for that, which become available shortly after final release of Linux Mint 19) I think you will retain your swap partition. Should you want to switch from using a swap partition to a swap file, we can help with that. It's as simple disabling the swap partiton (with swapoff command, and removing it from /etc/fstab) and then using above link to create a swap file.

Edit: if you're installing Linux Mint 19 with disk encryption it will set up a encrypted partition and use LVM to subdivide that into a root volume and a swap volume. So in this case you won't be using a swap file.
Image
User avatar
Pierre
Level 20
Level 20
Posts: 10838
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: Mint 19 Swap File vs. old swap partition

Post by Pierre »

you can also use the 'something else' option in the LM19 installer,
- to point to that existing old swap partition - - this did work for me, when trying out yet another installation of LM19.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
User avatar
Sir Charles
Level 7
Level 7
Posts: 1895
Joined: Thu Jan 04, 2018 1:00 pm

Re: Mint 19 Swap File vs. old swap partition

Post by Sir Charles »

xenopeek wrote:
Wed Jun 13, 2018 2:25 am

If you upgrade in place (using Update Manager's menu option for that, which become available shortly after final release of Linux Mint 19) I think you will retain your swap partition.
I can confirm that. I have upgraded from 18.3 to 19 beta by means of a "home made" upgrade path and my existing swap partition is recognized and used without the creation of any additional swapfile in LM 19.
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.
User avatar
xenopeek
Level 24
Level 24
Posts: 24927
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Mint 19 Swap File vs. old swap partition

Post by xenopeek »

Just to allay any doubts; you can use a swap partition and/or swap file on any Linux Mint version. It's just that for Linux Mint 19, for installation without disk encryption, it now defaults to using a swap file.

Swap files are more flexible (much easier to resize or change).
Image
User avatar
Sir Charles
Level 7
Level 7
Posts: 1895
Joined: Thu Jan 04, 2018 1:00 pm

Re: Mint 19 Swap File vs. old swap partition

Post by Sir Charles »

xenopeek wrote:
Wed Jun 13, 2018 4:25 am
Swap files are more flexible (much easier to resize or change).
I just wondered if installingdphys-swapfilecould be a viable alternative?
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.
Post Reply

Return to “Installation & Boot”