Bugs item #845176, was opened at 2003-11-19 16:05
Message generated for change (Comment added) made by gnico
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100259&aid=845176&group_id=259
Category: Autoinstall Kernel
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: dann frazier (dannf)
Summary: Error partitioning drives when installing client
Initial Comment:
Hello,
When I boot from the installation floppy all goes well until
partitioning using the master install script. The script fails
at "parted -s -- /dev/hda set 1 type=82 on". Looking at the help
on parted type=82 does not appear to be a valid flag or am I
missing something??
I would appreciate any help.
----------------------------------------------------------------------
Comment By: Nicolas Malandain (gnico)
Date: 2004-03-05 00:14
Message:
Logged In: YES
user_id=990838
I have the same problem
the autoinstallscript :
<!--
This file contains partition information about the disks
on your golden
client. It is stored here in a generic format that is
used by your
SystemImager server to create an autoinstall script for
cloning this
system.
You can change the information in this file to affect how
your target
machines are installed. See "man autoinstallscript.conf"
for details.
-->
<config>
<disk dev="/dev/hda" label_type="msdos"
unit_of_measurement="MB">
<!--
This disk's output was brought to you by the partition
tool "sfdisk",
and by the numbers 4 and 5 and the letter Q.
-->
<part num="1" size="972" p_type="primary" p_name="-"
flags="-" />
<part num="2" size="19077" p_type="primary"
p_name="-" flags="boot" />
<part num="3" size="*" p_type="primary" p_name="-"
flags="-" />
</disk>
<fsinfo line="10" comment="# /etc/fstab: static file
system information." />
<fsinfo line="20" comment="#" />
<fsinfo line="30" comment="# <file system>
<mount point> <type> <options>
<dump> <pass>" />
<fsinfo line="40" real_dev="/dev/hda2" mp="/" fs="ext3"
options="errors=remount-ro" dump="0" pass="1" />
<fsinfo line="50" real_dev="/dev/hda1" mp="none"
fs="swap" options="sw" dump="0" pass="0" format="no" />
<fsinfo line="60" real_dev="proc" mp="/proc" fs="proc"
options="defaults" dump="0" pass="0" />
<fsinfo line="70" real_dev="none" mp="/proc/bus/usb"
fs="usbfs" options="defaults" dump="0" pass="0" />
<fsinfo line="80" comment=" " />
<fsinfo line="90" real_dev="/dev/fd0" mp="/floppy"
fs="auto" options="user,noauto,sync" dump="0" pass="0"
format="no" />
<fsinfo line="100" real_dev="/dev/cdrom" mp="/cdrom"
fs="iso9660" options="ro,user,noauto" dump="0" pass="0"
format="no" />
<fsinfo line="110" real_dev="/dev/hda3" mp="/home"
fs="ext3" options="defaults" dump="0" pass="2" />
<fsinfo line="120" comment=" " />
<fsinfo line="130" real_dev="/dev/sda1" mp="/mnt/cleusb"
fs="auto" options="user,noauto,sync" dump="0" pass="0"
format="no" />
<fsinfo line="140" comment=" " />
<fsinfo line="150"
real_dev="profasi.insa-rouen.fr:/home/admasi"
mp="/mnt/profasi" fs="nfs" options="user,noauto" dump="0"
pass="0" format="no" />
<boel devstyle="devfs"/>
</config>
******************************
the master script :
### BEGIN partition /dev/hda ###
echo "Partitioning /dev/hda..."
echo "Old partition table for /dev/hda:"
parted -s -- /dev/hda 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/hda mklabel msdos || shellout"
parted -s -- /dev/hda mklabel msdos || shellout
# Get the size of the destination disk so that we can make
the partitions fit properly.
DISK_SIZE=`parted -s /dev/hda 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/hda1."
START_MB=$END_OF_LAST_PRIMARY
END_MB=$(echo "scale=3; ($START_MB + 972)" | bc)
echo "parted -s -- /dev/hda mkpart primary ext2 $START_MB
$END_MB || shellout"
parted -s -- /dev/hda mkpart primary ext2 $START_MB $END_MB
|| shellout
END_OF_LAST_PRIMARY=$END_MB
echo "Creating partition /dev/hda2."
START_MB=$END_OF_LAST_PRIMARY
END_MB=$(echo "scale=3; ($START_MB + 19077)" | bc)
echo "parted -s -- /dev/hda mkpart primary ext2 $START_MB
$END_MB || shellout"
parted -s -- /dev/hda mkpart primary ext2 $START_MB $END_MB
|| shellout
END_OF_LAST_PRIMARY=$END_MB
echo parted -s -- /dev/hda set 2 boot on || shellout
parted -s -- /dev/hda set 2 boot on || shellout
echo "Creating partition /dev/hda3."
START_MB=$END_OF_LAST_PRIMARY
END_MB=$(( $DISK_SIZE - 0 ))
echo "parted -s -- /dev/hda mkpart primary ext2 $START_MB
$END_MB || shellout"
parted -s -- /dev/hda mkpart primary ext2 $START_MB $END_MB
|| shellout
END_OF_LAST_PRIMARY=$END_MB
echo "New partition table for /dev/hda:"
echo "parted -s -- /dev/hda print"
parted -s -- /dev/hda print
### END partition /dev/hda ###
echo "Load additional filesystem drivers."
modprobe reiserfs
modprobe ext2
modprobe ext3
modprobe jfs
modprobe xfs
### BEGIN swap and filesystem creation commands ###
echo "mke2fs -j /dev/hda2 || shellout"
mke2fs -j /dev/hda2 || shellout
echo "mkdir -p /a/ || shellout"
mkdir -p /a/ || shellout
echo "mount /dev/hda2 /a/ -t ext3 -o defaults || shellout"
mount /dev/hda2 /a/ -t ext3 -o defaults || shellout
echo "mke2fs -j /dev/hda3 || shellout"
mke2fs -j /dev/hda3 || shellout
echo "mkdir -p /a/home || shellout"
mkdir -p /a/home || shellout
echo "mount /dev/hda3 /a/home -t ext3 -o defaults || shellout"
mount /dev/hda3 /a/home -t ext3 -o defaults || shellout
### END swap and filesystem creation commands ###
----------------------------------------------------------------------
Comment By: dann frazier (dannf)
Date: 2003-11-20 17:17
Message:
Logged In: YES
user_id=146718
i'd suggest filing a bug report, ***attaching the
autoinstallscript.conf
file from your image, and the .master script generated from it.
(along with version information for your sis packages &
distribution).***
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100259&aid=845176&group_id=259
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Sisuite-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/sisuite-devel