[Voyage-linux] Duplication
Mike O'Connor
(spam-protected)
Sat May 16 16:28:06 HKT 2009
Hi Robert
I simply rsync the voyage system to a server machine
rsync -aPvx --numeric-ids / root at server:/voyage/voyage-mybestimage/
Then boot the new machine using a live-cdrom
Partition the disk (make sure the partition has a boot flag set)
fdisk /dev/sda
Format the disk
mke2fs -LROOT_FS /dev/sda1
Mount the disk
mount /dev/sda1 /mnt
Copy my files back
rsync -aPvx --numeric-ids root at server:/voyage/voyage-mybestimage/ /mnt/
Umount the disk
umount /mnt
Install grub
grub --no-floppy
root (hd0,0)
setup (hd0)
setup (hd0,0)
quit
Reboot on the newly copied system
Cheers
Mike O'Connor
Robert Rawlins - Think Blue wrote:
>
> Hello Guys,
>
>
>
> Thanks for your advice over the past couple of weeks, we’re slowly
> making some good progress on tightening down our build for duplication.
>
>
>
> I am not a Linux user for my main system here, we usually build
> systems from a live-cd boot. I have a compact flash card reader with
> just a single slot.
>
>
>
> I have a 2GB CF card here which is built as our ‘master’ that we’re
> looking to duplicate from. This card has two partitions, both about
> 1GB each, the first being bootable with Voyage installed, the second
> being purely for data storage.
>
>
>
> I’m looking to duplicate this card onto other CF cards of various
> sizes, 2, 3 and 4GB are the most likely, however I don’t really want
> to waste space on the larger disks, from my understanding of DD, after
> the imaging they’ll be shrunk to 2GB, is that correct? Can I do
> anything to reclaim that space once the image has been written?
>
>
>
> Presumably, the best option would be to boot in the live-cd, copy an
> img from my master and then copy that to all the destination cards one
> at a time? What do I have to do as far as mounting is concerned? And
> am I able to write the img into memory on the live-cd? If so, where?
>
>
>
> I appreciate your input chaps,
>
>
>
> Rob
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Voyage-linux mailing list
> Voyage-linux at list.voyage.hk
> http://list.voyage.hk/mailman/listinfo/voyage-linux
>
More information about the Voyage-linux
mailing list