2023-07-08 21:17:10 +03:00
|
|
|
# swaplabel
|
|
|
|
|
|
|
|
> Print or change the label or UUID of a swap area.
|
|
|
|
> Note: `path/to/file` can either point to a regular file or a swap partition.
|
|
|
|
> More information: <https://manned.org/swaplabel>.
|
|
|
|
|
|
|
|
- Display the current label and UUID of a swap area:
|
|
|
|
|
|
|
|
`swaplabel {{path/to/file}}`
|
|
|
|
|
|
|
|
- Set the label of a swap area:
|
|
|
|
|
2025-03-07 13:06:30 +02:00
|
|
|
`swaplabel {{[-L|--label]}} {{new_label}} {{path/to/file}}`
|
2023-07-08 21:17:10 +03:00
|
|
|
|
|
|
|
- Set the UUID of a swap area (you can generate a UUID using `uuidgen`):
|
|
|
|
|
2025-03-07 13:06:30 +02:00
|
|
|
`swaplabel {{[-U|--uuid]}} {{new_uuid}} {{path/to/file}}`
|