How to change drive's name?
Command Line:
-
To change the labels of drives use one of these commands:
sudo e2label /dev/sdc6 Data
OR
sudo sudo tune2fs -L Data /dev/sdc6
Replace
/dev/sdc6
with the specific drive you want to label andData
with the desired label.Use
sudo fdisk -l
to find drive names.
GUI:
-
If you prefer GUI option than you can use
Gparted
.To install Gparted hit Alt+Ctrl+T to open terminal and run following command:
sudo apt-get install gparted
Once installed hit Alt+F2, type
gparted
and hit Enter or search forgparted
in Unity Dash and run it from there.Make sure the drive you want to label is unmounted, if it's mounted you can unmount it in Gparted, right click on the drive and select unmount.
To label a drive right click on the drive you want to label and select
Label
, enter the desired label.Click on the apply button in toolbar. That's it!
How to hide "SYSTEM" partition in Nautilus:
Create a file:
99-hide-some-disks.rules
-
Insert the following line to the file:
KERNEL=="device name", ENV{UDISKS_PRESENTATION_HIDE}="1",
Where device name is
sdaX
orhdX
Copy the file to
/etc/udev/rules.d
-
Reboot computer, now the drive from a file is invisible (you can still mount it by hand only).
Source: Thanks to Benjamin
Related videos on Youtube
Benjamin
Updated on September 18, 2022Comments
-
Benjamin over 1 year
Possible Duplicate:
how can i give other drives and partitions short, meaningful names (in nautilus)?I've got two Windows drives next to the Ubuntu drive, they are called
XXXGB Filesystem
, where XXX is a size (80 and 329). How can I change their names toWindows
andData
. I don't care, they are called strangely in/media
folder, although it would be nice to know where can I change it too and how may I disable to show asystem drive
, that shouldn't be visible at all.How it is now:
How it should look like:
-
Benjamin almost 12 yearsFrom what I've found out, I have to edit /etc/fstab to change the name of the files in /media/ directory (by editing file or by using pysdm gui application). So it may be a solution of an additional part, but changing partitions name in Windows isn't an option for me so far. And disabling SYSTEM partition from mounting isn't solved yet, so please, if you know any other solution, let me know.
-
Benjamin almost 12 yearsUnfortunately, I suppose, changing partition name is the only option, it must be enough :) Could you add this to the answer, to be complete, cause I found out, how to hide "SYSTEM" partition in Nautilus: 1. Create a file: 99-hide-some-disks.rules 2. Insert the following line to the file: KERNEL=="device name", ENV{UDISKS_PRESENTATION_HIDE}="1", where device name is sdaX or hdX 3. Copy the file to /etc/udev/rules.d 4. Reboot computer, now the drive from a file is invisible (you can still mount it by hand only) Thank you.
-
mrgloom about 7 years
alt+f2 and find gparted
not work for me, instead I usesudo gparted
from console. -
Sridhar Sarnobat almost 7 yearsNote: if you don't unmount the disk first,
e2label
will not change the label (and won't even report an error, which is confusing). -
loved.by.Jesus almost 5 years@SridharSarnobat
e2label
worked flawlessly. I renamed label with mounted drive. -
Kvothe almost 4 yearsBoth solutions fail for my exfat partition. Gparted does not support it apparently and e2label also complaints (Bad magic number in super-block while trying to open ... ... contains a exfat file system labelled ...) Any solution for exfat formatting?