Re: [Soekris] cloning CF cards on OpenBSD 4.3

2008-05-14 Thread Chris Cappuccio
if you want to copy between cards of different sizes, check out growimg.sh from 
flashdist which handles fdisk, disklabel, newfs, and tar file copy

it assumes a specific disklabel layout, but you could easily change that

Lars Nood??n [EMAIL PROTECTED] wrote:
 I've got an OpenBSD 4.3 system on 1GB CF that I would like to clone to
 another CF.
 
 What are some good/easy methods?
 
 dd?
 
 
 
 Regards,
 -Lars
 ___
 Soekris-tech mailing list
 Soekris-tech@lists.soekris.com
 http://lists.soekris.com/mailman/listinfo/soekris-tech

-- 
Too many clocks, not enough time (Al. Einstein)
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


[Soekris] cloning CF cards on OpenBSD 4.3

2008-05-11 Thread Lars Noodén
I've got an OpenBSD 4.3 system on 1GB CF that I would like to clone to
another CF.

What are some good/easy methods?

dd?



Regards,
-Lars
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] cloning CF cards on OpenBSD 4.3

2008-05-11 Thread Bill Maas
Hi Lars,

for a 1-time clone to an identical CF dd will probably do, just check
that it is indeed bootable after the dd, or run installboot(8)
afterwards.

For periodical cloning (i.e. mirroring) I'd use rsync, which is very
conservative when it comes to writes (no, let's not start that CF
w-cycle discussion again - it may also save lots of time;).

In that case the second CF needs to have an fs and to be mounted, and
there may be issues with /var (not necessarily - PID files in /var/run
are removed at boot time, for example). You'll need to test and possibly
refine the procedure (rsync supports pattern-based file exclusion, for
example).

In my experience, except possibly for the trailing slash quirk (make
sure that your informed about that one, see rsync(1):USAGE), it's the
best tool available for jobs like this.

Hope that this message contains at least a few things you didn't already
know,

Bill

On Sun, 2008-05-11 at 16:46 +0300, Lars Noodén wrote:
 I've got an OpenBSD 4.3 system on 1GB CF that I would like to clone to
 another CF.
 
 What are some good/easy methods?
 
 dd?
 
 
 
 Regards,
 -Lars
 ___
 Soekris-tech mailing list
 Soekris-tech@lists.soekris.com
 http://lists.soekris.com/mailman/listinfo/soekris-tech
 

___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech