LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-14-2017, 03:24 PM   #1
i8dbbq
LQ Newbie
 
Registered: Apr 2017
Posts: 2

Rep: Reputation: Disabled
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?
 
Old 04-14-2017, 04:03 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,388

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
The of part should be: of=/dev/sdc to write to the device named sdc.
 
Old 04-14-2017, 07:31 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,836

Rep: Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370Reputation: 3370
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.
 
Old 04-15-2017, 03:28 AM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,585

Rep: Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351Reputation: 2351
One needs root permission to write to a device also, so the command should be proceeded with sudo or should be run as root.
 
Old 04-15-2017, 05:07 PM   #5
i8dbbq
LQ Newbie
 
Registered: Apr 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks everyone. I left off /dev.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert bootable USB .img file to bootable CD .iso file Chris.Bristol Linux - Software 7 01-12-2013 01:00 PM
Is it possible to convert a bootable ISO to a img.ext2 file? LandRiders7th Linux - General 4 06-18-2012 09:09 PM
Add drivers to a PXE bootable initrd.img file... GreeNix Linux - Newbie 4 11-20-2009 01:22 PM
How do i make a .img file into a bootable usb in windows xp so i can install fedora7 cwere4 Linux - Newbie 4 06-25-2007 11:49 AM
Bootable IMG File thesystem DamnSmallLinux 1 10-24-2004 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration