1 |
On 2009-09-13, Neil Bothwick <neil@××××××××××.uk> wrote: |
2 |
|
3 |
> Alternatively, set everything up as you need to start with, |
4 |
> then dd the entire device, including partitioning and |
5 |
> bootloader, with |
6 |
> |
7 |
> dd if=/dev/sda of=firewall.img |
8 |
|
9 |
That's how we used to do it when we were shipping CF-based |
10 |
products. |
11 |
|
12 |
The one gotcha you have to look out for is that CF cards vary |
13 |
considerably in size (even though they all have identical part |
14 |
numbers and are all labeled as 512MB or whatever). You can't |
15 |
expect to be able to fill up 512MB CF card #1, and then always |
16 |
be able to copy that to 512MB CF card #2. Card #2 might be |
17 |
smaller than card #1. So you might want to check the capacity |
18 |
of a good sized sample of cards and make your image a few |
19 |
percent smaller than the smallest one you find. |
20 |
|
21 |
-- |
22 |
Grant |