by pippy · 13y ago · 0 comments
It's odd as the RaspberryPi debian image works perfectly fine.
- Make sure that none of the filesystems on the USB stick are mounted before you begin. Otherwise, the filesystem drivers might corrupt something.
- Use a larger block size that's a power of 2 (e.g. bs=4096k). The default is 512 bytes, which is too small. This should just speed things up, but using writes that are smaller than the actual flash erase blocks can cause a lot of extra erases, and maybe your flash stick breaks when you do that.
- Run 'sync' after using dd, and wait for disk activity to finish. dd doesn't flush to disk by default.
- Don't use an amd64 image on a 32-bit machine. Don't use ia64 on a 64-bit PC.
- Try using synchronized I/O:
sudo dd if=debian-7.2.0-i386-CD-1.iso of=/dev/sdx bs=4096k oflag=sync