I'm trying to mount an external USB SSD in RPi Zero-W in Raspbian, no desktop mode, with fstab, and seems that it unmounts immediately.
EDIT: I found this bug (which is still unfixed), and see that
systemctl daemon-reload after a reboot fixes this (until the next reboot).
The partition was formatted on an Ubuntu machine and owned by its main user (I don't know how to see the files owner id raw number). If I plug it in that Ubuntu machine or in Raspbian Desktop version, it works normally, showing files in it, writing and reading correctly.
What blkid outputs:
# blkid ... /dev/sda1: UUID="08f443b0-4b84..." TYPE="ext4" PARTLABEL="all" PARTUUID="03ecea80-ce56-..."
I'm sure I used the correct UUID (the partition one, on the right, 03ecea80), because otherwise, if I use
moutn -av shows nothing (it does not see the partition with such UUID, I guess).
PARTUUID=03ecea80-... /mnt/adata ext4 auto,user,rw,nofail 0 0
# mount -av ... : already mounted ... /mnt/adata : successfully mounted
/mnt/adata is empty, and
df -aTh shows nothing in
# journalctl -b | tail -n 10 11:05:08 raspberry pi kernel: EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) 11:05:08 raspberry pi systemd: mnt-adata.mount: Unit is bound to inactive unit dev-disk-by\x2dpartuuid-08f443b0... Stopping, too. 11:05:08 raspberry pi systemd: Unmounting /mnt/adata... 11:05:08 raspberry pi systemd: mnt-adata.mount: Succeeded. 11:05:09 raspberry pi systemd: /mnt/adata.mount: Succeeded. 11:05:09 raspberry pi systemd: Unmounted /mnt/adata.