USB booting :: USB Pendrive install script bug



Hello!
 I tried a few time to install DSL 4.0 on my JetFlash 4gb USB flash memory without success. While trying to install from the boot install option instead of from the jwm menu, I remarked there were not enough space on the system partition.

I dived in the pendrive_usbhdd.sh script an modified the line no 55:
SHARE=`expr $CYCLINDERS - $SYSTEM`
for
SHARE=`expr $CYCLINDERS - $SYSTEM - 1`

This force sfdisk to use one more cylinder then what seems necessary for the system partition. Actually, I cannot explain exactly why this is necessary (geometry of my key?). But, it solved the problem and now DSL 4.0 runs from my USB key.

Comments? Maybe it would be safe to modify the script in the next release...

Thank. bye.
S. boivin.

Feedback on larger pendrives is always appreciated.
Your mod is both safe and a good idea.

It is feedback from the community that keeps improving DSL.


original here.