Can we bind folders with their directories described with the drive names? For example:
/dev/sda1/Folder
Can we bind folders with their directories described with the drive names? For example:
/dev/sda1/Folder
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*
.