Sat Apr 19 12:33:31 EDT 2008

resizing filesystems

i'd like to save the WINXP filesystem on a dvd for easy cloning. got
ntfsclone working now, but that can't be mounted. it would be more
interesting to prepare a disk image that fits on a dvd, and can be
dd'ed straight to an empty disk to give a bootable system, and used
inside vmware/qemu.

after that, remaining space can be partitioned.

so.. what i want is:
 1. resize squirrel so it fits on a dvd
 2. use it as disk in vmware

resized to 4500MiB = 4499993088 bytes = 8789049 sectors


Disk /dev/loop0: 12594959s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start  End        Size       Type     File system  Flags
 1      63s    12594959s  12594897s  primary  ntfs         boot

disk size = 8789112 sectors

make it a multiple of cylinders:
cylinder size = 63 * 255 sectors

rounded to cylinder boundary: 8803620 sectors