element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum SD card imaging utility?
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 13 replies
  • Answers 11 answers
  • Subscribers 303 subscribers
  • Views 1918 views
  • Users 0 members are here
  • imager
  • sdcard
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

SD card imaging utility?

embeddedguy
embeddedguy over 5 years ago

Hi Friends,

 

I have a lot of Sd card and usually nowadays find it difficult to either formate or manage SD cards to write a new image for RaspberryPi. Anyone else also struggle to do that? Do you have any recommendations for tools?

  • Sign in to reply
  • Cancel

Top Replies

  • shabaz
    shabaz over 5 years ago +2 suggested
    Hi Ujjval, Problems might be very possible with poor quality (or fake capacity) SD cards. I only purchase good brands from a reputable seller and have had 100% success forever. There's no detail so perhaps…
  • cstanton
    cstanton over 5 years ago +2 suggested
    Linux: Grab an SDCard, ideally larger than 8gByte Download the Raspbian image from raspberrypi.org, you then have to extract the image from the archive because it is usually in a .zip file, this means…
  • Gough Lui
    Gough Lui over 5 years ago in reply to cstanton +2 suggested
    Actually dd can be as fast as any other tool - the problem is by default, it copies using a block size that is much too small (probably just 512 bytes) adding a lot of CPU overhead. Adding a larger block…
Parents
  • cstanton
    0 cstanton over 5 years ago

    Linux:

    1. Grab an SDCard, ideally larger than 8gByte
    2. Download the Raspbian image from raspberrypi.org, you then have to extract the image from the archive because it is usually in a .zip file, this means you'll usually have to install 'unzip' using your package manager
    3. Insert your SDCard, find its mount point, typically dmesg will tell you (for example, /dev/sdb0)
    4. use dd to write the image to the SDCard

     

    A couple of steps here that catch you out typically:

    • Your user may not have the correct privileges to do this, you may have to elevate your privileges via superuser (sudo)
    • The SDCard you're using might not have enough space, 8gByte SDCard and an 8gByte image may not match up properly
    • SDCard you're using might be damaged, usually the default failure mode is that they go into 'read only' mode
    • dd can be slow, there are ways to do this faster, stack overflow has good tips for this, as does searching on google.
    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • gdstew
    0 gdstew over 5 years ago in reply to cstanton

    To expand on some of these points:

     

     

    Most desktop Linux distros will offer the option to extract a compressed file when you right click on it without needing to add any programs.

    I know Debian, Devuan, Linux Mint, and I believe Raspbian will because I've used them all to do so (it's been a while with Raspbian).

     

    To find out which /dev the SD card is using you can also use (using sudo or as root:):

     

    fdisk -l

     

    Disk /dev/sda: 29.8 GiB, 32010928128 bytes, 62521344 sectors

    Units: sectors of 1 * 512 = 512 bytes

    Sector size (logical/physical): 512 bytes / 512 bytes

    I/O size (minimum/optimal): 512 bytes / 512 bytes

    Disklabel type: dos

    Disk identifier: 0xaeedd120

     

    Device     Boot Start      End  Sectors  Size Id Type

    /dev/sda1        2048 62521343 62519296 29.8G 83 Linux

     

    As long as you know the size of the SD card, 29.8 GiB  for a 32 GB SD card on the first line in the response, then it is easy to know which

    device (/dev/sda also on the first line) it is using. It would be a good idea to properly remove any other SD cards before doing this just to

    be sure you find the right one.

     

    I always use dd bs=1M status=progress if=image file of=/dev/sdX (of=/dev/sda from the fdisk command above)

     

    I have probably written 30+ Raspbian image files using this without any problems since the first revision of the Pi was released. I have also

    used it for several other SBC OS images with no problems. The --status=progress  will display a progress message while the image is being

    written although I am still having trouble figuring out exactly what it is displaying.  The progress display message also stops well before the next

    shell prompt is displayed while waiting for the (SLOW) write to the SD card to finish.

     

    I use a block size of 1M because you can't do much to speed it up other than use a SD card with a faster write data rate because that is what

    slows it down the most by far.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • gdstew
    0 gdstew over 5 years ago in reply to cstanton

    To expand on some of these points:

     

     

    Most desktop Linux distros will offer the option to extract a compressed file when you right click on it without needing to add any programs.

    I know Debian, Devuan, Linux Mint, and I believe Raspbian will because I've used them all to do so (it's been a while with Raspbian).

     

    To find out which /dev the SD card is using you can also use (using sudo or as root:):

     

    fdisk -l

     

    Disk /dev/sda: 29.8 GiB, 32010928128 bytes, 62521344 sectors

    Units: sectors of 1 * 512 = 512 bytes

    Sector size (logical/physical): 512 bytes / 512 bytes

    I/O size (minimum/optimal): 512 bytes / 512 bytes

    Disklabel type: dos

    Disk identifier: 0xaeedd120

     

    Device     Boot Start      End  Sectors  Size Id Type

    /dev/sda1        2048 62521343 62519296 29.8G 83 Linux

     

    As long as you know the size of the SD card, 29.8 GiB  for a 32 GB SD card on the first line in the response, then it is easy to know which

    device (/dev/sda also on the first line) it is using. It would be a good idea to properly remove any other SD cards before doing this just to

    be sure you find the right one.

     

    I always use dd bs=1M status=progress if=image file of=/dev/sdX (of=/dev/sda from the fdisk command above)

     

    I have probably written 30+ Raspbian image files using this without any problems since the first revision of the Pi was released. I have also

    used it for several other SBC OS images with no problems. The --status=progress  will display a progress message while the image is being

    written although I am still having trouble figuring out exactly what it is displaying.  The progress display message also stops well before the next

    shell prompt is displayed while waiting for the (SLOW) write to the SD card to finish.

     

    I use a block size of 1M because you can't do much to speed it up other than use a SD card with a faster write data rate because that is what

    slows it down the most by far.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube