External Hard Drive - Kernel Panic


17 posts
by Yumes » Sat Apr 21, 2012 8:42 pm
Ever since I got my pi almost a week ago I've been having issues with it locking up or freezing when accessing my external usb drives. This issue happens with both Debian Squeeze and Arch Linux.

Not sure what is causing it, so I will list what I'm using.

HTC micro usb adaptor rated 5v - 1A

Sandisk class 6 8gb SD card (have tried others also)

Two Western Digital 3.5" external USB 2 drives both are self powered.

Generic keyboard and mouse and also a hub.

The issue seems to happen with the hub, keyboard and mouse of the equation. Especially if I am copying files across the network to my samba share on one of the external drives. My Pi will just freeze up after awhile requiring a full reset. Seems to run fine when usb is not acessed.

I've also attached a screenshot of the latest crash from debian squeeze.

Posts: 5
Joined: Wed Feb 29, 2012 4:13 am
by liamfraser280 » Sat Apr 21, 2012 11:20 pm
I think its simply that the kernel isnt 100% stable yet. Especially when it comes down to the USB part of things. Not to worry though, it will get sorted by the wonderful kernel devs at some point :)
Posts: 354
Joined: Tue Oct 04, 2011 6:53 pm
by jjacquay712 » Sun Apr 22, 2012 1:33 am
I'm having the same issue! Should have looked over the forum a little more carefully before I made my post. Does the kernel panic happen to you when no other peripherals are connected besides the hard drive? I'm just speculating, but maybe it has something to do with collisions on the USB hub.
Posts: 3
Joined: Sun Apr 22, 2012 12:18 am
by Yumes » Sun Apr 22, 2012 1:36 am
Yea, it happens with just one usb device connected, that being one of my external drives, when I'm copying large files from my PC to my samba share on the Pi.
Posts: 5
Joined: Wed Feb 29, 2012 4:13 am
by Chris.Rowland » Sun Apr 22, 2012 7:20 am
Are you all certain that this isn't power related?
Posts: 239
Joined: Thu Jan 12, 2012 5:45 pm
by Yumes » Sun Apr 22, 2012 1:14 pm
I've tried two different power adaptors. Both rated 5V and 1A. I've even disconnected all usb devices besides just one external hard drive which is powered seperately.
Posts: 5
Joined: Wed Feb 29, 2012 4:13 am
by rogerdean » Fri May 11, 2012 8:49 am
Same issues here, even with the hard drive having an external power supply. Has anyone successfully connected a USB hard drive to a Pi?
Posts: 21
Joined: Tue Apr 17, 2012 7:40 pm
by greypower » Fri May 11, 2012 9:23 am
Yes - I have a Western Digital Passport drive attached through a Belkin powered hub. It works just fine.
Posts: 91
Joined: Sat Jan 07, 2012 10:00 am
by rogerdean » Fri May 11, 2012 9:26 am
Great. I wonder if you've thought of trying to boot with / and swap on the external drive? If it works it should give a pretty huge performance boost. I've managed it with a flashdisk, as per this thread

http://www.raspberrypi.org/for.....ile-system

Cheers

Roger
Posts: 21
Joined: Tue Apr 17, 2012 7:40 pm
by Clair » Sun May 13, 2012 9:48 am
I'm using an ION external 160GB HD powered via a Belkin USB Plus 4-port hub. All well on that front.
Posts: 20
Joined: Mon Jan 02, 2012 11:01 am
by Jancis » Sun May 13, 2012 12:35 pm
using external 2.5" hdd on active (powered) usb hub. works good so far.
Posts: 25
Joined: Thu Jan 26, 2012 3:54 pm
by Yumes » Mon May 14, 2012 4:17 am
rogerdean wrote:Same issues here, even with the hard drive having an external power supply. Has anyone successfully connected a USB hard drive to a Pi?


No more kernel panics for me ever since I updated the firmware awhile back. Samba and usb have been rock solid.
Posts: 5
Joined: Wed Feb 29, 2012 4:13 am
by bredman » Mon May 14, 2012 9:45 am
Yumes wrote:Yea, it happens with just one usb device connected, that being one of my external drives, when I'm copying large files from my PC to my samba share on the Pi.


This problem has been reported several times. It is caused by a conflict between the USB port and the Ethernet port. If both are in heavy use at the same time, you are likely to get a kernel panic.

There has been at least one attempt to fix this about 2 weeks ago, and I thought it was successful. Please check that you are using the most recent download images.
Posts: 1413
Joined: Tue Jan 17, 2012 2:38 pm
by morganm2 » Sun May 27, 2012 4:51 pm
I am pretty sure this happens to me with large files. I'm booting debian6-19-04-2012 from an 8Gb SD card and have a single USB device connected directly. It's a 3Tb Hitachi hard disk (own power supply).
I upgraded my power supply from a 400mA (yes it still worked) phone charger to a 2.5A switch mode power supply from Maplin - I don't think it's the power supply.
I can't tell if it is a kenel panic bacause I'm running my pi using VNC. I'm using the Pi to network the hard disk, so obviously any major copying invloves network traffic as well. Typical file size is 700Mb.
I do note that the file transfer speed is slower than a PC, would this be due to USB/Network conflicts?
Posts: 2
Joined: Sun May 27, 2012 4:40 pm
by abishur » Sun May 27, 2012 6:47 pm
morganm2 wrote:I am pretty sure this happens to me with large files. I'm booting debian6-19-04-2012 from an 8Gb SD card and have a single USB device connected directly. It's a 3Tb Hitachi hard disk (own power supply).
I upgraded my power supply from a 400mA (yes it still worked) phone charger to a 2.5A switch mode power supply from Maplin - I don't think it's the power supply.
I can't tell if it is a kenel panic bacause I'm running my pi using VNC. I'm using the Pi to network the hard disk, so obviously any major copying invloves network traffic as well. Typical file size is 700Mb.
I do note that the file transfer speed is slower than a PC, would this be due to USB/Network conflicts?


You need to update the firmware in the /boot folder. hexx's update tool would be a good way to do that, or you can download the files individually off the raspberrypi github
Dear forum: Play nice ;-)
User avatar
Forum Moderator
Forum Moderator
Posts: 4298
Joined: Thu Jul 28, 2011 4:10 am
Location: USA
by morganm2 » Mon May 28, 2012 10:15 pm
Thanks abishur,

Found the update tool at https://github.com/Hexxeh/rpi-update. The kernel changed from
'Linux raspberrypi 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l GNU/Linux' (uname -all)
to
'Linux raspberrypi 3.1.9+ #66 Thu May 17 16:56:20 BST 2012 armv6l GNU/Linux'.

I copied five 700Mb files with no issues - seems to have done the trick.

Thanks
Mike
Posts: 2
Joined: Sun May 27, 2012 4:40 pm
by Jerem » Tue May 29, 2012 9:17 pm
Thanks a lot !
Your answers have helped me, I have changed the power many times unsuccessfully...
The firmware update have resolved my problem (kernel panic after random time).
Posts: 1
Joined: Tue May 29, 2012 8:40 pm