Search results
- The easiest way to rename a partition is to install GParted. sudo apt-get install gparted Once you have installed this, just launch the program (you will need to enter your sudo password to use the program), find the drive you want to rename, unmount it, click label followed by renaming your partition.
askubuntu.com/questions/276911/how-to-rename-partitions
People also ask
How do I rename a partition?
How to change the name of a Linux partition?
How to change disk name on ext4 file system Ubuntu Linux?
How to change label of a partition in Linux?
How to label a hard drive partition in Linux?
How to change the label of swap partition in Linux?
Feb 12, 2016 · You can re-label file systems with Gnome Disks: If you really want to use the command line, the command depends on the affected file system type. For ext2/3/4 it's. sudo e2label <DEVICE> <NEW_LABEL>.
- Linux Filesystem and Partitions – Types and Terminologies
- Some Terminologies Relating to Linux Partitioning
- Linux Utilities/Commands For Changing Or Modifying Partition Names/Labels
- Special Linux Utilities to Mount Partition with Label Names
- Conclusion
A bare Linux system configures 2 partitions during normal installation i.e. root ('/') (Where the filesystem is laid down) and swap(a temporary storage space which is assumed to be twice of RAM by default which is although not necessary). Bootloader is generally installed in root partition or the first primary partition. Partition lays down the bas...
Primary Partition:
Directly holds area on hard disk specified in terms of first and last sector address and holding a label indicating the hard disk where it is and its number. It can hold the boot files for OS or the data as configured by user.
Extended Partition:
Partition which holds other partitions. Extended partition is created to hold multiple logical partitions. Unlike primary partition, it can’t hold the boot files of installed OS, as it holds and manages the logical partitions.
Logical Partition:
After first 4 primary partitions, come the logical partitions which are laid down on extended partition. These are generally used to hold the filesystem as laid down by user. Swap space is also configured as a logical partition.
Commands for changing or modifying Partition Name/ Label are dependent on type of filesystem on that partition with exception of some general commands. Below you can find listing of all such commands.
/etc/fstab is the file which is consulted at the boot time to mount the partitions that exist on the system. Partitions are by default identified by using UUID as per the entry in this /etc/fstabfile. But, there is another way to load the partition, instead of that long UUID, you can just pass the label of that partition in the file instead of UUID...
Above are the techniques presented for Changing/Modifying the Name/Label of Linux Partitions. If you have other interesting techniques which can achieve the same thing do share with us in your precious comments.
The easiest way to rename a partition is to install GParted. sudo apt-get install gparted. Once you have installed this, just launch the program (you will need to enter your sudo password to use the program), find the drive you want to rename, unmount it, click label followed by renaming your partition.
Jul 26, 2024 · How to change disk name on the ext4 file system on a Ubuntu Linux using command line? You need to use the e2label command to set a text label to your disk drive partitions and then refer to them in the /etc/fstab file. The e2label command must be run as root user.
- Disk Management
- Linux terminal
- Easy
- Yes
In this tutorial, you will see how to use the e2label command to label a hard drive partition in Linux. You will also see how to use blkid to read these labels later on, and how to mount drives by their label in the fstab file.
- e2label
- Any Linux distro
If that's the case, then renaming the filesystem with any of the commands that Hans Chen has mentioned, or with GParted, should do the trick. The MBR Partitioning system does not support partition labels; however, the GPT system does.
Oct 12, 2013 · Method 1# using dosfslabel ( As @Macro suggested ) Umount Partition. sudo umount <device> Set Label using : sudo dosfslabel <device> label. Method 2# using mtools.