Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2901

General Questions • Re: Fstab and swap settings - which is better

$
0
0
Mine is /dev/mapper/luks-a1954dfe-de5a-4e4b-9cfa-436c32c343ad swap swap defaults,noatime 0 0

First "swap" means that the device or storage is mentioned before is used as swap.
Second "swap" indicates that the system will use it as swap space
Defaults means that the system will use the default options for this file system (swap), like allowing the system to use it for virtual memory.
Noatime means that the system is prevented from updating access time timestamps to files and directories when they are read.
First 0 determines if the file system should be ignored by the dump utility, because it isn't typically included in backups.
Second 0 determines if the file system should be checked by fsck. Since this is not a typical file system, one can drop it.
From the fstab man page:
The second field (fs_file).

This field describes the mount point (target) for the filesystem. For swap partitions, this field should be specified as `none'.
Your First "swap" is this second field.

Statistics: Posted by LeeE — 2024-11-19 09:16



Viewing all articles
Browse latest Browse all 2901

Trending Articles