Difference between revisions of "Swap/fr"

Updating to match new version of source page
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 154: Line 154:


Ces commandes créent un fichier vide, désactivent COW pour ce fichier et assurent qu'il n'y a pas de compression active.
Ces commandes créent un fichier vide, désactivent COW pour ce fichier et assurent qu'il n'y a pas de compression active.
{{tip|To stay compatible with Timeshift, it is necessary to create the swapfile outside the root subvolume "@".
{{RootCmd|command=btrfs subvolume create /@swapfile}}
Just replace /swapfile with /@swapfile/swapfile.}}


==Fichiers swap sur ZFS==
==Fichiers swap sur ZFS==
Line 207: Line 212:
  UUID=c2430cf1-8ea9-4422-a5c5-5a38779194c3 swap          swap    defaults,noatime 0 2
  UUID=c2430cf1-8ea9-4422-a5c5-5a38779194c3 swap          swap    defaults,noatime 0 2
  /swapfile none swap defaults 0 0
  /swapfile none swap defaults 0 0
With hibernation configured it will also be necessary to edit {{ic|/etc/default/grub}}. Find and remove option {{ic|<nowiki>resume=UUID=...</nowiki>}} or replace the UUID with a new proper value.  In the example above, we would remove this text:
resume=UUID=c2430cf1-8ea9-4422-a5c5-5a38779194c3
Then run:
sudo update-grub
If removing hibernation entirely then also delete {{ic|resume}} from the {{ic|HOOKS}} line in {{ic|/etc/mkinitpcio.conf}} and run:
sudo mkinitpcio -P




Line 217: Line 230:


{{note|Même si vous enlevez la partition swap de votre ficher fstab, systemd-swap va continuer à utiliser la partition swap si la partition n'es pas effacé!}}
{{note|Même si vous enlevez la partition swap de votre ficher fstab, systemd-swap va continuer à utiliser la partition swap si la partition n'es pas effacé!}}


==Utiliser zswap avec systemd-swap==
==Utiliser zswap avec systemd-swap==
8,138

edits