# Pendrive/SD card file copy

**URL:** <https://discourse.nodered.org/t/pendrive-sd-card-file-copy/32829>\
**Category:** General\
**Created:** [13 September 2020 18:25 UTC](https://discourse.nodered.org/t/pendrive-sd-card-file-copy/32829 "2020-09-13T18:25:05Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![nygma2004](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nygma2004/32/1308_2.png) [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Post date:** [16 September 2020 06:20 UTC](https://discourse.nodered.org/t/pendrive-sd-card-file-copy/32829/21 "2020-09-16T06:20:53Z")

</div>

Damn, such a facepalm. There is a lot of stuff plugged into the PI already, and it is hard to reach the free USB ports, so I used a USB A male to USB A female extender cable. And when I checked the journal, I could see this:

> Sep 16 08:05:50 OpenHAB kernel: usb 1-1.4: new high-speed USB device number 31 using dwc\_otg  
> Sep 16 08:05:50 OpenHAB kernel: usb 1-1.4: New USB device found, idVendor=090c, idProduct=1000  
> Sep 16 08:05:50 OpenHAB kernel: usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3  
> Sep 16 08:05:50 OpenHAB kernel: usb 1-1.4: Product: USB DISK  
> Sep 16 08:05:50 OpenHAB kernel: usb 1-1.4: Manufacturer: SMI Corporation  
> Sep 16 08:05:50 OpenHAB kernel: usb 1-1.4: SerialNumber: AA04012700009117  
> Sep 16 08:05:50 OpenHAB kernel: usb-storage 1-1.4:1.0: USB Mass Storage device detected  
> Sep 16 08:05:50 OpenHAB kernel: scsi host0: usb-storage 1-1.4:1.0  
> Sep 16 08:05:50 OpenHAB systemd-udevd[28283]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4 1 31': No such file or directory  
> Sep 16 08:05:51 OpenHAB kernel: usb 1-1.4: USB disconnect, device number 31

And this section kept repeating. Now I removed this damn extender cable, and now it appears to be working:

> Sep 16 08:13:20 OpenHAB kernel: usb 1-1.4: new high-speed USB device number 88 using dwc\_otg  
> Sep 16 08:13:20 OpenHAB systemd-udevd[29074]: failed to execute '/lib/udev/mtp-probe' 'mtp-probe /sys/devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4 1 88': No such file or directory  
> Sep 16 08:13:20 OpenHAB kernel: usb 1-1.4: New USB device found, idVendor=0781, idProduct=5591  
> Sep 16 08:13:20 OpenHAB kernel: usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3  
> Sep 16 08:13:20 OpenHAB kernel: usb 1-1.4: Product: Ultra USB 3.0  
> Sep 16 08:13:20 OpenHAB kernel: usb 1-1.4: Manufacturer: SanDisk  
> Sep 16 08:13:20 OpenHAB kernel: usb 1-1.4: SerialNumber: 4C531001490423104554  
> Sep 16 08:13:20 OpenHAB kernel: usb-storage 1-1.4:1.0: USB Mass Storage device detected  
> Sep 16 08:13:20 OpenHAB kernel: scsi host0: usb-storage 1-1.4:1.0  
> Sep 16 08:13:22 OpenHAB kernel: scsi 0:0:0:0: Direct-Access SanDisk Ultra USB 3.0 1.00 PQ: 0 ANSI: 6  
> Sep 16 08:13:22 OpenHAB kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0  
> Sep 16 08:13:22 OpenHAB kernel: sd 0:0:0:0: [sda] 121307136 512-byte logical blocks: (62.1 GB/57.8 GiB)  
> Sep 16 08:13:22 OpenHAB kernel: sd 0:0:0:0: [sda] Write Protect is off  
> Sep 16 08:13:22 OpenHAB kernel: sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00  
> Sep 16 08:13:22 OpenHAB kernel: sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA  
> Sep 16 08:13:22 OpenHAB kernel: sda: sda1  
> Sep 16 08:13:22 OpenHAB kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk

Although I don't see this being mounted automatically to any path.

Let me tell you want I am planning to use this for: my dad likes to listen to recorded programmes from the radio on his phone. At the moment, he has an old Samsung phone which still has an FM radio and only uses that to record radio programmes. There are no such services I know of where you can listen to past radio programmes where I live.  
I already have have a working Node-Red flow which can be programmed to record radio programmes (from internet radio source) and save them as mp3 on the PI. This piece I am working on should automatically copy these mp3 files to his phone when it is plugged into the PI. This is why I wanted to see if new USB devices are plugged in. But I realized that mobile phones will not be detected and USB mass storage devices immediately. Currently he has a Huawei Pxx phone. He is \>80 so I need a solution that is plug and play.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 September 2020 07:25 UTC](https://discourse.nodered.org/t/pendrive-sd-card-file-copy/32829/22 "2020-09-16T07:25:35Z")

</div>

> [@nygma2004](#):
>
> Although I don't see this being mounted automatically to any path.

That might be because you aren't using standard Raspbian (at least that is what I deduce from the log). That might also be a factor in what was causing the SEGV error with the faulty cable. Even with a faulty cable `usb-detection` should not crash, assuming that is what was happening.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 November 2020 07:25 UTC](https://discourse.nodered.org/t/pendrive-sd-card-file-copy/32829/23 "2020-11-15T07:25:40Z")

</div>

Closed on 15 November 2020 07:25 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/pendrive-sd-card-file-copy/32829.md?page=1)
