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
    About the element14 Community
  • 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
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum question about the Debian preloaded SD card
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 10 replies
  • Subscribers 685 subscribers
  • Views 1332 views
  • Users 0 members are here
  • raspberry_pi
Related

question about the Debian preloaded SD card

ykwong
ykwong over 13 years ago

I recently bought a model B RaspPi and a Debian preloaded SD Card (4G) from Element14. 

Booting up is ok, though I have not really tried to use it long enough to see if it has any voltage drop or heat problem. 

 

My question is :

I do not want to damage (or alter the original state of) my one-and-only-one o/s preloaded SD card.  So I bought a blank 4G SD card and try to make a duplicate and from there I intend to use the duplicate only.  By the way, having a duplicate card is also handy when I decide to buy one more Rasp-Pi.

 

I found that if I use my duplicated SD Card, the bootup is not successful, it will not stop at the Linux prompt that allows me to start the X Window.  It stops midway in the bootup process and I have no choice but to switch the power off.

 

Obviously, I think my method of the card duplication was wrong. Here is how I duplicated the SD card.

I inserted the original in my Mac (which has a built-in SD card slot),

I copied all the files (these are not images file already as the card is bootable) from the original SD into a folder on my Mac harddisk.

Then I inserted the blank 4G SD card in my Mac, and copy those files back from the harddisk to the SD card.

 

I probably did it the wrong way or this method will never duplicate the card successfully.

 

What would be the correct way to do what I want to achieve?

 

I am grateful to any advice, information, comments....

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 13 years ago

    The Pi sd card has 2 partitions. One smaller fat32 partition (50 - 70MB) is used for the boot files and the kernel.

    The other ext4 partition is used for the linux root filesystem.

    I have no Mac experience, but obviously, only copiing the files won't do the trick.

    In linux, you need to dd the sd card contents to a file. After that, you can dd them back to the other card. 

     

    Be very carefull with the dd command, as it can also overwrite your harddisk or parts of it when it's not properly used.

    (It's nickname is disc destroyer)

     

    dd will also transfer the sd card sector 0, so the backup sd card will have the same partition layout as the original one.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ykwong
    ykwong over 13 years ago in reply to Former Member

    Hi LC,

     

    Thanks for your advice.  After reading your post, I guess I should try the following (at least in principle)

     

    (by the way, switching to command mode from GUI in a Mac is almost identical to be running any Linux computer)

     

    (1) make an empty folder in my Mac and mount it as a drive

    (2) insert the original SD into the SD slot and use the dd command to copy the files from the original to the newly mounted drive (which is actually a folder on the Mac HD).

    (3) Place the blank SD inside the SD slot and use the dd command again, but this time files are copied from the mounted drive back to the SD card. 

     

    Now the only problem is I need to learn all the syntax of the dd command. 

     

    Are these procedures correct?  Or did I miss any crucial step?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 13 years ago in reply to ykwong

    dd works sector based. To my knowledge, you can even dd directly to a file.

    It might be worth to have a look at the elinux rPi section. They describe how to transfer an image file to the sd card. (Probably for Mac as well.)

    Just make sure you transfer it to SDx (your sd card) and not to SDx1 (the first partition of your sd card) This is a commonly made mistake.

     

    And always make sure it's your SD card and not your MAC harddisk !!!!!!!

     

    A 4Gig sd card will create a 4Gig image file. You might compress it after use.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 13 years ago in reply to ykwong

    dd works sector based. To my knowledge, you can even dd directly to a file.

    It might be worth to have a look at the elinux rPi section. They describe how to transfer an image file to the sd card. (Probably for Mac as well.)

    Just make sure you transfer it to SDx (your sd card) and not to SDx1 (the first partition of your sd card) This is a commonly made mistake.

     

    And always make sure it's your SD card and not your MAC harddisk !!!!!!!

     

    A 4Gig sd card will create a 4Gig image file. You might compress it after use.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Former Member
    Former Member over 13 years ago in reply to Former Member

    Try this link. You will find detailed info on flashing an SD card.

     

    http://elinux.org/RPi_Easy_SD_Card_Setup

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ykwong
    ykwong over 13 years ago in reply to Former Member

    Ok, I will pay extra attention when doing it

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ykwong
    ykwong over 13 years ago in reply to Former Member

    Hi Tony,

    I did read that link.  It is not exactly identical to my situation.  It is mainly for getting everything from the net to start.  My case is a bit dufferent, I got the bootable files preloaded in the SD.  I just want to duplicate that SD card.  Nevertheless, thanks for your post.  It may help as well.  

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
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 © 2026 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