LMDE installed and running but no swap

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
nullmodem

LMDE installed and running but no swap

Post by nullmodem »

I got Linux Mint Debian (201012) installed on one system.
LMDE is running along.
The hard disk has 2 partitions. The ext4 root partition and an extented partition.
But LMDE does not see the 1 Gb swap partition in the extended partition.
The system has 3Gb of RAM so swap is not really a problem, yet.

How do I make LMDE start using this swap partition at boot time?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
seeley

Re: LMDE installed and running but no swap

Post by seeley »

Hi!
1. If you don't use "suspend to disk" maybe you don't need swap.
2. Normally in Linux you can activate swap once with - as root I suppose -
"swapon" (but I don't tried it on LMDE)
If you always want to use swap, you have to edit /etc/fstab and add swap.
3. Your swap is not big enough.
Experts are saying (a year or more ago)
a) for a 32 bit computer 2 GB is the maximum
b) swap = 1.5 * ram [GB]
seeley

Edit:
See

Code: Select all

man swapon
seeley

Re: LMDE installed and running but no swap

Post by seeley »

Hi!
I) Some references, if you decide to enlarge swap:
You can enlarge a partition with gparted (the best partition editor I know).
Here are 2 examples (end of /etc/fstab):
an old one: "/dev/hda3 none swap sw 0 0"
a newer: "UUID=8883dbc8-80f8-49b8-8c5f-13a32baefe98 none swap sw 0 0"
You can find out the UUID with - as root -

Code: Select all

blkid
or

Code: Select all

ls -Al /dev/disk/by-uuid
"none"-> no mount point for swap necessary
"sw" ->file system
"0" dump: no back up
"0" pass: no check
II) As I have hardware issues and writing a HOWTO, could you please help be answering the questions:
a, Did you prepare your hard disk (partitioning)?
b, You have a primary partition (ext4) as root and an extended partition with the only logical partition sda5 = swap?
c, Did the installer print any question concerning swap?
seeley
Locked

Return to “Installation & Boot”