User avatar
RaTTuS
Posts: 10377
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

the best Hard Disk for the RPi

Fri Jul 06, 2012 2:43 pm

1st get yourself
http://www.amazon.co.uk/gp/product/B007HMDB4Q or similar
all you need it for is the USB to Sata adapter + leads
2nd
http://www.suntekstore.co.uk/product-10 ... c_ssd.html
3rd
http://www.amazon.co.uk/gp/product/B003DVC7N6
this is to
a) power the RPi and the Hard disk and any peripherals you need

make the SD card boot the kernel off the SSD card power everything from the HUB and use the spare ports to extend your usb connections.
if the power supply from the hub is not good enough get a 3A one [the one I was supplied with was a decent 2A one and has worked fine so far [even powering 2RPis and assorted stuff]
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

JeremyF
Posts: 515
Joined: Wed Jan 25, 2012 9:06 pm
Contact: Website

Re: the best Hard Disk for the RPi

Fri Jul 06, 2012 2:55 pm

{sig} Setup: Original version Raspberry Pi (B, rev1, 256MB), Dell 2001FP monitor (1600x1200), 8GB Class 4 SD Card with Raspbian and XBMC, DD-WRT wireless bridge

User avatar
RaTTuS
Posts: 10377
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: the best Hard Disk for the RPi

Fri Jul 06, 2012 3:01 pm

usb flash drive are a lot slower at random access than you may like [seriously]
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

JonB
Posts: 220
Joined: Tue Nov 29, 2011 9:26 pm

Re: the best Hard Disk for the RPi

Fri Jul 06, 2012 9:07 pm

Rat mate, what about the transfer speed? And that hub is junk (I sent mine back it was so badly made)

Other than that, I'm liking the SSD... What's the boot time like on Debian?

User avatar
RaTTuS
Posts: 10377
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: the best Hard Disk for the RPi

Sat Jul 07, 2012 8:46 am

I haven't got it yet ... it's winging it's way from hong kong now....
what speeds test do you want me to do
it wont be much more better than the hd I already have attached.
but will be quieter

[back monday]
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

SuvwI
Posts: 6
Joined: Mon Jul 02, 2012 9:14 am

Re: the best Hard Disk for the RPi

Sat Jul 14, 2012 2:12 pm

Hi,
I got the USB Port http://www.amazon.co.uk/gp/product/B003DVC7N6 to run my Wireless Keyboard & Mouse Combo as it seemed to crash the Pi when plugged straight into it!
Suppling the Pi with power from this device is also a No No as it boots for 2~3 secs then fails and starts again.

I also wanted to use a spare USB Wifi adaptor that I had + my 500Gb Medion USB HDD.

If I just have the hub plugged into the Pi with the Keyboard/mouse it works fine. If I plug ANY of the other devices the keyboard & Mouse stop working

Is this just power issues or something else?

SuvwI

User avatar
RaTTuS
Posts: 10377
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: the best Hard Disk for the RPi

Mon Jul 16, 2012 9:02 am

I have 2 of these and use both to power RPi's

one has the lead from the RPi to the USB hub [type B socket] with the red wire cut so it does not back power the RPi the other does not have it cut ,
both have a 2.5" drive attached to it as well as a usb to Micro USB adpater to power the RPi, then keyboard & mouse .
the supplied PSU on both of mine is marked as 2A.

one thing to try is
boot it with just the power to the RPi and a keyboard
then
sudo tail -f /var/log/syslog
and plug in the rest to see what is said - there should be no errors.
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

SuvwI
Posts: 6
Joined: Mon Jul 02, 2012 9:14 am

Re: the best Hard Disk for the RPi

Sun Jul 29, 2012 4:34 pm

Hi
Thanks for the reply.
I tried
sudo tail -f /var/log/syslog&
and re-insert the usb device

and then plugged in the devices there were no errors as the devices were installed however as previously both the mouse and keyboard stopped working.
I also noticed that the time stops and the proceesor is maxed out!
after 10mins it still hadn't recovered

I have had some success with USB memory sticks but still no wireless :-(

User avatar
RaTTuS
Posts: 10377
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: the best Hard Disk for the RPi

Tue Jul 31, 2012 10:24 am

SuveI
best make a new thread about it with as much detail as you can provide.
...
now back to the thread in point
I've got my SSD and have a RPi running off it -

Code: Select all

 sudo hdparm -Tt /dev/sda
/dev/sda:
 Timing cached reads:   274 MB in  2.00 seconds = 136.68 MB/sec
 Timing buffered disk reads:  68 MB in  3.12 seconds =  21.79 MB/sec
I cannot get it to boot via that HD adapter it just hangs , waiting for the device to come online -
the HD adapter works OK - as I can plug in HD from it after it has booted and it works
I have another powered 3.5" external HD adapter which I'm using to power
a) a USB hub
b) the RPi
c) the HD

I'ved copied the image from the HD to the SDD and I can swap the devices so I boot from either HD no problem , and see the drive in the other device, I just cannot boot with either device plugged into the cheaper option.

I'm going to investigate a bit more when I have more free time.
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
RaTTuS
Posts: 10377
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: the best Hard Disk for the RPi

Tue Jul 31, 2012 12:01 pm

http://paste.debian.net/181313/
I have 2 Hard disk attached
one via an external 3.5" Sata -> usb adapter [with a 1.8" 64Gb SSD]
one via an enternal 2.5" sata -> usb adapter [with a 2.5" hitachi 120Gb HD ]
the system is set to boot the rootfs from /dev/sda1

I power the RPi from a usb hub which also supplies the additional ports [this hub has had the red wire cut to stop back powering the RPI]

if I pull the usb lead from the good* usb adapter then the system boots to
line 187 in the above pastebin

[the
usb 1-1.2.3: reset low speed USB device number 6 using dwc_otg
is the keyboard device - it's a bit poo but works]

and the system stays like that until I plug in the usb - > sata adapter
line 192 of the pastebin

then it all boots and both drives can be seen....

has anyone got any ideas about why it does not boot off the cheep usb -> satat adater ?
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: the best Hard Disk for the RPi

Tue Jul 31, 2012 4:00 pm

RaTTuS wrote:has anyone got any ideas about why it does not boot off the cheep usb -> satat adater ?
Probably because it's too cheap? ;-)

This line in your log caught my eye "usbcore: registered new interface driver ums-cypress" and searching for "ums-cypress" found this, which is interesting https://bugzilla.redhat.com/show_bug.cgi?id=524998

I don't understand all of that bugzilla report, but what I'm guessing is happening is that the "cheapo USB cypress" kernel module isn't compiled into the kernel, so the kernel can't talk to the drive. However the driver for your "working" USB-SATA bridge is included in the kernel, so after plugging it in the kernel can now mount a rootfs and continue booting, at which point it can load kernel modules from disk, so it's then able to load the ums-cypress driver and mount your cheap drive.

So if that guesswork is correct, a fix for your problem might to be to compile your own kernel with the ums-cypress driver built in :ugeek:

(I think UMS = USB Mass Storage)

User avatar
RaTTuS
Posts: 10377
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: the best Hard Disk for the RPi

Wed Aug 01, 2012 9:40 am

ooh nice catch - let me try this
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
RaTTuS
Posts: 10377
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: the best Hard Disk for the RPi

Wed Aug 01, 2012 3:59 pm

AndrewS .. up vote by a load....
right from a slight error I made - ended up trashing my /boot
but I managed to recover using another PI image and a bit of magic
...
rebuilt the kernel with
CONFIG_USB_STORAGE_CYPRESS_ATACB=y
instead of
CONFIG_USB_STORAGE_CYPRESS_ATACB=m

and it will now boot via the offending controller.
\o/
I am now well happy and can get back to putting it all in a smaller case now.

I suppose I better request this to be put in to the official version as it may catch other people out....

it does make the kernel bigger though
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: the best Hard Disk for the RPi

Thu Aug 02, 2012 1:19 am

Yay! :D

I think https://github.com/raspberrypi/linux/issues is the place for "official kernel requests".

User avatar
RaTTuS
Posts: 10377
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK

Re: the best Hard Disk for the RPi

Thu Aug 02, 2012 8:06 am

added a request
[or 2 actually[

;-p

\o/
/me does the dance of kernel hacking
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

Return to “HATs and other add-ons”