PDA

View Full Version : Need Help setting up cd-rw and dvd drives..........



animated
04-30-2004, 09:56 PM
I installed Knoppix to the HD and now i cant use my cd-rw and dvd drives. The floppy drive wasnt working either but i was able to fix it, but i cannot get these to work. here are some of the tests i have run from reading other posts


dmesg | grep CD

gives me....

hdc: HL-DT-STDVD-ROM GDR8161B, ATAPI CD/DVD-ROM drive
hdd: HL-DT-ST GCE-8481B, ATAPI CD/DVD-ROM drive
Uniform CD-ROM driver Revision: 3.12
hdd: ATAPI 40X CD-ROM CD-R/RW drive, 2048kB Cache


dmesg | grep sc

gives me...

scsi0 : SCSI host adapter emulation for IDE ATAPI devices


and here is my fstab

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda3 / ext2 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdrom1 /cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 ntfs noauto,users,exec,ro,umask=000 0 0
# Added by KNOPPIX
/dev/hda2 /mnt/hda2 ext3 noauto,users,exec 0 0

please help :(

OErjan
05-01-2004, 10:00 AM
and dmesg|grep sr is telling you? if i am not far wrong the cd will be found as srX.
and you might have to add the lines in bold to your /etc/lilo.conf:


# LILO configuration file
# Start LILO global section
append = hdc="ide-scsi" hdd="ide-scsi"
boot = /dev/hda
prompt
timeout = 50

then it is time to check where the links /etc/cdrom and /etc/dvd point. they should be pointing to the right device (that you got from dmesg|sr if i am not all wrong).

animated
05-01-2004, 04:20 PM
when i type


dmesg|grep sr

nothing happens it just shows


root@mybox:/home/knoppix#

also im sorry , but i forgot to mention im using the grub bootloader, here is my grub.conf


# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,1)
# kernel /vmlinuz-version ro root=/dev/hda3
# initrd /initrd-version.img
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title WindowsXP
rootnoverify (hd0,0)
chainloader +1
title Knoppix
root (hd0,2)
kernel /vmlinuz ro root=/dev/hda3



when i type


dmesg|grep sr

i get nothing, so i added what you said to the grub.conf, and still nothing.

more help will be appreciated :(

Stephen
05-01-2004, 08:25 PM
However you do it with grub you need an append="hdc=ide-scsi hdd=ide-scsi" in the grub.conf to tell the system that the CD's are using scsi emulation.

OErjan
05-01-2004, 08:51 PM
in grub you should have the line:

hdc=ide-scsi hdd=ide-scsi
that is no append and no "" needed.
EDIT according to previous poster they are needed, hmm try both
one of them should work. /EDIT
if not what do

dmesg|grep sc
and

dmesg|grep CD
give as output?

hmm, what does
hdparm /dev/hdc and
hdparm /dev/hdd say?

keep trying.
OE

animated
05-01-2004, 09:24 PM
ok i added


hdc=ide-scsi hdd=ide-scsi

so now when i type


dmesg|grep CD

i get



hdc: HL-DT-STDVD-ROM GDR8161B, ATAPI CD/DVD-ROM drive
hdd: HL-DT-ST GCE-8481B, ATAPI CD/DVD-ROM drive
Type: CD-ROM ANSI SCSI revision: 02
Vendor: HL-DT-ST Model: CD-RW GCE-8481B Rev: 1.01
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
Uniform CD-ROM driver Revision: 3.12


this is diffrent from before.
//edit Which one is my cd-rw drive and which is my dvd drive?

when i type


dmesg|grep sr

i get



Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 20x/48x cd/rw xa/form2 cdda tray
sr1: scsi3-mmc drive: 40x/48x writer cd/rw xa/form2 cdda tray


this is also diffrent from before

when i type


hdparm /dev/hdc

i get



HDIO_GET_MULTCOUNT failed: Invalid argument
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
BLKRAGET failed: Invalid argument
HDIO_GETGEO failed: Invalid argument


when i tupe


hdparm /dev/hdd

i get



HDIO_GET_MULTCOUNT failed: Invalid argument
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 0 (off)
keepsettings = 0 (off)
readonly = 0 (off)
BLKRAGET failed: Invalid argument
HDIO_GETGEO failed: Invalid argument


are we geting closer to the solution? :idea:

Stephen
05-01-2004, 11:02 PM
ok i added


hdc=ide-scsi hdd=ide-scsi

so now when i type


dmesg|grep CD

i get



hdc: HL-DT-STDVD-ROM GDR8161B, ATAPI CD/DVD-ROM drive
hdd: HL-DT-ST GCE-8481B, ATAPI CD/DVD-ROM drive
Type: CD-ROM ANSI SCSI revision: 02
Vendor: HL-DT-ST Model: CD-RW GCE-8481B Rev: 1.01
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
Uniform CD-ROM driver Revision: 3.12


this is diffrent from before.
//edit Which one is my cd-rw drive and which is my dvd drive?


From the naming of the drives in the output I will go with the hdc entry.





are we geting closer to the solution? :idea:

Yes the drives are detected as they should be now you need to tell us how you have tried to access the drives now that they are correctly detected and this need to be explained better than it does not work like in your first post. A couple of things you can do if the drives do not work is check the links eg. ls -l /dev/cdrom, ls -l /dev/cdrom1, ls -l /dev/dvd and you should follow the links to these links to get to the underlying device:



>$ ls -l /dev/cdrom
lrwxrwxrwx 1 root root 11 2004-03-30 22:40 /dev/cdrom -> /dev/cdrom0
>$ ls -l /dev/cdrom0
lrwxrwxrwx 1 root root 9 2004-03-30 22:40 /dev/cdrom0 -> /dev/scd0

>$ ls -l /dev/dvd
lrwxrwxrwx 1 root root 9 2004-03-30 22:40 /dev/dvd -> /dev/scd0



This shows me that my /dev/cdrom is linked to the /dev/cdrom0 which in turn links to the real device /dev/scd0. For the /dev/dvd link it shows that when I made it I just put it to the device directly and did not bother with another link in between. If I am correct and the hdc entry is your DVD eg it is the first device you have in windows and the rw is the second then the links for any device you want to use it for should lead to the /dev/scd0 and the links for the cdrw should be going to the /dev/scd1. Now it is a little hard to tell you which way to set the links up without knowing how you want/prefer to have them setup but obviously you want the /dev/dvd to point to the actual dvd player so you would as root assuming I am right about the location ln -sf /dev/scd0 /dev/dvd if the link to the /dev/dvd does not point to the correct device now. So tell us how you want the links setup and anything you have done trying to access the drives now.

One more thing I usually change the entries in the /etc/fstab to the /dev/scd0 and /dev/scd1 if there is a second device to use tha actual devices instead of the links so you would if you want to do the same in your /etc/fstab use:



/dev/scd0 /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/scd1 /cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0


Instead of.



/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdrom1 /cdrom1 iso9660 defaults,ro,user,noexec,noauto 0 0

OErjan
05-01-2004, 11:35 PM
it say sr0 and sr1 in output.
sr0 seems to be dvd and sr1 cdburner.
so changing the links to those should work, /dev/cdrom to /dev/sr1 and /dev/dvd to sr0.

ln -sf /dev/sr0 /dev/dvd
and

ln -sf /dev/sr1 /dev/cdrom

btw. why scd? have i missed something?
srX has worked for me and several others, as his output say srX why scdX?

animated
05-02-2004, 12:03 AM
thanks! The drives seem to work now

I did



ln -s /dev/sr0 /dev/dvd
ln -s /dev/sr1 /dev/cdrom


then i created icons for the new devices on my desktop and everything worked

thanks for all the help :D

OErjan
05-02-2004, 09:04 AM
:-) great it worked :D
have a nice penguin life then :D