0

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:

  1. edit /etc/fstab with UUID=0123 /media/lubuntu/name ntfs defaults 0 0
  2. edit ~/.bashrc with sudo mount -o rw,users,umask=000,exec UUID=0123 /media/lubuntu/name
  3. 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:

  1. If I edit the label of the partition to name the system automounts it to /media/lubuntu/name1, yet if I do this with a mmc card, it automounts to /media/lubuntu/name which I find confusing and would simply like to set this up myself
  2. 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

andrej
  • 59

0 Answers0