LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-16-2005, 09:22 AM   #1
equinox
Member
 
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, 05:23 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,784

Rep: Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937Reputation: 5937
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, 12:41 AM   #3
equinox
Member
 
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.
 
  


Reply



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 03:39 AM
very strange swap partition label and empty text console whencat Fedora 4 08-07-2005 09:16 AM
swap device not getting mounted jacobselvin Linux - Newbie 9 07-20-2005 09:48 AM
VFS: Cannot Open Root Device "Label=/" abefroman Red Hat 4 05-03-2005 09:03 AM
how does harddrive gets its device label kngharv Linux - Newbie 3 12-13-2001 03:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:15 PM.

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