Kubuntu: Give partition permanent name
I Google'd this, and found out that fstab has to be edited to make this change.
Here is my current fstab: Code:
# /etc/fstab: static file system information. Code:
LABEL=Webserver /wwwdata ext4 defaults Carver |
Hi L_Carver,
I would just use the e2label command to permanently assign a label to an ext4 filesystem partition. I wouldn't make any changes to fstab, which is dynamically read at each boot. So for you, as root (or using sudo), if I understand your intentions correctly, you would execute this command : Code:
e2label /dev/sda6 MintInstall Code:
e2label /dev/sda6 |
The partition I'd like to rename is at /dev/sda1, so the command I would use is
Code:
e2label /dev/sda1 MintInstall Carver |
Quote:
Code:
Usage: e2label device [newlabel] It should be permanent after restart. |
Quote:
I see jsbjsb001 has answered your questions pursuant to my previous post, so you're good there. One detail, however: what you are calling your previous "label" is actually a UUID - a permanent identifier given to the partition at creation. It will continue to coexist with the label you will be assigning ("MintInstall", for instance). Think of the label as a nickname for the partition. Cheers - let us know if anything else. |
Quote:
It should be mentioned that if you are using GPT formatting then you have the additional option of using GPT partition names instead of extn file system labels. You would set a partition name with cgdisk (best interface) or gdisk and then use PARTLABEL in your fstab. The ArchWiki fstab page explains this well. https://wiki.archlinux.org/index.php/fstab#GPT_labels |
Bookmarks don't "survive" reboots
I used the e2label procedure, but I'm having trouble with bookmarks in Nemo. I use Nemo because it still shows metadata for graphic image files in its Properties windows (which for some odd reason Dolphin doesn't in my install, even with Baloo running). When I make a bookmark for a subfolder on mintinstall in Nemo, and restart, it loses the path and gives me an error message that it can't find the directory.
I guess I should use the fstab method to prevent this from happening. Am I right? Carver |
Quote:
You would like to create a bookmark to a particular(s) folder(s). So, you would need to make sure the folder(s) that you would like to "bookmark", exist in the file system first. /etc/fstab is the file Linux looks at when it starts, to determine which file systems should be mounted at system start-up. This file is only for mounting file systems at system start-up. This file is also the same in all Linux distro's, as well as UNIX distro's. |
Quote:
I hope I'm explaining it better this time around. Carver |
The UUID is just a way of identifying the hardware: it refers to a specific HD, rather than to just any HD that happens to be there, as /dev/sda would. Once the disk is mounted, all normal operations will refer to it by mount point.
The same applied to a label for a HD or partition. It's just a label for the hardware, not for the directory that it's mounted on. I don't know Nemo, but I think it will expect a filing system name for a bookmark, and will only use a disk label when it specifically has to identify a device. |
Tried making a change in gparted/kparted...
I've just applied "mintinstall" as the "mount name" in gparted and its KDE counterpart (is it still called kparted?). I haven't tried bookmarking folders on mintinstall in Nemo, but I'm presuming that when I do, they'll survive a reboot without becoming invalid. I'm also wary of having mintinstall (which is at /dev/sda1) not mount at all.
What difference/s would these changes make the next time I reboot? Carver |
All times are GMT -5. The time now is 08:08 AM. |