Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Disable search for swap

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
djevil
Posts: 9
Joined: 2017-09-18 13:36

Disable search for swap

#1 Post by djevil »

Hello,
I have cloned my OS from HD to SSD and I did not create a swap partition.
I have 8gb Ram and a 60gb SSD, so i probably need no swap. I would like to have more space for OS and apps.

However, on boot it searches 30 secs for swap.

How can I disable this?

There is no entry for swap in fstab and I disabled the only service concerning swap: swap.target or something similar.

Regards d

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Disable search for swap

#2 Post by pylkko »

can you provide output from

Code: Select all

 systemctl --type swap

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Disable search for swap

#3 Post by p.H »

Maybe the initramfs searches the swap for a resume image. By the way note that no swap = no hibernation.
Check in /etc/initramfs-tools/conf.d/resume. If it contains an identifier of the original swap device, remove it and rebuild the initramfs with

Code: Select all

update-initramfs -u

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Disable search for swap

#4 Post by debiman »

maybe comment out swap in /etc/fstab?

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Disable search for swap

#5 Post by p.H »

djevil wrote:There is no entry for swap in fstab

djevil
Posts: 9
Joined: 2017-09-18 13:36

Re: Disable search for swap

#6 Post by djevil »

@p.H.

Easy and perfect solution. Thanks!

Post Reply