LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > Linux - Certification
User Name
Password
Linux - Certification This forum is for the discussion of all topics relating to Linux certification.

Notices

Reply
 
Search this Thread
Old 10-18-2006, 12:06 PM   #1
badrat
LQ Newbie
 
Registered: Aug 2006
Posts: 8

Rep: Reputation: 0
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
 
Old 10-18-2006, 12:32 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 10-19-2006, 09:18 AM   #3
tietack
Member
 
Registered: Apr 2004
Posts: 75

Rep: Reputation: 15
The standard command for manually labelling partitions is e2label, which doesn't seem to work on my FC5 system on the swap partition.
 
Old 10-19-2006, 11:33 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well as above, the "e2" part of the command name should say it all...
 
Old 10-19-2006, 10:33 PM   #5
borothwell
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 1
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
 
1 members found this post helpful.
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Suse reiserfs partition lost it's label as /12 BlueNova32 Linux - General 4 10-09-2006 04:03 PM
How can I rename the LABEL on my partition xkape Linux - General 3 01-18-2006 02:49 PM
very strange swap partition label and empty text console whencat Fedora 4 08-07-2005 09:16 AM
change partition label w/o format gjo Linux - General 5 06-28-2005 12:50 PM
label swap device equinox Linux - General 2 02-17-2005 12:41 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration