You are not logged in.

#1 2017-05-23 16:55:00

N_mag
Member
Registered: 2014-09-24
Posts: 6

[SOLVED] Swapfile & systemd-swap

I just want  to make sure I am following the instructions on https://wiki.archlinux.org/index.php/Swap#Swap_file correctly, but from my understanding, I can setup a swap file by creating a file with fallocate, changing the file permissions to 600, then adding it's location to my fstab. However, I'm not familiar with the need of the systemd.swap service. Is it needed and how does it work? I read some of the manual page but I didn't come out of it feeling good about what it does exactly.

Last edited by N_mag (2017-05-23 17:17:36)

Offline

#2 2017-05-23 16:59:42

loqs
Member
Registered: 2014-03-06
Posts: 17,322

Re: [SOLVED] Swapfile & systemd-swap

man 5 systemd.swap wrote:

Swap units may either be configured via unit files, or via /etc/fstab
       (see fstab(5) for details). Swaps listed in /etc/fstab will be
       converted into native units dynamically at boot and when the
       configuration of the system manager is reloaded. See systemd-fstab-
       generator(8) for details about the conversion.

       If a swap device or file is configured in both /etc/fstab and a unit
       file, the configuration in the latter takes precedence.

Does that not cover?

N_mag wrote:

Is it needed and how does it work?

Offline

#3 2017-05-23 17:15:41

N_mag
Member
Registered: 2014-09-24
Posts: 6

Re: [SOLVED] Swapfile & systemd-swap

Wow... I had a feeling someone would show me something I missed in reading. Thanks.

Offline

Board footer

Powered by FluxBB