labels and fstab

Asked by marcus aurelius on 2010-09-17

I'm trying to make an entry in fstab so I can mount a partition. The volume label I've set for the partition is "Linux Data Part".
The entry is

UUID=136c15bf-95d1-4783-8249-c3bd017c7985 /media/ ext4 defaults 0 2

This doesn't seem to work, so I tried

UUID=136c15bf-95d1-4783-8249-c3bd017c7985 /media/Linux Data Part ext4 defaults 0 2

which doesn't work, so I tried

UUID=136c15bf-95d1-4783-8249-c3bd017c7985 /media/"Linux Data Part" ext4 defaults 0 2

which doesn't seem to work again and the subdirectory that was under /media for this device had disappeared.

The catch is, before I added the previous line to fstab, the deviced appeared as /media/Linux Data Part.

I'm wondering if I have to use a label that is a single word.

Question information

English Edit question
Ubuntu util-linux Edit question
No assignee Edit question
Last query:
Last reply:
peter b (b1pete) said : #1

the mount point must be created first then the entry into fstab. keep the mountpoint name simple, avoid strings of multiple words.

after this just reboot and if everything is right the partition should be mounted and displayed on desktop.

marcus aurelius (adbiz) said : #2

Interestingly, it appeared that the mount point existed on the system when I partitioned the drive. That's why I mentioned /media/Linux Data Part disappeared when I put the entry in fstab.

So, if I make a simple name for the mount point, can I still have the volume with a multiword label?

I found this in the Ubuntu doc for fstab:

"Mount points should not have spaces in the names"

I would mount it using a name without spaces /media/Linux_Data_Part
Then you can create a short cut with a sexier name if you want.

peter b (b1pete) said : #4

you can have something like




...... etc

see url below for more


man mke2fs


Hello Marcus, still having this problem? Just wanted to follow your request...

Can you help with this problem?

Provide an answer of your own, or ask marcus aurelius for more information if necessary.

To post a message you must log in.