Hi,

in my scripted image does by a notebook make a d:\ drive. But when the imageingprozess end and i log into a user the d drive is not formated. Can anyone say why the d drive is not formated. This is my script:

IMG_PARTITION1="38768"
IMG_PARTITION1_TYPE="NTFS"
IMG_EXTEND_LAST_PARTITION="1" #
CREATE_PARTITION2=0
IMG_PARTITION2_TYPE="NTFS"
IMG_MBR_FILE="Addons/MBR/mbr-xp-en"

if [ `hwinfo --bios | grep -ic "Latitude"` = "1" ];
then CREATE_PARTITION2=1;
fi

echo ${CREATE_PARTITION2}

IMG_DELETE_PARTITIONS ()
{
img pd1
img pd2
img pd3
img pd4
}

IMG_CREATE_PARTITIONS ()
{
img pc1 ${IMG_PARTITION1_TYPE} ${IMG_PARTITION1}
if [ ${CREATE_PARTITION2} = "1" ];then
img pc2 ${IMG_PARTITION2_TYPE}
fi
img pa1
}

IMG_CREATE_MBR ()
{
local ReturnCode
if [ ${IMG_MBR_FILE} != "" ];then
tftp ${PROXYADDR} -m binary -c get ${IMG_MBR_FILE} /tmp/mbr
if [ -f /tmp/mbr ];then
echo -e "\nRewriting Master Boot Record ...\n"
dd if=/tmp/mbr of=/dev/sda bs=446 count=1
dd if=/tmp/mbr of=/dev/hda bs=446 count=1
ReturnCode=$?
fi
fi
return ${ReturnCode:=0}
}

CHECK_HW ()
{
HWTYPE=`dmidecode -s system-product-name | sed 's/[ \t]*$//'`
}


CHECK_WSNAME ()
{
## Retrieve the workstation name from Image Safe Data
ZISNAME=`zisview computername`


## If there was no workstation name in Image Safe, retrieve the
## PC's Name from User
if [ -z "${ZISNAME}" ]; then
echo "Bitte den PC-Namen eingeben:"
read ZISNAME
## Set the workstation's name in Image Safe Data
zisedit computername=${ZISNAME}
fi

}

RESTORE_IMG ()
{
img rp $PROXYADDR "//$PROXYADDR/var/opt/novell/zenworks/content-repo/images/xp-base-sp3.zmg" a1:p1
img rp $PROXYADDR "//$PROXYADDR/var/opt/novell/zenworks/content-repo/images/sysprep-de.zmg" a1:p1
img rp $PROXYADDR "//$PROXYADDR/var/opt/novell/zenworks/content-repo/images/appbundle.zmg" a1:p1
img rp $PROXYADDR "//$PROXYADDR/var/opt/novell/zenworks/content-repo/images/${HWTYPE}.zmg" a1:p1
}



CHECK_HW
CHECK_WSNAME
IMG_DELETE_PARTITIONS
IMG_CREATE_MBR
IMG_CREATE_PARTITIONS
RESTORE_IMG
Thanks

Martin