Posted by: isaraffee | August 9, 2009

Pointing to a Single CD-ROM

TO POINT TO A SINGLE CD-ROM

Let’s say your writer is your CD-ROM as well, which means you only have one device for burning and reading data, to read the contents of the disc in your writer follow the steps below.

Change directory to /dev

List some files by typing:

# ll cd*

lrwxrwxrwx 1 root root 4 Aug 3 15:42 cdrom -> hdc

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

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

The above output shows that your cdrom is pointing to the device hdc. You havbe to make some changes because our writer is pointing to the device scd0. That is why you will not be able to eject the tray using the eject command. To eject the tray you would run the command eject /dev/scd0. i.e. you have to provide the device name. You may also not able to play audio CDs.

To resolve these issues, you should point your cdrom to scd0. Follow the steps below:

In the /dev/ directory, rename your existing cdrom entry to something like cdrom.old

#mv cdrom cdrom.old

Then point the cdrom to the device scd0. That is make a soft link of cdrom to the device scd0.

ln -s scd0 cdrom

When you list the files, you have something like this:

# ll cd*

lrwxrwxrwx 1 root root 4 Aug 3 15:42 cdrom -> scd0

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

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

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

After that verify that you can eject and load the tray using any oe of the following commands.

[root@venus /dev]# eject

[root@venus /dev]# eject -t

[root@venus /dev]# eject /dev/scd0

[root@venus /dev]# eject -t /dev/scd0

By following the step mentioned above you need not edit the /etc/fstab file. My /etc/fstab file looks 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

The cdrom entry is use for burning and reading data. This is possible only after you have make a soft link in /dev directory to point cdrom to the device scd0.

Try to see if now it can read an audio disc.

To play an audio CD, lauch an application like CD Player. If it recognizes the audio files, play one of your tracks and you are in business!

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Categories

%d bloggers like this: