Re: Script to add a persistent home-rw partition

2009-05-02 Thread Benjamin FOURTICQ
This is a script to make a new binary2.img that include a persistent home partition. ROOT_SIZE is computed to be at the end of a cylinder. PS : Sorry for my previous email (Ctrl-Enter ans thunderbird send it ;)) DISK_IMAGE=/mnt/C/binary2.img ROOT_SIZE="$(du -ms binary.img | cut -f1)" ROOT_SI

Script to add a persistent home-rw partition

2009-05-02 Thread Benjamin FOURTICQ
Hello, DISK_IMAGE=/mnt/C/binary2.img ROOT_SIZE="$(du -ms binary.img | cut -f1)" ROOT_SIZE="$(expr ${ROOT_SIZE} + ${ROOT_SIZE} \* 5 / 100)" ROOT_SIZE_CYL=$(( ${ROOT_SIZE} / (255 * 63 * 512 / 100) +1)) DISK_SIZE=512 rm ${DISK_IMAGE} dd if=/dev/zero of=${DISK_IMAGE} bs=1024k count=0 seek=${DI