Installing swap in Mint Debian edition (Solved)
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Installing swap in Mint Debian edition (Solved)
First of all apologies. I have searched for an answer for this to no avail....and even though I used to do this frequently many years ago.....I have over time become de skilled
I have created two partitions on my system.
/dev/sda1 is my main partition for all things installed and is mounted as /. My second partition is /dev/sda2 ...... is 4g and is formated as linux swap.
I have no mount point for this. When I boot int o the system everything runs blisteringly fast, but when I check the processes using top......I am told that I have zero swap.
How do I make my system recognise the swap partition?
Many thanks.
Brian
I have created two partitions on my system.
/dev/sda1 is my main partition for all things installed and is mounted as /. My second partition is /dev/sda2 ...... is 4g and is formated as linux swap.
I have no mount point for this. When I boot int o the system everything runs blisteringly fast, but when I check the processes using top......I am told that I have zero swap.
How do I make my system recognise the swap partition?
Many thanks.
Brian
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Installing swap in Mint Debian edition
I moved this here from Installation & Boot
Seemed like a better home for it
oscar799
Forum Admin
Seemed like a better home for it
oscar799
Forum Admin
Re: Installing swap in Mint Debian edition
Hi Brian!
Please read this first: http://forums.linuxmint.com/viewtopic.php?f=141&t=54927
Afterwards, if you have questions, post them!
seeley
Please read this first: http://forums.linuxmint.com/viewtopic.php?f=141&t=54927
Afterwards, if you have questions, post them!
seeley
Re: Installing swap in Mint Debian edition
Add this line to /etc/fstab
Then reboot. Swap should now work./dev/sda2 none swap sw 0 0
Re: Installing swap in Mint Debian edition
Easiest way... 1, 2, 3
1- Open gparted (menu/administration/gparted)
2- Select your swap partition and right click on it
3- Select "swapon" !!
To check; open terminal and type "free"
Hope it helps!
1- Open gparted (menu/administration/gparted)
2- Select your swap partition and right click on it
3- Select "swapon" !!
To check; open terminal and type "free"
Hope it helps!
Sergio
Re: Installing swap in Mint Debian edition
This looks like a bug in the installer. I ended up in the same (easily fixed for experienced folks) no swap situation in a two hard disk system with a swap space on each disk. You're used to installers just automatically recognizing and mounting already-existing swaps.
Re: Installing swap in Mint Debian edition
I think that method only activates it for a single session, though. I know because I did it that way first after realizing I forgot to tell the installer to mount my existing swap partition which I had from a previous Linux install during my LMDE install.spsf64 wrote:Easiest way... 1, 2, 3
1- Open gparted (menu/administration/gparted)
2- Select your swap partition and right click on it
3- Select "swapon" !!
To check; open terminal and type "free"
Hope it helps!
When I started the computer again, however, I realized that the swap was turned off again thanks to the system monitor, so I edited the /etc/fstab file like marksynt said, changing the partition number to match the partition which had the swap and it was still mounted after I restarted.
So go with marksynt's advice. it might be a little more technical, but you only have to do it once and never worry about it again.
Re: Installing swap in Mint Debian edition (Solved)
Many thanks to everyone.
I went with Markcynt's solution and all is now perfect
Brian
I went with Markcynt's solution and all is now perfect
Brian
Re: Installing swap in Mint Debian edition
Worked for me, and is working after reboot, thanks! The swapon in Gparted only works in the session... I use virtual machines so it's important for me to have it always on...markcynt wrote:Add this line to /etc/fstab
Then reboot. Swap should now work./dev/sda2 none swap sw 0 0
Re: Installing swap in Mint Debian edition
This worked for me. Thanks, it couldn't have been easier.spsf64 wrote:Easiest way... 1, 2, 3
1- Open gparted (menu/administration/gparted)
2- Select your swap partition and right click on it
3- Select "swapon" !!
To check; open terminal and type "free"
Hope it helps!
jackmule
Re: Installing swap in Mint Debian edition
markcynt wrote:Add this line to /etc/fstab
Then reboot. Swap should now work./dev/sda2 none swap sw 0 0
This part worked perfect for me also. Thanks a bunch. I'm fully up and running!
Eli