How to automount a partition of a USB stick at /media/lubuntu/name every time the stick is plugged into the PC when the /etc/fstab file is empty on every new boot?
I assume this is because I'm running a persistent live lubuntu 22.04 made with mkusb (dus method) and /etc/fstab is not a part of persistence
What I've tried and did not work:
- edit /etc/fstab with
UUID=0123 /media/lubuntu/name ntfs defaults 0 0 - edit ~/.bashrc with
sudo mount -o rw,users,umask=000,exec UUID=0123 /media/lubuntu/name - according to this question, making a custom /etc/fstab in a custom distro and burning that to the stick also won't work, because mkusb makes its own /etc/fstab
What 'kind of' works:
- If I edit the label of the partition to
namethe system automounts it to/media/lubuntu/name1, yet if I do this with a mmc card, it automounts to/media/lubuntu/namewhich I find confusing and would simply like to set this up myself - if there is no label to the partition, the system automounts it to its UUID, a very long number, resulting in many confusing folders at
/media/lubuntu/
Any help appreciated