terrytheandroid
Posts: 15
Joined: Thu Jan 10, 2013 1:38 am

SD Card Problems

Tue Feb 12, 2013 5:02 pm

Having lost on Pi build due to SD card corruption I my current card has just started to show errors. In dmesg I get...
[597892.135251] mmc0: DMA IRQ 6 ignored - results were reset
[608098.950219] mmcblk0: error -110 transferring data, sector 4484512, nr 8, cmd response 0x900, card status 0x200b00
[608098.950248] mmcblk0: retrying using single block read
[608338.974584] mmcblk0: error -110 transferring data, sector 4484520, nr 8, cmd response 0x900, card status 0x200b00
[608338.974614] mmcblk0: retrying using single block read
[608341.668145] mmcblk0: error -110 transferring data, sector 4484521, nr 7, cmd response 0x900, card status 0x200b00
[608341.668181] end_request: I/O error, dev mmcblk0, sector 4484521
[608344.356884] mmcblk0: error -110 transferring data, sector 4484523, nr 5, cmd response 0x900, card status 0x200b00
[608344.356919] end_request: I/O error, dev mmcblk0, sector 4484523
[610979.276734] mmcblk0: error -110 transferring data, sector 4484608, nr 8, cmd response 0x900, card status 0x200b00
[610979.276764] mmcblk0: retrying using single block read
[613859.605071] mmcblk0: error -110 transferring data, sector 4484704, nr 8, cmd response 0x900, card status 0x200b00
Last time I rebooted "to make it right". Bad news, it never returned and I had to rebuild from scratch. For those who can read dmesg time you can see it's not been up that long and this is the 2nd SD card with the problem.

I don't know if the first line about DMA problems is related. There are other similar entries earlier without the same SD card errors. It is still running for now but I don't know how much longer it will hold up.

My system is an up-to-date Raspian Wheezy. Are there any known problems or fixes?

P.S. I learned one lesson and I've got a nice backup script now if anyone wants one ;)

penguin1024
Posts: 6
Joined: Sun Dec 30, 2012 3:50 pm

Re: SD Card Problems

Thu Feb 14, 2013 5:25 pm

Hello!
I also had many problems with my SD card. If you get a corrupt SD card, you can try running fsck.ext4 on a Linux machine to fix it up - all files won't be repaired, but at least you don't lose everything :)
I finally found the source of my SD card problems - it was my power supply. You need a USB power supply with an output at 5V and 1A, otherwise you can get SD card corruption.
A very good article about Raspberry Pi troubleshooting is available here:
http://elinux.org/R-Pi_Troubleshooting

have a look in the "SD cards" section and "Troubleshooting power problems".
I had another error message in dmesg. I don't know if it's the same issue.

Hope it helped - good luck with your Raspberry Pi!

penguin1024

terrytheandroid
Posts: 15
Joined: Thu Jan 10, 2013 1:38 am

Re: SD Card Problems

Sun Feb 17, 2013 11:28 pm

I did try running fsck for about 2 days to no avail, too much curruption I expect. Although at the time I had no backup I did have a list of the things I'd done to build it so it didn't take too long to get it back running.
I had a few more SD card corruption problems with the 2nd Kingston Class 4 16G card. So I rebuilt it from backup on a Sandisk class 4 16G.
I've no curruption but I have seen a few errors
mmc0: DMA IRQ 6 ignored - results were reset
I don't know if these are significant or whether they are normal
Interesting about the power supply. I've been running it on a mobile phone charger rated at 0.7A. I've changed it now for my new Amazon power supply for Pi with "extra long lead". Well it's not massively long nor does it claim to be for a Raspberry Pi but it is rated at 1A. Let's hope - Thanks.

sdjf
Posts: 1395
Joined: Fri Mar 16, 2012 5:20 am
Location: California
Contact: Website

Re: SD Card Problems

Mon Feb 18, 2013 4:31 am

Yeah, that power supply is cutting it close. If you can measure with a multimeter TP1-TP2, it needs to be between 4.75 and 5.25

I do see that error message in my logs after crashes sometimes, I am not sure why. We could google it and see what brilliant information is out there about it, I just have not gotten around to it.

The other thing to never do, is pull the plug on power without issuing a poweroff command, that is a very serious mistake I made quite a bit at the beginning and kept having to reflash the image onto card again.
FORUM TIP: To view someone's posting history, sign in, click on their user name, then on "Search User's Posts." || Running ArchLinuxArm on Model 2B and 512MB Model B

terrytheandroid
Posts: 15
Joined: Thu Jan 10, 2013 1:38 am

Re: SD Card Problems

Fri Mar 01, 2013 11:07 am

Looks like the problem is fixed. Thanks all. The bigger power supply did it.
I'ms still getting the occasional "mmc0: DMA IRQ 6 ignored - results were reset" errot but I'm not and SD card curruption

Cheers

dotslashben
Posts: 1
Joined: Wed Jan 08, 2014 11:48 am

Re: SD Card Problems

Wed Jan 08, 2014 12:00 pm

Hello,

I had this issue recently, Following a lot of the above had no luck for recovery.
So I tried the ole load sd into *nix machine and fsck. Still with no luck.
Verified superblock. No issue's there...

So decided to try the boot emergency kernel.
Jumper on pin 5 and 6,
Turn on the Pi,
Emergency kernel should boot if available, (which i believe it is by default)
I saw a huggggge console font and a fat raspberry logo :)
After a while, it appeared to just halt? like at 4-5 seconds.
Just hit enter on Keyboard to get special prompt "#"
very limited shell? no bash

But the magic word that got me sorted was "sync"
instantly the screen blacked out!?!?! holy moly thought i lost everything for good, but i relaxed.
Unpowered Pi
remove the jumper
And boot up again.

Now working as per before :)
Hope this helps others recover there system.
Oh, and remember to prompt fsck at next boot to check and verify your file system after a recovery like this.

Return to “Advanced users”