LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   A way to change a fixed disk partition label. (http://www.linuxquestions.org/questions/linux-desktop-74/a-way-to-change-a-fixed-disk-partition-label-4175476851/)

stf92 09-12-2013 06:24 AM

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?

acid_kewpie 09-12-2013 06:36 AM

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

syg00 09-12-2013 06:42 AM

too slow ... removed.

Firerat 09-12-2013 06:43 AM

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

stf92 09-12-2013 08:05 AM

You've been very kind. Thanks.


All times are GMT -5. The time now is 09:38 AM.