6

I regularly make ISO images of my SD cards (for many reasons), and I have noticed that whenever I issue the rpi-update command, I can no longer make these images, instead getting this error:

sudo dd if=/dev/sdb of=/home/user/Documents/raspi/images/raspi1.8.iso bs=1M
dd: reading `/dev/sdb': Input/output error
6227+1 records in
6227+1 records out
6530007040 bytes (6.5 GB) copied, 394.699 s, 16.5 MB/s

I suspect it has something to do with that fact that the firmware is actually stored on the SD card with the Raspberry Pi. Can anyone else confirm this (the problem that is)? I have four more Raspberry Pi'es coming in. Once they do I will take a fresh copy of Raspbian, make an image of it, run raspi-update and try to make an image of it again. If that craps out too, then it will be official that it is a serious problem.

In response to the comments, I should mention that the SD card is not the issue here. I have a stable ISO image, let's call it raspi.1.0.iso, and two SD cards. If I copy the image onto either of two SD cards, they both work. When I issue the rpi-update command on either of the SD cards, I can no longer make an image of those SD cards. However, I can still copy raspi.1.0.iso over to the now corrupted SD card.

Lenik asked a few questions, and I will update them here as I go. Some of them require new hardware, hence why I can't answer them all in one sitting.

  1. Does the error always happen at the same 6.5 GB (6530007040) offset for different sized SD cards? PROBABLY NOT
  2. Does the error always happen at the same 6.5 GB (6530007040) offset even for same sized SD cards? NO
  3. Have you tried different power supply? YES
  4. Have you tried to find out which file lives at the place you get your error from? I DON'T KNOW HOW
  5. Have you tried with a brand new Raspbian OS? YES

Just to be perfectly clear, I just received a brand new Raspberry Pi, with a brand new SD card. I used that Raspberry Pi, and that SD card and a completely different power supply to execute the rpi-update command.

puk
  • 685
  • 4
  • 10
  • 27
  • I'd say wait for the new pis and test. – hifkanotiks Nov 09 '13 at 12:16
  • have you tried a different SD card? – lenik Nov 09 '13 at 14:57
  • @lenik will update question – puk Nov 09 '13 at 23:22
  • have you tried different size of SD card, does the error happens at the same 6.5GB offset? 2. have you tried different power supply? maybe the update process temporarily consumes more power, resulting in failed SD write, that shows up as a i/o error afterwards. 3. have you tried to find out which file lives at the place you get your error from?
  • – lenik Nov 10 '13 at 23:36
  • No, Haven't checked 2) No 3) No
  • – puk Nov 11 '13 at 00:23
  • @lenik I will update the question when I can, but it will take time, and I have to go buy a new SD card as well. – puk Nov 11 '13 at 00:31
  • @lenik Just confirmed it a third time, this time at 189 MB – puk Nov 13 '13 at 08:08
  • You're not trying to image the card while it is mounted as your running filesystem, are you? I would not necessarily expect that to work, but you should be able to image it from another system to which it is not mounted. – Chris Stratton Jan 28 '14 at 17:59
  • @ChrisStratton No, it is not mounted as my running filesystem – puk Jan 29 '14 at 03:17