1
edit
(fix: fallocate => dd) |
Tags: Mobile web edit Mobile edit |
||
Line 107: | Line 107: | ||
<!--T:35--> | <!--T:35--> | ||
To create a swap partition, you need enough unallocated disk space to create an additional partition. If you do not have enough space, skip to the next section [[<tvar|link> | To create a swap partition, you need enough unallocated disk space to create an additional partition. If you do not have enough space, skip to the next section [[<tvar|link>#Using_a_Swapfile</>|#Using_a_Swapfile]]. A swap partition can be created in any disk management / partition management tool and should be set as type {{ic|linuxswap}}.</translate> | ||
<translate><!--T:36--> Once you have a swap partition you will need to initialize the swap partition with {{ic|mkswap}}. For example, if your swap partition is {{ic|/dev/sda3}}, you could use the command:</translate> | <translate><!--T:36--> Once you have a swap partition you will need to initialize the swap partition with {{ic|mkswap}}. For example, if your swap partition is {{ic|/dev/sda3}}, you could use the command:</translate> | ||
Line 123: | Line 123: | ||
{{tip|<translate><!--T:98--> ''If you're using a HDD'' (spinning rust) put the swap partition *at the beginning of the disk* as the speed of the disk is higher on the inside tracks. On an SSD this doesn't matter.</translate>}} | {{tip|<translate><!--T:98--> ''If you're using a HDD'' (spinning rust) put the swap partition *at the beginning of the disk* as the speed of the disk is higher on the inside tracks. On an SSD this doesn't matter.</translate>}} | ||
<translate> | <translate> | ||
=Using a Swapfile= <!--T:39--> | =Using a Swapfile= <!--T:39--> | ||
edit