I'm running arch Linux with i3 window manager and I'm wondering if there's a way to replicate Ubuntu behavior about auto mounting internal partitions and USB. More precisely:
- Mount all partitions and USB to
- Unmount all previously mounted partitions before shutdown or reboot
- For all USB, unmount them when they are ejected and mount them when inserted
I know that for the internal partitions i have to add entry to
/etc/fstab (I tried and I succeeded), but i want something more dynamic.
I tried read something about udev rules, but there's nothing that explains how to accomplish those tasks.