Posted by: isaraffee | August 9, 2009

Two Mount Points For Your CD-ROM and CD-RW

Two Mount Points for your CD-ROM and CD-RW

In case you have CD-Writer and a CD-ROM i.e. you have two separate devices to read the contents of each of these device, you have to do a bit configuration to the /etc/fstab file and /dev directory.

The following is for making a directory cdrw. to make a soft link to the to cdrw and to mount cdrw

# cd /mnt

Make directory /cdrw for your CD-Writer

[root@venus /mnt]# mkdir cdrw

Make a soft link, cdrw to the scd0 device

#cd /dev

[root@venus /dev]# ln -s scd0 cdrw


# ll /dev/cd*

lrwxrwxrwx 1 root root 3 Apr 23 2005 cdrom -> hdc

lrwxrwxrwx 1 root root 4 Aug 3 14:37 cdrw -> scd0

brw-rw—- 1 root disk 15, 0 Apr 14 2001 cdu31a

brw-rw—- 1 root disk 24, 0 Apr 14 2001 cdu535

Add the following into the /etc/fstab file. (you can actually copy your cdrom entry, just change the device to /dev/scd0)

/mnt/cdrw /mnt/cdrw supermount fs=iso9660,dev=/dev/scd0 0 0

Your /etc/fstab file may look like this:

# more /etc/fstab

/dev/hda4 / ext2 defaults 1 1

none /dev/pts devpts mode=0620 0 0

/dev/hda5 /home ext2 defaults,usrquota,grpquota 1 2

/mnt/cdrom /mnt/cdrom supermount fs=iso9660,dev=/dev/cdrom 0 0

/mnt/floppy /mnt/floppy supermount fs=vfat,dev=/dev/fd0 0 0

/dev/hda1 /mnt/windows vfat user,exec,umask=0,codepage=850,iocharset=iso8859-1 0 0

none /proc proc defaults 0 0

/dev/hda3 swap swap defaults 0 0

/mnt/usbking /mnt/usbking supermount fs=vfat,dev=/dev/sda 0 0

/mnt/cdrw /mnt/cdrw supermount fs=iso9660,dev=/dev/scd0 0 0 <–this entry has been added

You now have two different mount points for your CD-ROM and your CD-Writer

To eject and load disc in your CD-ROM type any of the following commands:


#eject -t

#eject cdrom

#eject -t cdrom

#eject /dev/cdrom

#eject -t /dev/cdrom

To eject and load disc in your CD-Write type any of the following commands:

#eject cdrw

#eject -t cdrw

#eject /dev/scd0

#eject -t /dev/scd0


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s


%d bloggers like this: