Nice Tips About How To Check Swap Partition
A system can have either of the swap partition or swap file or both.
How to check swap partition. To check swap status, use: You can look up the. Before starting, you will need to check whether swap is enabled or not in your system.
You can check active swap using command: You can check it with the following command: 988 88 645 50 254 813 swap:
From the result above, we can see the /dev/sda1 had been created with the planned size(500mb) and the correct id (82) and correct type (linux. Instead you can use swapon: $ swapon name type size used prio.
You can see that we don't have. However, more reliable information can be found. This is done using the swapon(8) command with root privileges, for example swapon /dev/sda5 where sda5 is the actual name of the swap partition on your machine.
A swap partition can be created with most gnu/linux partitioning. Means how you can create swap partition form logical volumes. Create logical volume and convert to swap.
The swap partition is not a file system and as a consequence is not displayed by df which works only on file systems. The output will show you a list of all. Bs is the unit bytes, you can also designate the unit to m or g.