Joaogl
Posts: 16
Joined: Mon Jun 17, 2013 11:18 pm

Drivers problems

Sat Jun 29, 2013 12:37 am

Hello, maybe someone can help me here...

http://www.linuxforums.org/forum/arch-l ... tions.html

User avatar
rpdom
Posts: 16388
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: USB Hard Drive problem

Sat Jun 29, 2013 6:27 am

It would help if you gave a short description of what your problem is, so people don't have to follow your link and read through 3 pages of questions and answers.

In short: You have an external USB disk that you would like to create partitions on, but it doesn't seem to be recognised. fdisk -l doesn't show it and (from what I read when I skimmed those replies) it doesn't show up in 'dmesg'.

What does the output of "lsusb" show when the drive is plugged in? (I think you said you are using Arch. I hope that has the 'lsusb' command)

Does the drive have its own power supply?

Joaogl
Posts: 16
Joined: Mon Jun 17, 2013 11:18 pm

Re: Drivers problems

Sat Jun 29, 2013 8:28 am

I posted the link to avoid multiple questions but anyway I can awnser them all again :D

yes running arch yes it shows up on the dmesg:

Code: Select all

[    3.612831] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
[    3.725631] usb 1-1.3: New USB device found, idVendor=0bc2, idProduct=2312
[    3.738944] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.752531] usb 1-1.3: Product: Expansion
[    3.762718] usb 1-1.3: Manufacturer: Seagate
[    3.773296] usb 1-1.3: SerialNumber: NA45EADM
[    3.786793] scsi0 : usb-storage 1-1.3:1.0
[    4.793955] scsi 0:0:0:0: Direct-Access     Seagate  Expansion        0219 PQ: 0 ANSI: 6
the lsusb output is:

Code: Select all

[email protected]:~# lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
No it doesnt have is own power supply but since it appears on the dmesg I think there ill be no problem...

User avatar
joan
Posts: 14762
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Drivers problems

Sat Jun 29, 2013 8:34 am

With the drive plugged in what does

ls /dev/sd*

report.

User avatar
rpdom
Posts: 16388
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Drivers problems

Sat Jun 29, 2013 10:01 am

I would expect a number of lines mentioning "[sda]" following that dmesg output.

Also, I can't see it on the lsusb output???

It looks like the device is recognised, but the disk isn't responding. Hence my question about power. The Pi can't provide much power from the USB and it is unlikely that it would provide enough current to start a hard disk spinning (Yes, I know that some people have been lucky and have managed it). The dmesg output is similar to what I get when I forget to switch on my external disk before connecting it to the Pi - the USB disk controller starts, but it can't access the disk so doesn't report one.

A powered hub might help.
[edit]I apologise if you are already using a powered hub. I just assumed that you were plugging the USB straight into the Pi.

Joaogl
Posts: 16
Joined: Mon Jun 17, 2013 11:18 pm

Re: Drivers problems

Sat Jun 29, 2013 11:50 am

dmesg from the first usb message to the end:

Code: Select all

[    3.652800] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
[    3.766104] usb 1-1.3: New USB device found, idVendor=0bc2, idProduct=2312
[    3.779424] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.793002] usb 1-1.3: Product: Expansion
[    3.803669] usb 1-1.3: Manufacturer: Seagate
[    3.815682] usb 1-1.3: SerialNumber: NA45EADM
[    3.829268] scsi0 : usb-storage 1-1.3:1.0
[    4.833835] scsi 0:0:0:0: Direct-Access     Seagate  Expansion        0219 PQ: 0 ANSI: 6
[    6.226037] EXT4-fs (mmcblk0p2): recovery complete
[    6.334260] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    6.348945] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    6.364383] devtmpfs: mounted
[   25.825219] sd 0:0:0:0: [sda] Spinning up disk...
[   30.545062] usb 1-1.3: USB disconnect, device number 5
[   31.342502] .ready
[   31.351627] sd 0:0:0:0: [sda] READ CAPACITY failed
[   31.362821] sd 0:0:0:0: [sda]
[   31.372299] Result: hostbyte=0x01 driverbyte=0x00
[   31.383290] sd 0:0:0:0: [sda] Sense not available.
[   31.394790] sd 0:0:0:0: [sda] Write Protect is on
[   31.405928] sd 0:0:0:0: [sda] Mode Sense: c0 c0 c0 c0
[   31.406165] sd 0:0:0:0: [sda] No Caching mode page present
[   31.417976] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   31.431639] sd 0:0:0:0: [sda] READ CAPACITY failed
[   31.442936] sd 0:0:0:0: [sda]
[   31.452202] Result: hostbyte=0x01 driverbyte=0x00
[   31.463061] sd 0:0:0:0: [sda] Sense not available.
[   31.474359] sd 0:0:0:0: [sda] No Caching mode page present
[   31.486028] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   31.498299] sd 0:0:0:0: [sda] Attached SCSI disk
[   31.510153] Freeing init memory: 128K
[   32.765015] udevd[160]: starting version 175
[   33.977171] Registered led device: led0
[   39.298765] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   48.783348] smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[  104.539635] usb 1-1.2: USB disconnect, device number 4
all the lsusb:

Code: Select all

[email protected]:~# lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
[email protected]:~#
Ls:

Code: Select all

[email protected]:~# ls /dev/sd*
ls: cannot access /dev/sd*: No such file or directory
[email protected]:~#
about the powerhub... I've no idea of what is that... I've been searching and till now I cant find it here in portugal but ill keep searching btw is there any thing saying how much power does the pi give to the usb?

Joaogl
Posts: 16
Joined: Mon Jun 17, 2013 11:18 pm

Re: Drivers problems

Sat Jun 29, 2013 11:56 am

Hey! I think I just got something ! witch is wierd...
I've unplugged the HD and plugged in one "equal" but with 1T and by typing ls /dev/sd* it shows this:

Code: Select all

[email protected]:~# ls /dev/sd*
/dev/sda  /dev/sda1
[email protected]:~#

Joaogl
Posts: 16
Joined: Mon Jun 17, 2013 11:18 pm

Re: Drivers problems

Sat Jun 29, 2013 11:59 am

What should I do to set this disk to work? without losing the data thats on it?

User avatar
rpdom
Posts: 16388
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Drivers problems

Sat Jun 29, 2013 12:14 pm

It certainly does look like a power problem. The designed power output from each USB socket on the Pi is 100mA. The original design had 140mA fuses on each port, but they have been removed now. The restriction is because of the main fuse F3, which will start to fail at around 700mA and stop working at over 1000mA. The Pi can take 500mA, leaving 200 for USB and GPIO.

There is a list of good powered USB hubs here http://elinux.org/RPi_VerifiedPeriphera ... d_USB_Hubs and I'm sure that some of those will be available in Portugal.

The data on your disk should be safe. If the disk didn't start up then it won't have tried to write anything, and disks can be more reliable than SD cards :)
I've unplugged the HD and plugged in one "equal" but with 1T and by typing ls /dev/sd* it shows this:
I'm thinking the other disk you tried might use less current and has managed to start up. Some disks do, even ones that seem the same. Some newer disks (I guess the 1TB is newer than the 500MB) can use less power as they try to be "green".

Joaogl
Posts: 16
Joined: Mon Jun 17, 2013 11:18 pm

Re: Drivers problems

Sat Jun 29, 2013 12:24 pm

now how can I set this to work? as I sad without losing my data?
by set this to work is how to acess the folders? it as 500G of data already on it(its the disk from other pc :D)

Return to “Beginners”