> If DISK_SIZE=239372.437, then it doesn't make any sense to have
> '$DISK_SIZE - 1' or -2 or -3.  That has got to be wrong, but can I fix
> it?  Or maybe I don't understand what the output of '$DISK_SIZE - 1'
> should be.
> 
>         ### BEGIN partition /dev/sda ###
>         echo "Partitioning /dev/sda..."
>         echo "Old partition table for /dev/sda:"
>         parted -s -- /dev/sda print
>         
>         # Create disk label.  This ensures that all remnants of the old
>         label, whatever
>         # type it was, are removed and that we're starting with a clean
>         label.
>         echo "parted -s -- /dev/sda mklabel msdos || shellout"
>         parted -s -- /dev/sda mklabel msdos || shellout

>         # Get the size of the destination disk so that we can make the
>         partitions fit properly.
>         DISK_SIZE=`parted -s /dev/sda print | grep 'Disk geometry for' |
>         sed 's/^.*-//g' | sed 's/\..*$//' `
>         [ -z $DISK_SIZE ] && shellout
>         if [ "$ARCH" = "alpha" ]; then
>             END_OF_LAST_PRIMARY=1
>         else
>             END_OF_LAST_PRIMARY=0
>         fi
>         
>         
>         echo "Creating partition /dev/sda1."
>         START_MB=$END_OF_LAST_PRIMARY
>         END_MB="$(echo "scale=3; ($START_MB + 78)" | bc)"
>         echo "parted -s -- /dev/sda mkpart primary ext2 $START_MB
>         $END_MB || shellout"
>         parted -s -- /dev/sda mkpart primary ext2 $START_MB $END_MB ||
>         shellout
>         END_OF_LAST_PRIMARY=$END_MB
>         
>         echo "Creating partition /dev/sda2."
>         START_MB=$(( $DISK_SIZE - 3 ))
>         END_MB=$(( $DISK_SIZE - 2 ))
>         echo "parted -s -- /dev/sda mkpart primary ext2 $START_MB
>         $END_MB || shellout"
>         parted -s -- /dev/sda mkpart primary ext2 $START_MB $END_MB ||
>         shellout
>         END_OF_LAST_PRIMARY=$END_MB
This IS wacked.  this should be START_MB=$END_OF_LAST_PRIMARY, then the
END_MB should look just like the END_MB on the sda1 partitioning.  I'm
running 3.5.3, though....
The only one that should be different is the last one, if you have a
"rest of disk" partition like I do.  what's the output above when it
does a parted -s --print?



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to