Re: How do I find out the label of a swap partition?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 2005-08-14 at 20:49 -0600, Charles Curley wrote:
> How do I find out the label of a swap partition?
> 
> I'm working on bare metal recovery
> (http://www.tldp.org/HOWTO/Linux-Complete-Backup-and-Recovery-HOWTO/index.html). Now
> that Fedora uses labels to identify swap partitions as well as file
> system partitions, I need to learn what the swap partition label is so
> that the bare metal recovery scripts can properly make the swap
> partitions.
> 
> I can learn the labels of the file system partitions with mount -l,
> but that does not help with swap partitions.
> 
> I could parse /etc/fstab, but that may not be accurate, e.g. I changed
> my fstab to use the device name for swap, but there is a label on the
> partition. Also, with the current problem of garbage labels for the
> swap partitions, it is hazardous anyway.
> 

use e2label.
the man page will help

> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux