hello there again guys, i had already started a bash script that opens the hdd...im having trouble with the mounting part, it produces an error like:
mount: can't find /cdrom in /etc/fstab or /etc/mtab
my script enables the user to place his cd-rom for 5 seconds before it will close, then it will mount and open the cd-rom with nautilus(since im using GNOME) then after 5 seconds it will unmount and then eject the hdd... here is my code
#!/bin/bash
echo -n "Enter password: "
read -s password
if [ "$password" = "jaepi" ]; then
eject /dev/hdd
fi
sleep 5
eject -t /dev/hdd
mount /dev/cdrom
if [ "$?" -eq "0" ]; then
nautilus /cdrom
sleep 5
umount /dev/cdrom
eject /dev/hdd
sleep 5
eject -t /dev/hdd
else
exit 1
fi
what do you think is wrong?? did i miss to set a path or something?? please help...thanks