LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-30-2004, 07:50 AM   #1
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Rep: Reputation: 31
Cant read CDs


Hi,
I have Slackware 9.1 installed on my machine. I have a Samsung CD/RW and I cant read CDs in linux. I have enable IDE-SCSI emulation in lilo. here's the lilo.conf file:


# Start LILO global section
boot = /dev/hda
append="hdd=ide-scsi"
prompt
timeout = 50
vga = 771
# End LILO global section
# DOS bootable partition config begins
other = /dev/hda1
label = windows
table = /dev/hda
# DOS bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda9
label = Linux
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends


And heres the /etc/fstab file:

/dev/hda8 swap swap defaults 0 0
/dev/hda9 / ext3 defaults 1 1
/dev/hdc1 /mnt/windows vfat users,owner,rw,umask=000 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

Everything seems to be normal to me. But that why cant I read any CDs??
Anyone can help??
 
Old 05-30-2004, 08:39 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
With SCSI emulation your CDRW device is /dev/scd0. /dev/cdrom is a link to the actual device ID. So where is the link pointing?

ls -l /dev/cdrom

Try mounting the CD manually:
mount -t iso9660 /dev/scd0 /mnt/cdrom

Are you trying to read a data or audio CD?
 
Old 05-30-2004, 10:53 AM   #3
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Original Poster
Rep: Reputation: 31
I can read CDs by mounting the drive manually. Then I tried the eject command, but that didn't work. It was giving me an error. So I did "eject -v" and I got this output:

eject: using default device `cdrom'
eject: device name is `cdrom'
eject: expanded name is `/dev/cdrom'
eject: `/dev/cdrom' is a link to `/dev/hdd'
eject: `/dev/hdd' is not mounted
eject: `/dev/hdd' is not a mount point
eject: `/dev/hdd' is a multipartition device
eject: trying to eject `/dev/hdd' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/hdd' using SCSI commands
eject: SCSI eject failed
eject: trying to eject `/dev/hdd' using floppy eject command
eject: floppy eject command failed
eject: trying to eject `/dev/hdd' using tape offline command
eject: tape offline command failed
eject: unable to eject, last error: Invalid argument

When I was in Gnome as root, then I could eject the drive using nautulis. What exactly is happening? Why cant I eject in the CLI?

Also, will I need to change my fstab file in any way? Will I always have to mount the drive manually?
 
Old 05-30-2004, 11:21 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
The /dev/cdrom is a link that points to /dev/hdd. Since you are now using SCSI emulation your CDRW dev is /dev/scd0. This is also why eject failed.

Delete old link
rm /dev/cdrom
Create new link
ln -s /dev/scd0 /dev/cdrom
 
Old 05-31-2004, 12:58 AM   #5
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Original Poster
Rep: Reputation: 31
It seemed obvious to me that I should change the /dev/hdd in fstab to /dev/scd0.
Thanks for helping, michaelk. But there are a couple of problems that remain still unsolved.

Problem #1 - I always have to mount the CD manually. Earlier when I was using redhat, the CD was automatically mounted, even if I was not logged in as root. In slack, I have to mount it manually.

Problem #2 - The eject command is now working, but it works only as root. How can I let the eject command work for all users?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can only read DVDs or CDs, not both spitfire999 Linux - Hardware 1 04-14-2005 10:26 PM
Can't Boot or Read Slackware CDs Smoothius Slackware - Installation 4 09-07-2004 10:52 PM
cannot read data cds ac404 Linux - Hardware 1 03-15-2004 12:59 PM
cds don't read properly i_is_cat Linux - Hardware 6 08-09-2003 11:32 PM
can read cds but can't read cd-rws eduardo_ha Linux - Hardware 4 10-21-2002 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration