Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5151

Troubleshooting • fstab not mounting external HDD when on boot or when drive connected

$
0
0
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 following

Code:

UUID=1ae1f501-6ecc-4f95-998e-a106810f7e4d /mnt/drive1 ext4 defaults,auto,users,rw,nofail,noatime 0 0
On boot this doesn't auto mount.
If I try to

Code:

sudo mount -a
after boot, I get

Code:

 mount: /mnt/drive1: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.
If I turn the drive off and on again, then

Code:

sudo mount -a
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?

Statistics: Posted by TheSuperbacon — Sat Dec 30, 2023 12:02 am



Viewing all articles
Browse latest Browse all 5151

Trending Articles