[<<][pool][>>][..]
Wed Dec 10 11:29:40 CET 2008

XP image

* install XP on an empty harddisk, let the XP installer create a NTFS
  partition of 3000MB

* this amounts to x blocks of 512 bytes (x blocks for the partition
  table, and y blocks for the NTFS filesystem).

* boot linux, and create a boot partition, say 100KB.  install grub in
  the MBR making sure windows still boots.  put misc utilities in this
  partition, and configure grub so it contains a "chainloader" for the
  3rd partition, so a new bootable partition can be simply
  concatentated.

* dump the head of the harddisk image to a dvd.  there is room to add
  some other images too.  this image can be dumped to an empty
  harddrive, as long as the original install contains the correct
  drivers.

Numbers

After installing XP + some software (ALzip + firefox), boot PLD Linux
2.94 and create a new linux partition (500MB)

    cfdisk /dev/sda
    mkfs.ext2 /dev/sda2
    mount /dev/sda2 /target
    mkdir /target/boot
    cd /target/boot
    cp -av /boot/grub2 .


Use fdisk, set units to sectors and print the partition table:

           start    endi
/dev/sda1       63  6136829
/dev/sda2  6136830  7116794


The total size of the first two partitions is thus 7116796 sectors or
3643799552 bytes.  To dump the image over tcp:

    dd if=/dev/sda bs=512 count=7116796 | nc <host> <port>

(PLD Linux uses "nc", debian uses "netcat".  PLD Linux's nc doesn't
support the "-q 0" option.)

On the other side:

    netcat -l -p <port> | pv > <file>






[Reply][About]
[<<][pool][>>][..]