[COLUG] How to read label of a swap partition

jep200404 jep200404 at columbus.rr.com
Fri Aug 24 17:58:13 EDT 2007


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. 

e2label doesn't grok swap partitions. 

'dd if=/dev/hdax | xxd -g 1 -u | less' is too low level. 



More information about the colug432 mailing list