Page 1 of 1

how to connect a usb memory stick

Posted: Tue Jan 05, 2016 2:01 am
by buzzersdad
I'm trying to get Raspbian to recognize a USB memory stick. Simonsmall wrote recently:
*****************
First issue this command -
pi@raspberrypi ~ $ ls -laF /dev/disk/by-uuid/
total 0
drwxr-xr-x 2 root root 120 Jan 1 1970 ./
drwxr-xr-x 6 root root 120 Jan 1 1970 ../
lrwxrwxrwx 1 root root 15 Jan 1 1970 1A8A-8E1C -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 15 Jun 21 17:53 1B97-0057 -> ../../mmcblk0p5
lrwxrwxrwx 1 root root 15 Jun 21 17:53 53990179-b4d2-8e98-1c7d-a23b681c0419 -> ../../mmcblk0p6
lrwxrwxrwx 1 root root 15 Jan 1 1970 c37891bd-e98a-97e2-81cd-b3c78d7c93b5 -> ../../mmcblk0p3
pi@raspberrypi ~ $

This shows the "devices" that the hardware knows about, in this case the parts of the SD Card that NOOBS created.

Now, plug in the thumb drive into a USB socket. Type the same thing again.

pi@raspberrypi ~ $ ls -laF /dev/disk/by-uuid/
total 0
drwxr-xr-x 2 root root 120 Jan 1 1970 ./
drwxr-xr-x 6 root root 120 Jan 1 1970 ../
lrwxrwxrwx 1 root root 15 Jan 1 1970 1A8A-8E1C -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 15 Jun 21 17:53 1B97-0057 -> ../../mmcblk0p5
lrwxrwxrwx 1 root root 10 Jun 17 11:36 38C1-D07C -> ../../sda1
lrwxrwxrwx 1 root root 15 Jun 21 17:53 53990179-b4d2-8e98-1c7d-a23b681c0419 -> ../../mmcblk0p6
lrwxrwxrwx 1 root root 15 Jan 1 1970 c37891bd-e98a-97e2-81cd-b3c78d7c93b5 -> ../../mmcblk0p3
pi@raspberrypi ~ $

There is a 'new' line that shows what the thumb drive has been called, in this case "sda1")
****************
Trouble is, in my case there is no new line with sda1 or anything else. The output is identical both times. What is wrong? I have files on the memory stick I want to use on the Pi (tar files). How do I get Raspbian to "see" the memory stick so I can hook it into the file structure? (Yes, I'm a complete newbie...)

Re: how to connect a usb memory stick

Posted: Tue Jan 05, 2016 8:10 am
by rpdom
buzzersdad wrote:I'm trying to get Raspbian to recognize a USB memory stick.
****************
Trouble is, in my case there is no new line with sda1 or anything else. The output is identical both times. What is wrong? I have files on the memory stick I want to use on the Pi (tar files). How do I get Raspbian to "see" the memory stick so I can hook it into the file structure? (Yes, I'm a complete newbie...)
This looks like a problem with your memory stick. You should really start a new thread for that [edit]That's been fixed. Ta.[/edit]

However, try this to see if your stick is even recognised:

1. Plug in your stick.
2. Wait about 5 seconds
3. Type: "dmesg | tail -20l"
4. Post the output.

You should see something like:

Code: Select all

pi@raspi3 ~ $ dmesg | tail -20l
[   15.967360] random: nonblocking pool is initialized
[   16.840559] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[   23.985753] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:102400k SSFS
[   29.416539] uart-pl011 3f201000.uart: no DMA platform data
[61157.959164] usb 1-1.4: new high-speed USB device number 4 using dwc_otg
[61158.142206] usb 1-1.4: New USB device found, idVendor=0781, idProduct=5572
[61158.207926] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[61158.276656] usb 1-1.4: Product: Cruzer Switch
[61158.314690] usb 1-1.4: Manufacturer: SanDisk
[61158.352383] usb 1-1.4: SerialNumber: 4C530012000622118254
[61158.409615] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[61158.473610] scsi host0: usb-storage 1-1.4:1.0
[61159.510380] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Switch    1.27 PQ: 0 ANSI: 6
[61159.587754] sd 0:0:0:0: [sda] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[61159.663672] sd 0:0:0:0: [sda] Write Protect is off
[61159.706528] sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
[61159.707035] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[61159.711134] sd 0:0:0:0: Attached scsi generic sg0 type 0
[61159.860408]  sda: sda1
[61159.890814] sd 0:0:0:0: [sda] Attached SCSI removable disk
Ignore the first few lines. It's the bit from "new high-speed USB device" onwards that are important.

Re: Missing most of tools in NOOBS installed on Pi2?

Posted: Tue Jan 05, 2016 8:13 am
by Navyscourge
It is a pity that you did not read the last post on that thread - it is from back in June, and there was a problem where two people were asking different questions and everyone got confused.

It would help us a lot if you could copy your post into a new thread, then post a link to that thread in this one. That will make the answers you get a lot clearer.

Re: Missing most of tools in NOOBS installed on Pi2?

Posted: Tue Jan 05, 2016 8:27 am
by texy
Navyscourge wrote:It is a pity that you did not read the last post on that thread - it is from back in June, and there was a problem where two people were asking different questions and everyone got confused.

It would help us a lot if you could copy your post into a new thread, then post a link to that thread in this one. That will make the answers you get a lot clearer.
Done.
Texy