Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1839  / 2 Years ago, tue, january 4, 2022, 2:32:23

When I plug in my USB hard drive that is formatted with an ext4 partition, the drive is mounted as expected, but at a path that contains the long UUID of the disk; something like:



/media/a1f2e5f6-a9bc-dd2a-c2c9-1f48c39b39ee


Is there a way to automount the drive at a path that is shorter and more snappy? e.g.



/media/my_external_hd

More From » 12.04

 Answers
7

Give the filesystem on your disk a label with the e2label command. For example: if your filesystem is on /dev/hdc1, run sudo e2label /dev/hdc1 my_external_hd. I think you may need to unmount the filesystem with sudo umount /media/a1f2e5f6-a9bc-dd2a-c2c9-1f48c39b39ee before this will work.



To find out what device your mounted filesystem is on, the command mount will give you a list.


[#36274] Thursday, January 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hirtieve

Total Points: 207
Total Questions: 104
Total Answers: 114

Location: Cook Islands
Member since Thu, May 21, 2020
4 Years ago
;