Quote:
Originally Posted by entrencher
it is RHEL 5 GNOME
|
In Gnome Desktop environment, simply right click on desktop and select Floppy drive or CD Drive from the context menu that appears. An icon with caption Floppy or CD Rom Device will appear, which can be used to mount, un mount and access the device. Alternately, you can write a shell script to mount or un mount CD Rom device or Floppy drive and put a link of this on your desktop. Now simply double click these links to perform your desired task. The similar procedure can be performed for any number of tasks that are repeated. The size of most used icon can be increased to distinguish it from other. For that, right click on the selected icon and then select ‘Stretch icon’ from the context menu that appear. Now you can drag any corner of the icon to a suitable size.
To write shell script for mounting CD Rom Drive, start any text editor and type following lines exactly as they appear:
#!bin/sh
mount /mnt/cdrom
Save the file as mount cd and then through file manager, change its property to executable. Now, put a link to the file or put the file itself in your desk top. You can assign a nice icon for this link or file. Simply clicking on this icon and selecting ‘Run’ will mount your CD Rom Drive.
Similarly, for un mounting your CD Rom Drive, write following script and follow above steps to create desktop icon as un mount CD.
#!bin/sh
umount /mnt/cdrom