Wednesday, November 13, 2013

How to label or name a partition in linux

TO label or naming the Linux devices

To label the name of the harddisk partitions use the followig command line tool
"e2label " or "tune2fs -L "

here i labeled the ext4 file system of partition sdb1 with label "diskc" and sdb2 as "disk2"

root@ubuntu:~# e2label /dev/sdb1 diskc

root@ubuntu:~# tune2fs -L disk2 /dev/sdb2
tune2fs 1.41.14 (22-Dec-2010)



to display the label or name of the device

If the optional argument new-label is not present, e2label will simply display the current filesystem label.
 
root@ubuntu:~#e2label /dev/sdb1
diskc1
root@ubuntu:~# e2label /dev/sdb2
disk2

 


 

No comments:

Post a Comment