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

Language:
English Edit question
Status:
Answered
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Last query:
2010-09-17
Last reply:
2010-09-17
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

Linux-Data-Part

or

Linux_Data_Part

...... etc

see url below for more

http://lissot.net/partition/ext2fs/labels.html

and

man mke2fs

command.

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.