Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

swaplabel(8) [centos man page]

SWAPLABEL(8)						       System Administration						      SWAPLABEL(8)

NAME
swaplabel - print or change the label or UUID of a swap area SYNOPSIS
swaplabel [-L label] [-U UUID] device DESCRIPTION
swaplabel will display or change the label or UUID of a swap partition located on device (or regular file). If the optional arguments -L and -U are not given, swaplabel will simply display the current swap-area label and UUID of device. If an optional argument is present, then swaplabel will change the appropriate value on device. These values can also be set during swap creation using mkswap(8). The swaplabel utility allows to change the label or UUID on an actively used swap device. OPTIONS
-h, --help Display help text and exit. -L, --label label Specify a new label for the device. Swap partition labels can be at most 16 characters long. If label is longer than 16 charac- ters, swaplabel will truncate it and print a warning message. -U, --uuid UUID Specify a new UUID for the device. The UUID must be in the standard 8-4-4-4-12 character format, such as is output by uuidgen(1). AUTHOR
swaplabel was written by Jason Borden <jborden@bluehost.com> and Karel Zak <kzak@redhat.com>. ENVIRONMENT
LIBBLKID_DEBUG=0xffff enables debug output. AVAILABILITY
The swaplabel command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. SEE ALSO
mkswap(8), swapon(8), uuidgen(1) util-linux April 2010 SWAPLABEL(8)

Check Out this Related Man Page

SWAPLABEL(8)						       System Administration						      SWAPLABEL(8)

NAME
swaplabel - print or change the label or UUID of a swap area SYNOPSIS
swaplabel [-L label] [-U UUID] device DESCRIPTION
swaplabel will display or change the label or UUID of a swap partition located on device (or regular file). If the optional arguments -L and -U are not given, swaplabel will simply display the current swap-area label and UUID of device. If an optional argument is present, then swaplabel will change the appropriate value on device. These values can also be set during swap creation using mkswap(8). The swaplabel utility allows to change the label or UUID on an actively used swap device. OPTIONS
-h, --help Display help text and exit. -L, --label label Specify a new label for the device. Swap partition labels can be at most 16 characters long. If label is longer than 16 charac- ters, swaplabel will truncate it and print a warning message. -U, --uuid UUID Specify a new UUID for the device. The UUID must be in the standard 8-4-4-4-12 character format, such as is output by uuidgen(1). AUTHOR
swaplabel was written by Jason Borden <jborden@bluehost.com> and Karel Zak <kzak@redhat.com>. AVAILABILITY
The swaplabel command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/. SEE ALSO
mkswap(8), swapon(8), uuidgen(1) util-linux April 2010 SWAPLABEL(8)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

linux + bsd + solaris

I prepare to install linux distros , freebsd and solaris(totally 6 OS) in a 40G harddisk, but I fail to do it, so I would like to ask some question here. Can different distros share the same linux swap?or each distros need to have their own? I made 6 partitions(5 x 7G , 1 x 4G) and 256M(I... (8 Replies)
Discussion started by: jcheng
8 Replies

2. UNIX for Dummies Questions & Answers

format to linux native?

hi again all, i am still trying to get my old win95 pc to become a unix/linux pc, running with redhat. i managed to install it on my old win32/fat partition (which is the whole hdd), but when i did this it said it may result in lower operating speed, but i couldn't manage to create a linux native... (2 Replies)
Discussion started by: gan
2 Replies

3. UNIX for Dummies Questions & Answers

Linux/Windows Fat32 Swap partition.

I run a dual boot WinXP/Red Hat 8 system on my laptop. Since my hard drive is inherently small(laptop) I am trying to creat a swap partition for keeping mutually used files such as music/video etc... I have created a 2.5GB Fat32 partition with Partition Magic Pro and have windows recognizing the... (2 Replies)
Discussion started by: djtrippin
2 Replies

4. Linux

swap partition?

What does a swap partition do exactly? I was messing arround with a linux machine at my school and i deleted the swap partition using fdisk and then rebooted the machine and it worked fine and wrote a swap partition back in...lol. Is it a nessary part of the OS to use that partition? (7 Replies)
Discussion started by: byblyk
7 Replies

5. Linux

How To change time?

what command must i use to change time ? (4 Replies)
Discussion started by: Sirius
4 Replies

6. UNIX for Advanced & Expert Users

Memory managment - linux

Hi, I having problem with my linux machine it have 6Gb physical memory and somehow it always almost coming to the bottom neck and than it start writing to the swap memory you can see that there is more than 4G in cahce, is there any way to clean the cache or to limit it to 2Gb? host1... (6 Replies)
Discussion started by: Igal Malka
6 Replies

7. News, Links, Events and Announcements

HOWTO: RSS Feeds for UNIX Forums

If you want to submit your favorite UNIX.COM forum to RSS news feeds registries or directories, here is how: The top level RSS link to the UNIX forums is: https://www.unix.com/external.php This is the default for the RSS type, which is: https://www.unix.com/external.php?type=RSS ... (11 Replies)
Discussion started by: Neo
11 Replies

8. Solaris

Swap config - Mirror swap or not?

Hello and thanks in advance. I have a Sun box with raid 1 on the O/S disks using solaris svm. I want to unmirror my swap partition, and add the slice on the second disk as an additional swap device. This would give me twice as much swap space. I have been warned not to do this by some... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

9. Linux

How to give UUID to a swap partition?

Dear Folks Is there anyway to give a UUID to a swap partition? mkswap on CentOS 5 (util-linux-2.13-0.45.el5_1.1) appears to override this option ;-( # swapoff -a # mkswap -L swap1 /dev/sda3 Setting up swapspace version 1, size = 4293591 kB LABEL=swap1, no uuid And there's no... (3 Replies)
Discussion started by: Santi
3 Replies

10. Linux

How to store values into variable in perl

Hi, Can you please help me of how to store the values into variables. Here is the output in LINUX for the below command. $free output : total used free Mem: 3079276 3059328 19948 Swap: 1023992 6324 1017668 ... (3 Replies)
Discussion started by: chittiprasad15
3 Replies

11. UNIX for Dummies Questions & Answers

how to know the device on which the file is located

Hi, i want to know on which device a file is located is there any command or anyway to know it thanks santosh (5 Replies)
Discussion started by: santosh149
5 Replies

12. HP-UX

How to remove swap file sys without reboot?

hi every body i am trying to remove logical volume i configured as a swap device but when i removed by smh i ran " swapinfo" it keeps the device and didn't feel that device removed also i "lvremove /dev/vg01/swapvol" also swapinfo not feel i want it feel that i reduced the swap without reboot... (4 Replies)
Discussion started by: maxim42
4 Replies

13. UNIX for Advanced & Expert Users

Swap lines using sed

Hi, I have to swap two consecutive line using sed in a file. My text to swap is available in the file x.pl #Create & map a common work library if (!(-e "../work")) { system ("vlib work ../work"); system ("vmap work ../work"); } system ("vsimsa -do thiagu_dec.do"); In this i... (6 Replies)
Discussion started by: adharmalingam
6 Replies

14. Linux

No space left on device when using rm

Hello people I have a small fileserver running busybox (very small linux distro with most essential stuff on it) and I am trying to remove some unused directories on it. When I try this: rm -R test/I get: rm: cannot remove 'test': No space left on devicedf shows: Filesystem ... (8 Replies)
Discussion started by: GTCG
8 Replies

15. UNIX for Beginners Questions & Answers

Can i delete this file ?

Hi, On my linux system i find the below two files which occupy good space. # du -sh /root/myswapfile /swap2 1.1G /root/myswapfile 1001M /swap2 # ls -ltr /root/myswapfile /swap2 -rw-------. 1 root root 1073741824 Jan 27 2017 /root/myswapfile -rw-------. 1 root root 1048576000 Jan... (11 Replies)
Discussion started by: mohtashims
11 Replies