Unable to Flash the SD on Linux [Ubuntu]

Hi guys, today i received my RPI_2, i’ve downloaded the .img for the RPI_2 and now i’m trying to Flash the SD, i’ve already checked the Name of my SD, but when i run the command -> $ sudo dd if=Lakka-.img of=/dev/sdb1 which is my drive i get "dd failed to open "Lakka-.img" No such file or directory. I’m a linux newbie as you can see, and i’m missing something stupid for sure… Can anyone of you help me pls? Thanks in advice!

Hello !

The * in the name means you have to use the tab key for autocompleting the name !

Good luck with linux, it’s worth learning.

Instead of using the asterisk wild card, try using the tab autocomplete. That is, type ‘sudo dd if=Lak’ and then hit tab and it should fill in the rest of the img file’s name. If it won’t complete it means you’re not in the right directory and need to navigate to wherever your image actually is (which could be what’s going wrong already). If it does complete, just finish typing out the command (i.e., of=/dev/sdb1).

EDIT: nina’ed!

Thank you all… seems like my drive is only readable, i managed to mount and remount it with rw rights, then i ran the command to flash, after 30 mins was still writing something… honestly i thought it was stuck so i interrupted the process. but now i’m not able to give the permission to write on the sd again… so frustrated…

You need your SD card to be unmounted if I’m not wrong, and when using dd you have to target your device name, and not your partition name “/dev/sdb” instead of “/dev/sdb1”

i executed “umount /dev/sdb” and “umount /dev/sdb1” for safety… but again with no luck, it keeps saying Read Only file system, i read a tons of tutorial on “how to remove write protection” this is a nightmare

Just check that the phisical lock on the sd card or the adapter is not ON.

unfortunately this was the first thing i checked… i’ve also changed the micro sd adapter because i thought it may be broken…

Don’t worry, you’re going to find.

Try to search things like “dd nameofyourdistro sdcard read only”

seems like i managed to copy the .img on the sd but when i plug it in the RP the system just don’t boot… any suggestion? There’s a way to check if the imaga has been imported properly?

It seems you did it wrong, try to do it again or post here the commands you used in order to help you

1)unzipped the img.gz 2)sudo dd if=/home/my_name/Downloads/Lakka_abc123.img of=/dev/sdb1 (which is my drive) + ENTER 3)Prompt print after 3 mins that the copying procedure has been done 4)Remove SD 5)Plug in RPI_2 6)Plug HDMI 7)Plug Controller (Ps3-Wired) 8)Plug Power

Nothing happens…Help me guys :frowning:

In the second step, your device is “sdb” not “sdb1”, you have to do: sudo dd if=/home/my_name/Downloads/Lakka_abc123.img of=/dev/sdb And I think that the drive must be unmounted, I’m not sure.

[QUOTE=dolphinziyo;23255]In the second step, your device is “sdb” not “sdb1”, you have to do: sudo dd if=/home/my_name/Downloads/Lakka_abc123.img of=/dev/sdb And I think that the drive must be unmounted, I’m not sure.[/QUOTE]

IT WORKED! Thanks mate! i appreciate! and thank you all of you guys for your hints!

If the data has been copied correctly, you should see two partitions on the SD card.