Segmentation fault when mounting from a bash script
Hi all, I am running RedHat 9.0 and I'm trying to mount a usb storage device (actually an external hard drive) using a shell script. I use this command to mount from bash shell:
mount -t ext3 /dev/sdc mnt/backup
This command works perfectly as is should; the drive is mounted at /mnt/backup and I can read/write files fine. However, I have a bash script that I want to run to automate this, and when I run it, it pauses for a bit then comes back with "Segmentation fault". I execute the exact same command that I do from the command line. Other commands that are executed in the script work fine, such as a cd and a case switch block. Any ideas as to what could be wrong?