Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 531  / 2 Years ago, sun, june 26, 2022, 12:37:12

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



/dev/sda1/Folder

More From » fstab

 Answers
3

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*.


[#43834] Monday, June 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fittecanap

Total Points: 322
Total Questions: 100
Total Answers: 105

Location: Israel
Member since Tue, Nov 17, 2020
4 Years ago
;