-1
rated 0 times
[
-1]
[
0]
/ answers: 1 / hits: 6217
/ 2 Years ago, thu, march 10, 2022, 12:17:33
I would like to have my home Ubuntu server automount USB devices.
Currently, I mannually write
sudo mount /dev/sda1 /media/library
However, I tried to write an Upstart script, start-library.conf in /etc/init, but that did not work. Am I doing something wrong? The contents of that file are:
exec sudo mount /dev/sda1 /media/library
I experimented with stanzas as well, such as
script
sudo mount /dev/sda1 /media/library
end script
But that did not work either.
Am I missing something in the Upstart template? Or does it just not work because those usb devices haven't loaded yet at the time this script exectutes? Can I do something about that? specify the runlevel? If so, which one? Etc. Idk.
More From » usb