Hi everyone,

I am having a problem with a statrtup script that I created to automatically mount my ntfs partition into certain directories. Here is the script:

1. I create a mount point in /mnt and the script in /opt/,

mkdir /mnt/d
mkdir /opt/ntfs/
vi /opt/ntfs/mntntfs.sh

2. I enter the script into the mntntfs.sh file:

#!/bin/bash
# chkconfig: 345 91 19
# description: mount NTFS on startup

case $1 in
*)

echo "Mounting Windows 7 NTFS Filesystem to /mnt/d."
mount --bind /mnt/d/Libraries/Documents /home/bill/Documents
mount --bind /mnt/d/Libraries/Templates /home/bill/Templates
mount --bind /mnt/d/Libraries/Videos /home/bill/Videos
mount --bind /mnt/d/Libraries/Public /home/bill/Public
mount --bind /mnt/d/Libraries/Pictures /home/bill/Pictures
mount --bind /mnt/d/Libraries/Music /home/bill/Music
mount --bind /mnt/d/Libraries/downloads /home/bill/downloads
mount --bind /mnt/d/Libraries/Virtualbox /home/bill/virtualbox
mount --bind /mnt/d/Libraries/Work /home/bill/work
mount --bind /mnt/d/Libraries/Programming /home/bill/Programming
mount --bind /mnt/d/Libraries/Torrent /home/bill/torrent

esac
exit 0
#End of boot script
##

3. I copy the file to /etc/rc.d/init.d and make it active:

cp /opt/ntfs/mntntfs.sh /etc/rc.d/init.d
cd /etc/rc.d/init.d
chmod +x mntntfs.sh
/sbin/chkconfig --add mntntfs.sh

This has worked perfectly on my laptop, (dual boot Fedora 12 and Win 7), however, it is not working on my desktop. I was getting an error that the script would not start in run level 5, (sorry, foolishly did not save the actual error message).

I then created a symbolic link to the script with the follow command:
cd /etc/rc.d/rc5.d
ln -sv /etc/rc.d/init.d/mntntfs.sh

When I rebooted, my directories were still not mounted.

Does anyone have a suggestions where I went wrong?

Thanks

zog