Hello. I have seen a template for a script which is supposed to mount a CD if not mounted, and eject it if it is mounted.
Code:
#!/bin/sh
# script to mount/umount cdrom
# for use with xfce4-trigger-launcher
if [ "$1" = "1" ]; then
mount /cdwriter &> /dev/null
elif [ "$1" = "0" ]; then
eject /cdwriter &> /dev/null
else
STATUS=`grep cdwriter /proc/mounts`
if [ "x$STATUS" = "x" ]; then
echo 0
else
echo 1
fi
fi
My question is how do I make this script work for my own system.
Here's the relevant fstab line:
Code:
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
Also, mounting a cd as a normal user does not work, can anyone tell me how I can enable mounting for a normal user?
Thanks in advance for your replies.