CmdID

CmdID / Commands

mkswap

Set up a Linux swap area on a device or file. toybox

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Linux

from the toybox, 0BSD
mkswap [-L LABEL] DEVICE

Set up a Linux swap area on a device or in a file. Note: path/to/file can either point to a regular file or a swap partition.

Set up a given swap area

sudo mkswap path/to/fileIdentify

Check a partition for bad blocks before creating the swap area

sudo mkswap --check path/to/fileIdentify

Specify a label for the partition (to allow swapon to use the label)

sudo mkswap --label label /dev/sdXYIdentify

Use the specified UUID

sudo mkswap --uuid clearIdentify

Set up a swap file (for btrfs, see tldr btrfs filesystem instead)

sudo mkswap --size file_size --file path/to/swapfileIdentify