Is it a good idea to use ext4 on a USB stick for a RPI4 as occasional storage?
Using gparted I went ahead and partitioned and formatted the USB stick accordingly.
Mounting via fstab I found 'somewhere' a line that was supposed to be 'good' for USB stick. (maybe as a side question someone can explain the intricacies of this line to me). Turns out this line mounts the USB stick nicely. But access is limited to root, only.
Code: Select all
# For HP 128G ext4 formatted USB Flash stick with options to minimize flash wear & use as samba share.
UUID=ad80c51e-a88c-417d-9333-bb08fef294b4 /media/usbstick ext4 noatime,nodiratime,errors=remount-ro 0 0
...
gottsch@rpi4b:/media/usbstick $ touch me_user
touch: cannot touch 'me_user': Permission denied
gottsch@rpi4b:/media/usbstick $ sudo touch root
gottsch@rpi4b:/media/usbstick $ ls -lrt
total 16
drwx------ 2 root root 16384 Oct 6 18:05 lost+found
-rw-r--r-- 1 root root 0 Oct 6 18:34 root
Code: Select all
# Ntfs 5T external USB disk (Seagate) with options to become samba share
UUID=F02E77D02E778E7A /media/usbdisk5t ntfs-3g auto,user,exec,rw,nofail,uid=1001,gid=1001 0 0
Code: Select all
# For HP 128G ext4 formatted USB Flash stick with options to minimize flash wear & use as samba share.
UUID=ad80c51e-a88c-417d-9333-bb08fef294b4 /media/usbstick ext4 noatime,nodiratime,uid=1001,gid=1001,errors=remount-ro 0 0
...
mount /dev/sdb1
mount: /media/usbstick: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
Cheers,
Gert