Shell script to make and mount a Partition

Hi,

I need to mount a new partition in a series of Pc that have a single hard drive of 20 GB; the used and partioned space amounts to 10 GB, between root, boot and swap; the script is to make the mounting process automatic

These are the contents of my script:
**********************************************
cd /
#gave the list of commands from the file "origin"
sbin/fdisk /dev/hda < origin

#read the partition table, format the new and give it a name "/data"

#partprobe doesn't work
#sfdisk /dev/hda -R doesn't work either

mkfs.ext3 /dev/hda4
e2label /dev/hda4 /data

#make a "/data" directory, and place it in fstab
mkdir /data
LINEA='/data /data ext3 defaults 1 1'
grep "$LINEA" /etc/fstab >/dev/null || echo $LINEA >> /etc/fstab
mount -a
**********************************************

And these are the contents of origin:
**************************************
n
e
1294
2434
w
**************************************

But here is where i'm having trouble, i can't seem to make the system re-read the partition table (doesn't have partprobe, and sfdisk /dev/hda -R doesn't work at all)

There is a way to make this script run at boot time, before it read the partition table, forcing it to make the changes? This script should run just once in every equip. I'm utterly lost here, i would appreciate any help in the solution.

I am new tho shell scripting and linux in general, perhaps this is not the right way to do what i want.

Sorry for this, i've read the rules of the forum, but has anyone an idea to offer? This is quite important, and perhaps i haven't made myself clear (English is a non native language).

Any hint or help would be greatly appreciated. Thanks in advance.