• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Burning the OS image from an SDHC card

 
Joe Harry
Ranch Hand
Posts: 10122
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a tool that any of you might know to burn the image of the contents of my SDHC card? I mean something similar to the Time Machine from Apple?
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18154
52
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean something like backing up the OS image to a CD/DVD? If so, you'd need to make an ISO flat file out of the card's contents and use the cdrecord utility to write it to the disc. For DVD, you can skip the ISO and use the root of the mounted SD card directly, something like this:



growisofs makes the ISO a transient object so that you don't actually have to physically create it.

Note that if you want the created ISO to be bootable, you'll have to do a little more work, since the simple form of the command does a straight file replication without regard for the "magic" boot zone of the CD or DVD.
 
Joe Harry
Ranch Hand
Posts: 10122
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:Do you mean something like backing up the OS image to a CD/DVD? If so, you'd need to make an ISO flat file out of the card's contents and use the cdrecord utility to write it to the disc. For DVD, you can skip the ISO and use the root of the mounted SD card directly, something like this:



growisofs makes the ISO a transient object so that you don't actually have to physically create it.

Note that if you want the created ISO to be bootable, you'll have to do a little more work, since the simple form of the command does a straight file replication without regard for the "magic" boot zone of the CD or DVD.


Yes, I want the ISO to be bootable. I'm currently installing MongoDB for which unfortunately, there is no packaged version. I have to compile it from the sources and install it to the SD card on my RasPi. It takes at least 5 to 8 hours to get this done. If during the next couple of months, I mess something up with my SD card, I do not want to go through the pain of loosing 5+ hours on getting MongoDB on to the RasPi. So I would like to get an ISO image of my SD card and make it bootable such that if something goes wrong, I can get back the current state of it working.
 
Joe Harry
Ranch Hand
Posts: 10122
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It actually looks much simpler than I thought!

http://lifehacker.com/how-to-clone-your-raspberry-pi-sd-card-for-super-easy-r-1261113524
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic