Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Currently, I have a partition where Crunchbang is installed, which shows up as a folder in Mint named either 0d71227f-66fc-45ac-8bfc-93280b93dc8c or "10.0 GB Volume".

First question is, of course, wtf?

My main question is, however, how do I rename it to something less ridiculous? I tried renaming it as root, and I get the device is busy error.

share|improve this question
    
You can either label the partition or use x-gvfs-name= in /etc/fstab to display the partition under a certain name in the file manager, see here. –  don_crissti Dec 7 at 17:53

2 Answers 2

These names usually do not refer to the partition (which would make sense with LVM / DM only) but to the file system. Every file system (of certain types) has a UUID (0d71227f-66fc-45ac-8bfc-93280b93dc8c) but not everyone has a name. For ext3 and ext4 you can see the volume name with dumpe2fs -h /dev/whatever. You can set it with tune2fs -L.

share|improve this answer
    
... or GParted. The "name" of the partition is called the label. –  ignis May 1 '13 at 16:22
    
@ignis But that is valid for GPT partitions only, not for MBR partitions. –  Hauke Laging May 1 '13 at 22:01
    
No, it's valid for both –  ignis May 2 '13 at 5:38
    
@ignis Can you explain how that is supposed to work? Neither is room in the MBR partition table entries for a label nor do fdisk and sfdisk (apparently) offer you to set such a label. –  Hauke Laging May 2 '13 at 12:10
    
You can edit labels in Gparted, and see them with blkid –  ignis May 2 '13 at 12:26

In order to mount a partition, your file manager (Nautilus, Dolphin, Thunar) exec something like:

blkid /dev/sdaN

in which output appear the UUID "0d71227f-66fc-45ac-8bfc-93280b93dc8c" of that partition, the file manager use that UUID to create a temporal directory where is going to mount the partition. The UUID is unique so each partition will have a different one. Be careful in the N, since represent the partition number, always you can exec fdisk -l to know your partition table.

So to answer your question, you can create a directory like /media/CrunchbangDisk where you can mount manually your partition.

Here an example:

mkdir /media/CrunchbangDisk
mount /dev/sdaN /media/CrunchbangDisk

Also you can specify the partition type with, e.g. -t ext2 to the mount command.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.