Question on install with a swap partition created

Darc Sceptor

Member
Joined
Oct 2, 2024
Messages
95
Reaction score
32
Credits
1,090
I did a new install of Linux Mint and did the following:

1) created the boot partition
2) I have 32G of memory so created a 32G swap partition
3) created the root partition

My question is this: Will Linux Mint "know" during the install to establish the swap partition or is this something I have to manually do?
 


With 32GB of ram you most likely do not need a swap partition....unless, of course, you are into some tremendously heavy use of the system. Some users have a need of that space for other things

----------------------------------------------------------------

Up above, you said that you have already done the install.

During a normal install there is no need to create partitions....the Linux installer will do that for you.

I left the installer to do my 'partitions' automatically... the installer will automatically correctly format the partition used for swap.....much the same as it formats correctly for the OS

if the partition maded by the installer for swap is not big enough/too big for you, it can be reduced/enlarged by using gparted.
 
I did a new install of Linux Mint and did the following:

1) created the boot partition
2) I have 32G of memory so created a 32G swap partition
3) created the root partition

My question is this: Will Linux Mint "know" during the install to establish the swap partition or is this something I have to manually do?
Yes, any distro will know. You should get a selection during the installation and you will have to confirm that you want to use these partitions. One of the reasons to keep /home separate. This way you can preserve everything including personalized settings as current as the last second :)

With 32GB of ram you most likely do not need a swap partition
You always need swap file/partition. This is how kernel VM works. You can tweak the size but you need swap. If you don't have swap, kernel will use hard disk anyway if needed (except bits and pieces will be left all over the the disk). Not to mention that disk is so cheap.
 
You always need swap file/partition. This is how kernel VM works. You can tweak the size but you need swap. If you don't have swap, kernel will use hard disk anyway if needed (except bits and pieces will be left all over the the disk). Not to mention that disk is so cheap.
Yes, I know. I did some deep dive work in operating systems when I was a member of the Microsoft Technical Testing Team. Our job was to beta all of the latest operating systems. I'm sure Linux is no different. What it important is in memory. What is not with less active use is swapped out and only swapped in when needed (if ever).

Thanks for the info. Learning more about Linux and how it behaves every day. Though I moved from "everything is an object" to "everything is a file" which just seems a bit weird to wrap my head around.
 
hibernation and page cache (will swap without swap - in such case randomly on the disk). However if hibernation is not used, and user does not care about page cache then yes, swap does not matter. Also if user keep system uptime long enough, then swapping will eventually occur. This can be remedied by frequent restarts.
In short, kernel does not care if swap is configured. Just the matter of tidiness (and hibernation).
 
I did a new install of Linux Mint and did the following:

1) created the boot partition
2) I have 32G of memory so created a 32G swap partition
3) created the root partition

My question is this: Will Linux Mint "know" during the install to establish the swap partition or is this something I have to manually do?

I've never done this...I boot to the ISO and click Install...the Installer will do everything for you.
1732159876087.gif


As for Swap Partitions...Mint stopped using them from Mint 19 as they are a thing of the past. We now have a Swap File of 2GB which will never be used because we now can add heaps more Ram than you could years ago.
1732160271877.gif
 
As I mentioned above one can use file or partition. If partition is ready then I don't know what this is all about. Disk space is cheap does not matter if it is taken by partition or file.
 

Members online


Top