SD image tool/software

Development on core packages and the distribution goes on in here.

SD image tool/software

Postby Chrisjuh » Fri Jun 14, 2013 2:07 pm

HI all,

I was wondering, i have my Arch Linux ARM installation setup to my liking, with all the packages and settings i need (apart from subversion where i have an open topic here). But now i would like to pull a image from that SD card, so i can use the image tool Win32DiskImager to image the SD again when i etiher wreck my setup by playing with it or when i want to use that SD card to try another configuration.

Is there anyone here who know's a good tool (either Linux or Windows) with proper documentation on how to use it, to pull an image from a SD card and being able to load ik back with Win32DiskImager or dd?

Thnx in Advance.
Chrisjuh
 
Posts: 6
Joined: Thu Jun 13, 2013 10:32 am

Re: SD image tool/software

Postby WarheadsSE » Sat Jun 15, 2013 2:57 am

Yup, use dd.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: SD image tool/software

Postby Chrisjuh » Mon Jun 17, 2013 10:12 am

Thank you for your reply,

I already looked into dd, but i can't really figure out how i can make a full disk image (both /boot partition and data partition) and save this as an name.img

Could you give me a small example on how to achieve this?

Your help is much apreciated thanks!
Chrisjuh
 
Posts: 6
Joined: Thu Jun 13, 2013 10:32 am

Re: SD image tool/software

Postby pepedog » Mon Jun 17, 2013 11:25 am

With the media to backup all partitions unmounted
dd if=/dev/sdX of=filename.img bs=1M
sdX is found in dmesg, it could be sdb or mmblkp0 or ?
A 16Gb card/stick will create a 16Gb img
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: SD image tool/software

Postby Chrisjuh » Mon Jun 17, 2013 11:44 am

$this->bbcode_second_pass_quote('pepedog', 'W')ith the media to backup all partitions unmounted
dd if=/dev/sdX of=filename.img bs=1M
sdX is found in dmesg, it could be sdb or mmblkp0 or ?
A 16Gb card/stick will create a 16Gb img


Thnx,
But my memory card is 32GB, i do not want to have a 32GB image file. How is the Arch Linux ARM .img created? That's about 2GB.
Chrisjuh
 
Posts: 6
Joined: Thu Jun 13, 2013 10:32 am

Re: SD image tool/software

Postby pepedog » Mon Jun 17, 2013 7:04 pm

You didn't say what system, is it a raspberry pi? With a 2Gb card, which creates a 2Gb img.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: SD image tool/software

Postby Chrisjuh » Mon Jun 17, 2013 8:45 pm

$this->bbcode_second_pass_quote('pepedog', 'Y')ou didn't say what system, is it a raspberry pi? With a 2Gb card, which creates a 2Gb img.

Yes it's on a Raspberry PI, don't really think it matters tho.

So you installed Arch Linux ARM on a 2GB SD card to get an 2GB image? There are no 'smart' tools for linux that simply make an image according to the actual installed size?
Chrisjuh
 
Posts: 6
Joined: Thu Jun 13, 2013 10:32 am

Re: SD image tool/software

Postby pepedog » Mon Jun 17, 2013 9:03 pm

Well, there are 2gb cards and 2Gb cards, I thought mine was the smallest but was wrong. I made the 2nd partition shy from the end, then did dd dah dah whatever count=1870
So off you never resized partition 2 then ......

I have been asked to make a new rootfs, more compatible with this NOOBS thing, same fat32, then extended partition same size as before with logical ext4, sda5, filling that extended partition. Same count= used.
Other techniques are used to make zip smallest size possible.
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK


Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 11 guests