Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

swaplabel(8) [debian 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)

Check Out this Related Man Page

FINDFS(8)						       System Administration							 FINDFS(8)

NAME
findfs - find a filesystem by label or UUID SYNOPSIS
findfs NAME=value DESCRIPTION
findfs will search the block devices in the system looking for a filesystem or partition with specified tag. The currently supported tags are: LABEL=<label> Specifies filesystem label. UUID=<uuid> Specifies filesystem UUID. PARTUUID=<uuid> Specifies partition UUID. This partition identifier is supported for example for GUID Partition Table (GPT) partition tables. PARTLABEL=<label> Specifies partition label (name). The partition labels are supported for example for GUID Partition Table (GPT) or MAC partition tables. If the filesystem or partition is found, the device name will be printed on stdout. The complete overview about filesystems and partitions you can get for example by lsblk --fs partx --show <disk> blkid EXIT STATUS
0 success 1 label or uuid cannot be found 2 usage error, wrong number of arguments or unknown option AUTHOR
findfs was originally written by Theodore Ts'o <tytso@mit.edu> and re-written for the util-linux package by Karel Zak <kzak@redhat.com>. ENVIRONMENT
LIBBLKID_DEBUG=all enables libblkid debug output. SEE ALSO
blkid(8), lsblk(8), partx(8) AVAILABILITY
The findfs command is part of the util-linux package and is available from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils /util-linux/>. util-linux March 2014 FINDFS(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. 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

3. Ubuntu

linux installation

for installing fc4 , or even ubuntu , i got this problem after booting from vmlinuz and initrd (from both cd and ftp) display i got was very scattered. I was not able to make out from that display. ( it was a default display of blue window and black background). I have debian already installed... (6 Replies)
Discussion started by: yogesh_powar
6 Replies

4. 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

5. UNIX for Dummies Questions & Answers

issues involving sshd, display and apache.

I have a rather peculiar problem in the past 2 weeks. I have a network setup with a linux box acting as a gateway (It is exposed to the internet). Also, there are 2 additional machines that are connected to the gateway (and are not exposed to the outside world). (The gateway has a NAT setup to... (5 Replies)
Discussion started by: ceeeyem
5 Replies

6. UNIX for Dummies Questions & Answers

vi.....line too long

I'm getting a "line too long" error when I try to vi a particular file. I really just need to view the contents as I don't have to change anything. Any suggestions?? I already tried to cat but it didnt work........:( (7 Replies)
Discussion started by: shorty
7 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. AIX

change ip in aix not using smitty

I want to change my ip by not using smitty, could please help me and what to edit files. So that everytime i will restart my server it will not change. (10 Replies)
Discussion started by: kenshinhimura
10 Replies

9. 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

10. Linux

Do linux have a device file for ETHERNET CARD.

Sir, Do linux have device file for ethernet card. Can I use open , read , write , system calls to read data transferred through LAN. Is there any methods to read network datas (with out header and tailor information). Hope anyone can help me out. Thanking you.... ... (5 Replies)
Discussion started by: iamjayanth
5 Replies

11. UNIX for Dummies Questions & Answers

Size of swap partition during installation

Greetings. I've been into computers since the '80s, but this is my first attempt at Linux. I'm installing Debian Lenny on a PIII 733 with 10GB hard drive and 512MB Ram. I intend to use the machine primarily as a development server, with things like mySQL, Apache, php, etc. I don't really want... (22 Replies)
Discussion started by: fguy
22 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