[COLUG] How to read label of a swap partition

Rob Funk rfunk at funknet.net
Fri Aug 24 19:36:21 EDT 2007


jep200404 wrote:
> How can one read the label of a swap partition?
>
> The -L option to the mkswap, swapon, and swapoff commands,
> allows one to specify a label name, but I don't see any
> commands or options to just read the label of a swap partition.

I don't label my partitions, but the swapon man page's description of -L 
seems to imply that "cat /proc/partitions" may help.

-- 
==============================|   "A microscope locked in on one point
 Rob Funk <rfunk at funknet.net> |Never sees what kind of room that it's in"
 http://www.funknet.net/rfunk |    -- Chris Mars, "Stuck in Rewind"


More information about the colug432 mailing list