Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2459

Raspberry Pi OS • RPi Imager failes to write to SD cards on Ubuntu machine

$
0
0
When I try to write an image to my SD card I get the following error at about 100%.
Error reading from storage
SD card may be broken
I get this error on my Ubuntu machine, but when I tried on a different machine with Windows installed, writing the image worked. So writing the same OS image to the same SD card using the same SD card writer is successful on the Windows machine but unsuccessful on the Ubuntu machine.

Perhaps there could be a number of reasons for this, but I have a strong suspicion that something is broken on my Ubuntu machine. I recently tried to write a different image (built with Yocto) to an SD card, which also failed.

Code:

$ sudo umount /media/some/path$ sudo dd if=tmp/deploy/images/raspberrypi3/core-image-minimal-raspberrypi3.rpi-sdimg of=/dev/sda1dd: writing to '/dev/sda1': Input/output error5905+0 records in5904+0 records out3022848 bytes (3,0 MB, 2,9 MiB) copied, 1,51074 s, 2,0 MB/s
Note the "Input/output error" in the log. In both cases, with Imager and with the "dd" command, this results in an unusable SD card.

Any clues towards what might be wrong on my Ubuntu machine would be greatly appreciated.

Statistics: Posted by olavur — Tue May 07, 2024 9:44 am



Viewing all articles
Browse latest Browse all 2459

Trending Articles