How to create a Compact Flash from scratch (LINUX):
Prerequisites
The information in this document is based on these software and hardware versions:
· Download the AskoziaPBX preconfigured image from here in /tmp directory
· Compact Flash at least 128MB
· Alix 2Dx Embedded Appliance
· A PC with LINUX OS (UBUNTU in our case)
Write preconfigured IMAGE to CF from scratch:
1. First of all, list all device partition table; please, don’t plugin the CF device
networksoul@linux:/$ sudo fdisk –l
[sudo] password for networksoul: <enter root password>
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×00072332
Device Boot Start End Blocks Id System
/dev/sda1 * 1 993 7976241 83 Linux
/dev/sda2 994 1044 409657+ 5 Extended
/dev/sda5 994 1044 409626 82 Linux swap / Solaris
networksoul@linux:/$
/dev/sda is the hard disk
2. Plug the CF into the reader, and list all partition table again
networksoul@linux:/$ sudo fdisk -l
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×00072332
Device Boot Start End Blocks Id System
/dev/sda1 * 1 993 7976241 83 Linux
/dev/sda2 994 1044 409657+ 5 Extended
/dev/sda5 994 1044 409626 82 Linux swap / Solaris
Disk /dev/sdc: 2048 MB, 2048901120 bytes
64 heads, 62 sectors/track, 1008 cylinders
Units = cylinders of 3968 * 512 = 2031616 bytes
Disk identifier: 0×70707573
This doesn’t look like a partition table
Probably you selected the wrong device.
Device Boot Start End Blocks Id System
/dev/sdc1 ? 428932 916907 968143376 d Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(255, 105, 46) logical=(428931, 3, 57)
Partition 1 has different physical/logical endings:
phys=(370, 10, 5) logical=(916906, 35, 24)
Partition 1 does not end on cylinder boundary.
/dev/sdc2 ? 428931 566055 272054928 a OS/2 Boot Manager
Partition 2 has different physical/logical beginnings (non-Linux?):
phys=(781, 111, 63) logical=(428930, 26, 34)
Partition 2 has different physical/logical endings:
phys=(357, 80, 50) logical=(566054, 55, 59)
Partition 2 does not end on cylinder boundary.
/dev/sdc3 ? 445839 891749 884685616+ 6f Unknown
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(372, 97, 51) logical=(445838, 30, 47)
Partition 3 has different physical/logical endings:
phys=(357, 32, 48) logical=(891748, 36, 27)
Partition 3 does not end on cylinder boundary.
/dev/sdc4 ? 727239 727252 26849 a OS/2 Boot Manager
Partition 4 has different physical/logical beginnings (non-Linux?):
phys=(269, 114, 37) logical=(727238, 12, 25)
Partition 4 has different physical/logical endings:
phys=(0, 0, 0) logical=(727251, 46, 30)
Partition 4 does not end on cylinder boundary.
Partition table entries are not in disk order
networksoul@linux:/$
/dev/sda is the hard disk
/dev/sdc is the CF; note that there are several non linux partitionbut this is not a problem!
3. List the image; we put it on /tmp directory
networksoul@linux:/$ cd /tmp
networksoul@linux:/tmp$dir
askoziapbx-ITv10-alix23x-1.0.3.ZIP
networksoul@linux:/tmp$
4. Unzip the image
networksoul@linux:/tmp$
networksoul@linux:/tmp$ unzip askoziapbx-ITv10-alix23x-1.0.3.ZIP
Archive: askoziapbx-ITv10-alix23x-1.0.3.ZIP
inflating: askoziapbx-ITv10-alix23x-1.0.3.img
networksoul@linux:/tmp$ dir
askoziapbx-ITv10-alix23x-1.0.3.img
askoziapbx-ITv10-alix23x-1.0.3.ZIP
networksoul@linux:/tmp$
5. Umount the device
networksoul@linux:/tmp$umount /dev/sdc
6. Copy the image on the CF and list the write partition
networksoul@linux:/tmp$ sudo dd if=askoziapbx-ITv10-alix23x-1.0.3.img of=/dev/sdc
247968+0 records in
247968+0 records out
126959616 bytes (127 MB) copied, 150,03 s, 846 kB/s
networksoul@linux:/tmp$
networksoul@linux:/tmp$
networksoul@linux:/tmp$ sudo fdisk -l
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×00072332
Device Boot Start End Blocks Id System
/dev/sda1 * 1 993 7976241 83 Linux
/dev/sda2 994 1044 409657+ 5 Extended
/dev/sda5 994 1044 409626 82 Linux swap / Solaris
This disk has both DOS and BSD magic.
Give the ‘b’ command to go to BSD mode.
Disk /dev/sdc: 2048 MB, 2048901120 bytes
255 heads, 63 sectors/track, 249 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×90909090
Device Boot Start End Blocks Id System
/dev/sdc4 * 1 4 25000 a5 FreeBSD
Partition 4 has different physical/logical endings:
phys=(1023, 254, 63) logical=(3, 28, 41)
networksoul@linux:/tmp$
END JOB; now your IP PBX is ready to work
Tags: aa, alix, askozia, AskoziaPBX, embedded, green, ippbx, ivr, pbx, pbxip
[...] Getting started After installed the preconfigured AskoziaPBX image on Compact flash (see Write Askozia image on CF), you are able to connect to the ALIX embedded appliance for verify configuration and tune it! [...]
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
Susan
http://carusbcharger.com
I want to thank the blogger very much not only for this post but also for his all previous efforts. I found http://www.networksoul.net to be greatly interesting. I will be coming back to http://www.networksoul.net for more information.