LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   label swap device (https://www.linuxquestions.org/questions/linux-general-1/label-swap-device-290947/)

equinox 02-16-2005 09:22 AM

label swap device
 
does anyone know how i can label a swap device?

michaelk 02-16-2005 05:23 PM

It appears that RHEL and FC3 are capable of labeling a swap partition. What distro are you running? Look at the man pages for mkswap does it have a -L option?

equinox 02-17-2005 12:41 AM

yea FC3, I did some searching on google and I also found the -L option. But on my FC3 box there is no -L option, I suppose what they do is first create an ext2 or ext3 partition and then run:

tune2fs /dev/hdxx -L SWAP-hdxx

then they probably just do:

mkswap /dev/hdxx


I haven't tried this but to me that's the only way I see it happening.


All times are GMT -5. The time now is 11:28 PM.