LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Certification (http://www.linuxquestions.org/questions/linux-certification-46/)
-   -   How to LABEL Swap partition (http://www.linuxquestions.org/questions/linux-certification-46/how-to-label-swap-partition-493559/)

badrat 10-18-2006 12:06 PM

How to LABEL Swap partition
 
I guess most of us have seen the /etc/fstab files. We can found the Label for swap partiton there linke SWAP-hda6. It is the label created at the installation time through disk druid.

But my question is can we manually label the linux swap partition? if yes how. if no why?

BadRAt

acid_kewpie 10-18-2006 12:32 PM

labelling is originally an ext2 function. other filesystems do not support it... unless they have been changed to support it too, like reiserfs is i think... you can't label swap.

tietack 10-19-2006 09:18 AM

The standard command for manually labelling partitions is e2label, which doesn't seem to work on my FC5 system on the swap partition.

acid_kewpie 10-19-2006 11:33 AM

well as above, the "e2" part of the command name should say it all...

borothwell 10-19-2006 10:33 PM

Quote:

Originally Posted by acid_kewpie
labelling is originally an ext2 function. other filesystems do not support it... unless they have been changed to support it too, like reiserfs is i think... you can't label swap.

Maybe in the old days, but most modern systems allow you to put a label on a swap partition. I don't know how to put one on an existing swap partition, but if you look at the man page for mkswap, you will see a -L option (if your system supports swap partition labeling). So, just recreate your swap partition with the mkswap command and use the -L option...

-Bo Rothwell
technicaltrainingresources.com


All times are GMT -5. The time now is 08:57 AM.