LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Unable to create bootable SD card from img file using dd (https://www.linuxquestions.org/questions/linux-general-1/unable-to-create-bootable-sd-card-from-img-file-using-dd-4175603857/)

i8dbbq 04-14-2017 03:24 PM

Unable to create bootable SD card from img file using dd
 
I am using this for my command :

if=<my path to my img file> of=sdc(my sd card)

The terminal output states,
9+1 records in
9+1 records out
37912576 bytes(38 MB 36 MiB) copied

Check the card and nothing there. I tried using BS=4mb as an option with the same result.

Where did I go wrong?

yancek 04-14-2017 04:03 PM

The of part should be: of=/dev/sdc to write to the device named sdc.

jefro 04-14-2017 07:31 PM

yancek is correct that the /dev/ needs to be in. (be sure you have correct sdx)

Notes.

Also some medias use different block sizes (BS=). I generally leave that option out but can help in speeds and place correctly on media. https://serverfault.com/questions/65...rove-the-speed


Option like sync may help - never known it to hurt.

273 04-15-2017 03:28 AM

One needs root permission to write to a device also, so the command should be proceeded with sudo or should be run as root.

i8dbbq 04-15-2017 05:07 PM

Thanks everyone. I left off /dev.


All times are GMT -5. The time now is 03:42 PM.