OK, for what its worth this is the proceedure I used to recover the info on my user data hard disk. I must say that my scripting is not that of an expert but it worked.
Stellar Phoenix Linux is a windows app that reads and recovers ext3 drives.
http://www.stellarinfo.com/linux-data-recovery.htmI removed the ide drive from the sme box and fitted it to a USB external drive housing.
Stellar Phoenix Linux costs US$79, with this software I recovered the data.
It took several hours to scan the hard drive (40GB) and several hours to transfer the recoverd data to a spare hard drive (using a 2nd USB external drive housing.
I then fitted the hard drive back in SME and did the following steps (taken from 'How to add an extra hard disk to SME server)with some of my own mods.
fdisk /dev/hdb (slave ide on first ide bus)
n (to add partition)
p (to make a primary partition)
1 (1st partition)
w (to write partition info to disk)
mkfs -t ext2 /dev/hdb1 (format the hard disk partition)
tune2fs -j /dev/hdb1 (change to ext3)
Make a mount point for HDD
mkdir /mnt/hdbpico /etc/fstab(add the following line)
/dev/hdb1 /mnt/hdb ext3 usrquota,grpquota 1 2mount the drive
mount -a
df -T create subdirectory for users
mkdir /mnt/hdb/userscopy existing users to new hard drive
cp -rip /home/e-smith/files/users/* /mnt/hdb/userscheck for differences
diff -r /home/e-smith/files/users /mnt/hdb/usersRename users
mv /home/e-smith/files/users /home/e-smith/files/users1create symbolic link to new drive
ln -s /mnt/hdb/users /home/e-smith/files/usersIn the windows workstation that was used to recover the data. Share the directory where the infomation was saved making note of the username, password, windows computer name and share name.
make a mount point for the windows share
mkdir /mnt/windowsmount the windows share
mount -t smbfs -o username=(username of windows share),password=(password of windows share) //windowscomputer/sharename /mnt/windowsCheck to see if it is mounted
dfUse this script to copy the user data from the recoverd data in the windows share. Make sure the of the path in the mounted windows share matches the one in this script.
#!/bin/sh
# Script to copy users directories from the backup to the user home
# directory
cd /home/e-smith/files/users
for i in *; do
echo $i
cp -R /mnt/windows/users/$i/home/* /home/e-smith/files/users/$i/home
doneUse the following script to modify permissions
#!/bin/sh
# Script to change ownership of users directories to the user
cd /home/e-smith/files/users
for i in *; do
echo $i
chown -R $i:$i $i
doneUse the following script to change user permissions
#!/bin/sh
# Script to copy users directories from the backup to the user home
# directory
cd /home/e-smith/files/users
for i in *; do
echo $i
chmod -R 700 $i
chmod -R 755 $i/home
chmod -R 755 $i/Maildir
chmod 644 $i/.procmailrc
chmod 644 $i/.qmail
done