Re: [gentoo-user] Duplicate Flash drive

2009-09-13 Thread Neil Bothwick
On Sun, 13 Sep 2009 09:13:21 +0200, Dirk Heinrichs wrote: > You can then first take an image of the partition: > > dd if=/dev/sda1 of=firewall.img > > This image can then be mounted and modified as needed: > > mkdir /mnt/firewall > mount -t ext2 -oloop firewall.img /mnt/firewall > [do modificat

Re: [gentoo-user] Duplicate Flash drive

2009-09-13 Thread Dirk Heinrichs
Am Sonntag 13 September 2009 09:13:21 schrieb Dirk Heinrichs: > I've never done this, but I'd bet that fdisk (or > one of it's many cousins) can be used in scripts to setup the partitions > on the fly. That cousin would be sfdisk. Bye... Dirk

Re: [gentoo-user] Duplicate Flash drive

2009-09-13 Thread Dirk Heinrichs
Am Sonntag 13 September 2009 04:32:43 schrieb James: > I guess I should use 'dd' to copy the entire contents > of one CF drive to another? Any example syntax with dd > is welcome. What about "man dd"? > Should I keep a machine around to run fdisk on a new CF > module, or is there a way, I can

[gentoo-user] Duplicate Flash drive

2009-09-12 Thread James
Hello, Background: I've been building firewall for friends out of old pentiums and amd machines for some time now. I have successfully switch to compact Flash 4 G drive, using a CF to ide converter. Now I need to be able to store a generic install on a machine, plug in a new CF module to a CF re