Mount external USB drive to RPi4

First off, this should not be an issue. Mounting external drives is a very common task for every OS, this should just work, with the metaphorical simplicity of a right mouse click. I have a 32gb usb stick connected via an external usb hub. I tried connecting it directly to the RPi4, but the system will not boot like this. ‘dmesg’ tells me my usb stick is as /dev/sdb. ‘whoami’, tells me I am ‘root’. Great, therefore when I execute this command,

mount /dev/sdb1 /media/backups

The drive should mount. But no, I get a permission denied error.
There are a number of “try this” answers in the forum, but nothing definitive.
How can I fix this?
Thanks

HA Core: core-2022.4.2
Supervisor: supervisor-2022.04.0

Are you using HAOS? If so, ssh into the OS (rather than a docker container like the ssh & seb terminal addon does) on port 22222 and mount it there.

There are instructions in the dev docs to do this, or try this handy addon 🆕[add-on] HassOS SSH port 22222 Configurator

1 Like