On Wed, 2005-09-21 at 17:01 -0500, John Jolet wrote:
> > 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?
parted -s --print
        Warning: Unable to align partition properly. This probably means that 
another partitioning tool...
        Disk geometry for /dev/scsi/host0/bus0/target0/lun0/disk: 
0.000-239372.437 megabytes
        Disk label type: msdos
        Minor    Start      End      Type      Filesystem   Flags
        1        0.031      78.442   primary   ext3
        2   239359.087  239366.931   primary
        3   239369.000  239370.000   primary 
        
So can I hack the script some how to make it work?
A strange thing is that /etc/fstab on the image does not have a mount
for /dev/sda2, but screw up systemimager?
Could you send what your paritioning section looks like for comparison?




-------------------------------------------------------
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
Sisuite-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to