Difference between revisions of "Swap"

Marked this version for translation
(Added hibernation config removal steps)
(Marked this version for translation)
Line 180: Line 180:
<translate><!--T:50--> These commands create an empty swapfile, disable COW for that file and ensure that compression is disabled.</translate>
<translate><!--T:50--> These commands create an empty swapfile, disable COW for that file and ensure that compression is disabled.</translate>


{{tip|<translate>To stay compatible with Timeshift, it is necessary to create the swapfile outside the root subvolume "@".
{{tip|<translate><!--T:99-->
To stay compatible with Timeshift, it is necessary to create the swapfile outside the root subvolume "@".
<tvar|RootCmd>{{RootCmd|command=btrfs subvolume create /@swapfile}}</>
<tvar|RootCmd>{{RootCmd|command=btrfs subvolume create /@swapfile}}</>
Just replace /swapfile with /@swapfile/swapfile.
Just replace /swapfile with /@swapfile/swapfile.
Line 251: Line 252:




<translate>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:
<translate><!--T:100-->
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
  resume=UUID=c2430cf1-8ea9-4422-a5c5-5a38779194c3
Then run:
Then run: