1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 10:22:48 +02:00

Possible mistake in qi/6410-partition.sh

Hello Andy,

I am in the process of making a modified 6410-partition.sh
and I wonder if there is a mistake in the VFAT partition size:

Shouldn't the "+ $REARSECTORS" in the FATSECTORS calculation
be a subtraction,  otherwise the backupfs will overlap the
space reserved for Qi at the end of the SD Card.

Please look at this dif to see what I mean:
This commit is contained in:
Christopher Hall 2009-03-09 12:00:57 +00:00 committed by Andy Green
parent 9416da3dc7
commit 3b3f2857a9

View File

@ -70,8 +70,8 @@ echo "$1 is $SECTORS 512-byte blocks"
if [ -z "$4" ] ; then
FATSECTORS=$(( $SECTORS - $EXT3_TOTAL_SECTORS + $REARSECTORS ))
FATMB=$(( $FATSECTORS / 2048 - 16 ))
FATSECTORS=$(( $SECTORS - $EXT3_TOTAL_SECTORS - $REARSECTORS ))
FATMB=$(( $FATSECTORS / 2048 ))
echo "Creating VFAT section $FATMB MB"