Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to disable swap
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Wed Apr 22, 2015 6:00 pm    Post subject: how to disable swap Reply with quote

I use an encrypted swap partition:
Code:
$> grep swap /etc/fstab
#/dev/mapper/crypt-swap none            swap            sw              0 0

$> grep -v '#' /etc/conf.d/dmcrypt | xargs
swap=crypt-swap source=/dev/sda3
and do wonder, what's the best way to prevent swapon during boot.
Removing /etc/init.d/swap/ from runlevel "default" was wrong, I do assume that commenting out the line in /etc/fstab is right - but why ?
Back to top
View user's profile Send private message
freke
l33t
l33t


Joined: 23 Jan 2003
Posts: 977
Location: Somewhere in Denmark

PostPosted: Wed Apr 22, 2015 6:49 pm    Post subject: Reply with quote

Do you have either swap or swapfiles in boot(/default) runlevel?

AFAICS from the init-files they both do an swapon -a (-e) which enables swap on entries in fstab? (unless noauto flag is set in fstab)

Which makes me wonder.... why two init-scripts??
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum