sde diye bir disk alanı oluşturduk. Bu alanı biçimlendirelim.

fdisk /dev/sde

Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-4194303, default 2048):
Using default value 2048
Last sector, +sectors or +size{K,M,G} (2048-4194303, default 4194303):
Using default value 4194303
Partition 1 of type Linux and of size 2 GiB is set

Command (m for help): t
Selected partition 1
Hex code (type L to list all codes): 82
Changed type of partition 'Linux' to 'Linux swap / Solaris'

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

mkswap -L swap1 /dev/sde1
Setting up swapspace version 1, size = 2096124 KiB
LABEL=swap1, UUID=c854c7e7-33fd-4983-b9c1-827b0281b2cf
vi /etc/fstab

/dev/sde1       swap    swap    defaults        0 0