Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
devdoc:devdoc_create_image [2010/08/23 13:28] droemel |
devdoc:devdoc_create_image [2012/03/01 10:43] abelbeck |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Create | + | ====== Create |
- | Use '' | + | After running |
- | You'll need the size of the CF in megabytes. | + | |
- | After running '' | + | This creates an astlinux-xxx.img.gz file with a single FAT16 partition of 192MB. |
- | ./ | + | Burn this image to a CF or USB flash drive: |
- | in this case, 3998 is what my 4GB card has in usable space in MB. 192MB is the size of my VFAT partition. | + | zcat astlinux-xxx.img.gz | dd of=/dev/sdc bs=64k |
- | Images are slightly less than 60MB, so 192 is enough room for 3 images. | + | (if ''/ |
- | + | ||
- | 1856MB is the size of ASTURW partition, which includes (for me) log files, voice mail, etc. In this case, I'm using roughly half the card and leaving the rest unused. | + | |
- | + | ||
- | The -A argument tells it to partition, format, and label the ASTURW filesystem. | + | |
- | + | ||
- | The -z argument means to compress the image (since the ASTURW partition will be large but empty) to save space on my hard drive (since at any given time, I might have a dozen images). | + | |
- | + | ||
- | When this completes, I can do: | + | |
- | + | ||
- | zcat astlinux-trunk-4337.img.gz | dd of=/dev/sdc bs=64k | + | |
- | + | ||
- | (if ''/ | + | |
If you hadn't used the -z flag, then it would just be: | If you hadn't used the -z flag, then it would just be: | ||
- | dd if=astlinux-trunk-4337.img of=/dev/sdc bs=64k | + | dd if=astlinux-xxx.img of=/dev/sdc bs=64k |
to burn this image onto a CF. | to burn this image onto a CF. | ||
Line 36: | Line 24: | ||
sync | sync | ||
- | and then to verify the image, do: | + | At this point, you may remove your CF and install it into your target system, power up... boot, and follow http:// |
- | + | ||
- | sudo fdisk -l -u /dev/sdc | + | |
- | + | ||
- | to confirm it was written correctly. | + | |
- | + | ||
- | At this point, you may remove your CF and install it into your target system, power up... boot, and run '' | + | |
- | + | ||
- | \\ | + | |
- | \\ | + | |
- | //This article is written by Philip.// | + | |