I have a USB flash drive which is plugged into a USB port on a B+. On startup I'm running:
sudo mount -o uid=pi,gid=pi,rw /dev/sda1 /mnt/usb
Sometimes it works, but it's intermittent. The times it doesn't work the Pi doesn't seem to acknowledge the drive is even there, i.e. there is no
/dev/sda1, or any
sda devices in the
Could it be that the Pi isn't powering the device properly? It should be getting enough power, and the USB wifi adapter is working perfectly every time. There are no other USB devices and it has a power supply capable of 3A.
If I unplug the device and plug it back in, it is then recognised.
So my question(s)
- Is there a way to force the device to be recognised on startup?
- Is there a way to simulate unplugging and plugging the device in?