Hello Erland
Thanks for the script. I think that I have seen something related to your problem. If I let run the script in original form, sometimes the disc seemed to be mounted ok (no strange logs), but in reality the disc was NOT mounted normally, but without to generate an error-message! And this gives trouble...!
I guess you use ext3 as fs. So I have taken the mount and unmount command like I use in my script (see below)in which the parameters of fs-type '-t ext3' and access-type '-o rw' are exactly given.
And... aloha ...the disc could be mounted and unmounted flawless!
I think that the system doesn't know exactly which fs-type to take.
Try it once with the patched script below:
#!/bin/sh
if [ -e /home/e-smith/files/ibays/winfinans/files/backup.txt ]; then
alias cp='cp -f'
mount -t ext3 /dev/hdc1 /mnt/wd2 -o rw
cp -a /home/e-smith/files/ibays/ikke-off./files/* /mnt/wd2/ikke-off.
cp -a /home/e-smith/files/ibays/winfinans/files/* /mnt/wd2/winfinans
umount /mnt/wd2
rm /home/e-smith/files/ibays/winfinans/files/backup.txt
fi
Best wishes from Switzerland
Stefan