Wed Mar 01, 2017 1:55 pm
Northern Mike wrote:Very simple question.... How do I get the PI to acknowledge when a drive is plugged into a USB port (powered hub)?
Here is the setup to explain my simple question;
- Pi3 running 2 external HDDs (sda and sdb) on a 4 port powered USB hub.
- Portable drive plugged into spare USB (on hub) port in order to copy large amounts of data to existing USB HDD (much faster than over the network when dealing with TB's worth of data).
- Use http/php and eventually gpio buttons to initiate mount, bulk copy and dismount drive.
Currently, even using a command prompt over ssh, fdisk -l is unable to locate /dev/sdc or similar when I connect the drive.
Rebooting the pi with the drive connected is not a option.
What am I missing?
If you're
not using the Pi headless are the auto-detect/auto-mount options enabled in the (GUI) file manager?
If you
are (always) running headless, and can identify the portable drive (or drives) uuid or "label" then, maybe, extra entry/entries in
fstab** is/are what you could use.
Trev.
** Something like my old (pre-automount capability) discussion here:
http://www.cpmspectrepi.uk/raspberry_pi ... ticks.html
(hopefully to be updated with the file manager auto-mount info soon - PiZeroW page has priority at the mo.

)
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm