I'm trying to set up a small home server with an RPi 4 and an external HDD (4TB 3.5" in an Orico enclosure). Running on Raspbian Bullseye Lite.
I have fstab set up with the followingOn boot this doesn't auto mount.
If I try to after boot, I getIf I turn the drive off and on again, then the drive mounts successfully. Hurray!
This is serviceable, however I was expecting fstab to auto mount my drive on boot and if the drive is plugged in after boot, and this is obviously not happening. I can work with this, but I'd rather not have to SSH into the server and manually mount the drive if there's ever a power failure!
Any ideas?
I have fstab set up with the following
Code:
UUID=1ae1f501-6ecc-4f95-998e-a106810f7e4d /mnt/drive1 ext4 defaults,auto,users,rw,nofail,noatime 0 0
If I try to
Code:
sudo mount -a
Code:
mount: /mnt/drive1: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.
Code:
sudo mount -a
This is serviceable, however I was expecting fstab to auto mount my drive on boot and if the drive is plugged in after boot, and this is obviously not happening. I can work with this, but I'd rather not have to SSH into the server and manually mount the drive if there's ever a power failure!
Any ideas?
Statistics: Posted by TheSuperbacon — Sat Dec 30, 2023 12:02 am