drmacro
Posts: 37
Joined: Tue Mar 08, 2016 4:26 pm

Image burning fails first time, works second

Wed Jul 25, 2018 1:07 pm

Hi,

I typically used the following in a terminal window on Ubuntu to burn the rasbian image to a SD card:

sudo dd bs=4M if=2018-06-27-raspbian-stretch.img of=/dev/sdb

then a sync command.

Most of the time, it results in a corrupt SD card that won't boot.

But, if I run the exact commands again on the card, it results in a bootable SD.

The other day I used etcher and had the same experience.

Any idea why this would be? :?:

User avatar
topguy
Posts: 5566
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Image burning fails first time, works second

Fri Jul 27, 2018 10:54 am

Ubuntu usually automounts SD cards, do you unmount it before attempt to dd to it ?

jahboater
Posts: 4424
Joined: Wed Feb 04, 2015 6:38 pm

Re: Image burning fails first time, works second

Fri Jul 27, 2018 10:59 am

+1
sounds likely

I use "cp" by the way, its simpler to type (and fractionally faster).

sudo cp 2018-06-27-raspbian-stretch.img /dev/sdb

instead of

sudo dd bs=4M if=2018-06-27-raspbian-stretch.img of=/dev/sdb

then the sync.

drmacro
Posts: 37
Joined: Tue Mar 08, 2016 4:26 pm

Re: Image burning fails first time, works second

Fri Jul 27, 2018 11:49 am

Hmm...I think??? I've tried it after un-mounting and the same results.

I'm doing some Iot/mqtt stuff at the moment with multiple pi's, so I think I'll get the chance to "play" with it again. ;)

Return to “Troubleshooting”