Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can we bind folders with their directories described with the drive names? For example:

share|improve this question
Why on earth would you want to do that? – Jo-Erlend Schinstad Aug 16 '11 at 17:26
@jo-erlend, in a particular case, mounting a partition with either UUID or label failed. The partition is one the same device as /, so it is mounted automatically. If /dev/sd* works, then I don't need to make a mount entry for it in fstab. – Oxwivi Aug 16 '11 at 17:42
up vote 1 down vote accepted

No, you can't do that. /dev/sd* are devices. But you can always mount your partition automatically by placing a line like this one below in your fstab and using its /dev/sd* name:

/dev/sda4    /media/sda4    [... options ...]

And referring to your reply to jo-erlend:

"in a particular case, mounting a partition with either UUID or label failed. The partition is one the same device as /, so it is mounted automatically."

I assume that you meant 'The partition is on the same device ...', right? It is not mounted automatically. '/' is mounted because it has its own line in fstab file.

uuid files (located in /dev/disk/by-uuid/) are just links to their associated /dev/sd* files. So it is very much likely that if mount fails with uuid, so it will using /dev/sd*.

share|improve this answer
You are right, I meant that the partition is automatically mounted because it's on the same device as /. But if the mount by fstab is failing, what do you suggest I do? UUID is out of the question anyway, because the operating system is on a USB, and it changes if I plug it into other PCs. – Oxwivi Aug 17 '11 at 8:03
Can you tell us why is it failing? Any error messages or something? If the OS is on a USB, then the USB itself will be /dev/sda, and its partitions are /dev/sda#. If I get it right, you want to automatically mount a partition that is on this USB. Just add a line for it in the fstab. If you tell me its /dev/sd# name and filesystem type, I can write this line for you. – martianboy Aug 17 '11 at 8:54
This is what I used to bypass UUID's potential inconsistency: LABEL=”NTFS” /media/NTFS ntfs defaults 0 0 – Oxwivi Aug 17 '11 at 9:39
Of course I labelled it as such before making the fstab entry. The error message was shown under neath the four dots loading image of Ubuntu and said the folders to be bound were not found. – Oxwivi Aug 17 '11 at 9:41
Why don't you use /dev/sd# instead of LABEL="NTFS"? – martianboy Aug 17 '11 at 10:57

No. /dev/sda1 is a partition. The partition contains a filesystem which you'll mount. But you can mount them anywhere you like. Nothing really wrong if you want to use /partitions/sda1 instead of /media/hollidays-2011 for instance, but I don't understand why you'd want to.

share|improve this answer
Also, if not under /media it will not show on desktop. – enzotib Aug 16 '11 at 17:44
See the reply to your comment. – Oxwivi Aug 16 '11 at 17:45
You always have to mount the filesystem, but you don't have to use an UUID if you don't want to. You can use the device name in /etc/fstab or using the mount command. – Jo-Erlend Schinstad Aug 16 '11 at 18:26

Your Answer


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.