Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


Search this Thread
Old 02-16-2005, 10:22 AM   #1
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Rep: Reputation: 30
label swap device

does anyone know how i can label a swap device?
Old 02-16-2005, 06:23 PM   #2
Registered: Aug 2002
Posts: 12,171

Rep: Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784Reputation: 784
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?
Old 02-17-2005, 01:41 AM   #3
Registered: Dec 2003
Location: Johannesburg, South Africa
Posts: 846

Original Poster
Rep: Reputation: 30
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC2; VFS: Cannot open root device "LABEL=/" or unknown-block(0,0) Starchild Fedora 11 01-18-2006 04:39 AM
very strange swap partition label and empty text console whencat Fedora 4 08-07-2005 10:16 AM
swap device not getting mounted jacobselvin Linux - Newbie 9 07-20-2005 10:48 AM
VFS: Cannot Open Root Device "Label=/" abefroman Red Hat 4 05-03-2005 10:03 AM
how does harddrive gets its device label kngharv Linux - Newbie 3 12-13-2001 04:05 AM

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration