LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 09-12-2013, 07:24 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,265

Rep: Reputation: 49
A way to change a fixed disk partition label.


Hi: I have some partitions on the disk which have no label in it. The cfdisk linux program run with no options initially displays several columns. For one of them the header says 'label'. This is the meaning I'm giving to the word 'label' here.

What would be a way to change the label for a partition?
 
Old 09-12-2013, 07:36 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
label would presumably refer to the ext2 label if the ext2/3/4 filesystem has it. That's not at partition level technically but would be my presumption. This can be modified by the e2label tool

Last edited by acid_kewpie; 09-12-2013 at 03:45 PM.
 
Old 09-12-2013, 07:42 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,485

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
too slow ... removed.

Last edited by syg00; 09-12-2013 at 07:43 AM.
 
Old 09-12-2013, 07:43 AM   #4
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
assuming ext{2,3,4}

Code:
e2label /dev/sdX1
simply returns the current label

Code:
e2label /dev/sdX1 NewLabel
sets (or changes ) the label to NewLabel
 
1 members found this post helpful.
Old 09-12-2013, 09:05 AM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,265

Original Poster
Rep: Reputation: 49
You've been very kind. Thanks.
 
  


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
Tool to change the label of a NTFS disk/partition lothario Linux - Software 3 11-04-2012 10:30 AM
How to tell what disk and partition a label points to thllgo Linux - Server 4 03-05-2009 12:03 PM
change partition label w/o format gjo Linux - General 5 06-28-2005 01:50 PM
How to change the label of a disk dtournas Red Hat 0 08-17-2004 09:02 AM
Change disk label sizes? hypodermic *BSD 5 03-12-2004 07:44 PM


All times are GMT -5. The time now is 06:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration