Download and install "Raspberry Pi Imager" from https://www.raspberrypi.org/software/
Choose "Raspberry PI OS Lite 32" Press Ctrl+Shift+X
-
Maybe switch to save always
-
Change hostname
-
Activate ssh, copy your public key into the text field
-
Activate WiFI, choose SSID and password, choose country
-
Change timezone and keyboard layout
Choose SD-Card and flash
sudo apt install git debhelper build-essential ntfs-3g
cd /tmp
git clone https://github.com/rbrito/usbmount.git
cd usbmount
dpkg-buildpackage -us -uc -b
cd ..
sudo apt install ./usbmount_0.0.24_all.deb
sudo nano /etc/usbmount/usbmount.conf
and change these keys to:
FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus ntfs fuseblk"
VERBOSE=yes
Create file:
sudo mkdir /etc/systemd/system/systemd-udevd.service.d
sudo nano -w /etc/systemd/system/systemd-udevd.service.d/00-my-custom-mountflags.conf
and add content:
[Service]
PrivateMounts=no
restart udev (or reboot instead):
sudo systemctl daemon-reexec
sudo service systemd-udevd restart
tail -f /var/log/syslog