LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   kernel 2.6.10 > cdrom not working anymore. (https://www.linuxquestions.org/questions/slackware-14/kernel-2-6-10-cdrom-not-working-anymore-281278/)

xushi 01-23-2005 01:06 PM

kernel 2.6.10 > cdrom not working anymore.
 
Lo all,

I've finally had the courage to upgrade to kernel 2.6.10, and to be honest it works perfectly, much faster and responsive, and actually fixed a few things in the laptop ( compaq hp presario x1000 ) that weren't working before...

However, i used to run both my dvd writer, and my external usb dvd writer using SCSI emulation in 2.4.28. (/dev/cdrom which is a simlink to /dev/sr0 for the dvd writer, and /dev/sr1 for the external one).

But now, not only do i get
mount: special device /dev/cdrom does not exist

but when i search in /dev, half the stuff in there is gone!?
There is no more any hdb, hdcx (x 1:4), hdd, sr0, sr1, etc... Here is what's left..

Code:

root@xushitop:/dev# d
agpgart@  hda1        nvidia0    ram2@    stdout@  tty20@  tty34@  tty48@  tty61@  vcs6@  vmnet4
console  hda2        nvidia1    ram3@    tty      tty21@  tty35@  tty49@  tty62@  vcs7@  vmnet5
core@    hda3        nvidiactl  ram4@    tty0@    tty22@  tty36@  tty5@  tty63@  vcsa@  vmnet6
cpu/      hda4        port      ram5@    tty1@    tty23@  tty37@  tty50@  tty7@    vcsa1@  vmnet7
dri/      initctl|    ppp        ram6@    tty10@  tty24@  tty38@  tty51@  tty8@    vcsa2@  vmnet8
dsp@      input/      ptmx      ram7@    tty11@  tty25@  tty39@  tty52@  tty9@    vcsa3@  vmnet9
fb/      kmem        pts/      ram8@    tty12@  tty26@  tty4@  tty53@  urandom  vcsa4@  zero
fb0@      kmsg        ram0@      ram9@    tty13@  tty27@  tty40@  tty54@  vc/      vcsa5@
fd@      log=        ram1@      random  tty14@  tty28@  tty41@  tty55@  vcc/    vcsa6@
fd0      loop0      ram10@    rd/      tty15@  tty29@  tty42@  tty56@  vcs@    vcsa7@
fd1      mem        ram11@    rtc@    tty16@  tty3@  tty43@  tty57@  vcs1@    vmmon
fd2      microcode@  ram12@    shm/    tty17@  tty30@  tty44@  tty58@  vcs2@    vmnet0
fd3      misc/      ram13@    sound/  tty18@  tty31@  tty45@  tty59@  vcs3@    vmnet1
full      mixer@      ram14@    stderr@  tty19@  tty32@  tty46@  tty6@  vcs4@    vmnet2
hda      null        ram15@    stdin@  tty2@    tty33@  tty47@  tty60@  vcs5@    vmnet3

Mind you, the internal dvd writer is registered by the kernel.. Here's the output of dmesg
Code:

Probing IDE interface ide0...
hda: TOSHIBA MK8025GAS, ATA DISK drive
elevator: using anticipatory as default io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: SONY DVD+RW DW-P50A, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15

As for the external dvd writer, when i connect it, i now only get this,
Code:

usb 1-5: USB disconnect, address 3
usb 1-5: new high speed USB device using ehci_hcd and address 4

Back in 2.4.28, it used to assign it to /dev/sr1 ...

I'm not sure if i missed anything in the kernel that i should have enabled.. and tbh, i'm not sure why i dont even have hdc, or sr0, sr1 in /dev anymore... All i know is that i don't need SCSI emulation (or SCSI as a whole) anymore in 2.6.10 for my dvd writers..

Thanks

EDIT: Forgot to show you my /etc/fstab
Code:

/dev/hda3        swap            swap        defaults        0  0
/dev/hda2        /                ext3        defaults        1  1
/dev/hda4        /home            ext3        defaults        1  2
/dev/cdrom      /mnt/cdrom      iso9660    noauto,owner,ro  0  0
/dev/sr1        /mnt/dvd        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
tmpfs          /dev/shm        tmpfs          defaults        0  0


xushi 01-23-2005 01:36 PM

One down, one to go :)

Turns out i had to edit /etc/lilo.conf, and replace
append="hdc=ide-scsi"
with
append="hdc=ide-cd"

save, exit, type
lilo
reboot, ls /dev/ and hdc is there..

However, i still have the external dvd writer to sort out.. When i type 'dmesg' i get
Code:

usb 1-5: USB disconnect, address 3
usb 1-5: new high speed USB device using ehci_hcd and address 4
root@xushitop:~#

So i'm going to try and add
append="hdc=ide-cd ehci_hcd=ide-cd"
reboot, and see if that works too or not.

EDIT : external usb dvd didn't work =/ stuck..

xushi 01-24-2005 05:26 PM

I'm still stuck, but a little update..
I've enabled
USB Support -> USB Mass Storage support (m)
as a module, and now, dmesg outputs
Code:

usb 1-5: new high speed USB device using ehci_hcd and address 5
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
  Vendor: _NEC      Model: DVD_RW ND-2510A  Rev: 2.04
  Type:  CD-ROM                            ANSI SCSI revision: 00
usb-storage: device scan complete

So the kernel can see and verify the external dvd writer properly. But i still can't figure out how to mount it.. There is no hdd, or sr0 in /dev..
Code:

root@xushitop:/dev# d
agpgart@  full        misc/      ram13@  sound/  tty18@  tty31@  tty45@  tty59@  vcs2@  vmnet0
cdrom@    hda        mixer@    ram14@  stderr@  tty19@  tty32@  tty46@  tty6@    vcs3@  vmnet1
console  hda1        null      ram15@  stdin@  tty2@  tty33@  tty47@  tty60@  vcs4@  vmnet2
core@    hda2        nvidia0    ram2@  stdout@  tty20@  tty34@  tty48@  tty61@  vcs5@  vmnet3
cpu/      hda3        nvidia1    ram3@  tty      tty21@  tty35@  tty49@  tty62@  vcs6@  vmnet4
dri/      hda4        nvidiactl  ram4@  tty0@    tty22@  tty36@  tty5@  tty63@  vcs7@  vmnet5
dsp@      hdc        port      ram5@  tty1@    tty23@  tty37@  tty50@  tty7@    vcsa@  vmnet6
dvd@      initctl|    ppp        ram6@  tty10@  tty24@  tty38@  tty51@  tty8@    vcsa1@  vmnet7
fb/      input/      ptmx      ram7@  tty11@  tty25@  tty39@  tty52@  tty9@    vcsa2@  vmnet8
fb0@      kmem        pts/      ram8@  tty12@  tty26@  tty4@  tty53@  urandom  vcsa3@  vmnet9
fd@      kmsg        ram0@      ram9@  tty13@  tty27@  tty40@  tty54@  usb/    vcsa4@  zero
fd0      log=        ram1@      random  tty14@  tty28@  tty41@  tty55@  vc/      vcsa5@
fd1      loop0      ram10@    rd/    tty15@  tty29@  tty42@  tty56@  vcc/    vcsa6@
fd2      mem        ram11@    rtc@    tty16@  tty3@  tty43@  tty57@  vcs@    vcsa7@
fd3      microcode@  ram12@    shm/    tty17@  tty30@  tty44@  tty58@  vcs1@    vmmon

hdc = internal dvd writer btw.
Any help appreciated.

xushi 01-25-2005 05:02 PM

bump.
Anyone? =(
I'm still stuck with this..

perfect_circle 01-26-2005 01:56 PM

Quote:

Turns out i had to edit /etc/lilo.conf, and replace
append="hdc=ide-scsi"
with
append="hdc=ide-cd"
I don't think you need the append at all.
Quote:

usb 1-5: new high speed USB device using ehci_hcd and address 5
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
Vendor: _NEC Model: DVD_RW ND-2510A Rev: 2.04
Type: CD-ROM ANSI SCSI revision: 00
usb-storage: device scan complete
Maybe you just have to create the device node, since your drive is being detected, using mknod.
Why don't u try
Code:

mknod /dev/sr0 b 0 11
(I don't know much about 2.6, it's just a guess)

xushi 01-26-2005 03:34 PM

Code:

root@xushitop:~# mknod /dev/sr0 b 11
mknod: wrong number of arguments

I'm sure i've missed something somewhere.. Coz i saw how hdc was automatically created once i fiddled around with lilo.conf..

perfect_circle 01-26-2005 05:20 PM

first of all you forgat a zero.
But it was wrong anyway.
I think this is it:
Code:

mknod /dev/sr0 b 11 0
Quote:

I'm sure i've missed something somewhere.. Coz i saw how hdc was automatically created once i fiddled around with lilo.conf..
using ide-scsi did create the nodes in my system automatically, but I had to create the node for my usb modem. It was not created automatic, after loading the modules.
I used to get this kernel message:
Code:

hub.c: new USB device 00:10.0-1, assigned address 2
and after i created ttyACM0 i got this:
Code:

ub.c: new USB device 00:10.0-1, assigned address 2
ttyACM0: USB ACM device

Also check if you got all the modules you need up. Some of them have different names on 2.6. I can't help you on this.

artistikone 01-27-2005 05:44 PM

Have you checked in /dev/usb ? With 2.6.10 you no longer need SCSI emu. The append line is correct. You can also check /var/log/messages for udev output to see where it's creating the device.

jawkins 01-27-2005 06:40 PM

Do you have SCSI disk/CD support enabled in your kernel? AFAIK you still need SCSI support for USB storage devices in 2.6. It's just IDE/ATAPI drives that no longer need to use the SCSI emulation layer for writing.

Jim

xushi 01-28-2005 11:54 AM

Sorry for the late reply,

mknod failed miserably, and i dont see why the system isnt doing all this in the first place

/dev/usb has only
lp0

here is the output o f/var/log/messages
Code:

Jan 28 17:44:30 xushitop kernel: usb 1-5: new high speed USB device using ehci_hcd and address 4
Jan 28 17:44:31 xushitop kernel: SCSI subsystem initialized
Jan 28 17:44:31 xushitop kernel: Initializing USB Mass Storage driver...
Jan 28 17:44:31 xushitop kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jan 28 17:44:31 xushitop kernel: usbcore: registered new driver usb-storage
Jan 28 17:44:31 xushitop kernel: USB Mass Storage support registered.
Jan 28 17:44:36 xushitop kernel:  Vendor: _NEC      Model: DVD_RW ND-2510A  Rev: 2.04
Jan 28 17:44:36 xushitop kernel:  Type:  CD-ROM                            ANSI SCSI revision: 00

That's for the external ide > usb drive.. nothing about the internal (hdc) one.. =(

No, i don't have scsi disk/cd support, but here's my settings
for SCSI Device support

SCSI device support (m)
legacy /proc/scsi support (*)

That's it. I was told the SCSI support was depreciated in 2.6 for burning CD and DVDs.. but anyway ill give it a try.

Currently, still stuck with the external one. My internal one burns to say 20% of CD, stalls, fixates, and then fails with cdrecord unknown error code 254

xushi 01-28-2005 12:16 PM

FINALLY

some light shed on me... A thousand thanks jawkins, i've enable scsi cd/disk and sr0 is back again, and i can mount my ext dvd drive to it..

Now i have to test the burning on them 2 and see if that works.

I don't really mind if ide-scsi has been depreciated.. its been a week now, and if it works, then i'm happy :)

I'll keep you all posted

EDIT:
External DVD Drive (USB)
Code:

usb 1-5: new high speed USB device using ehci_hcd and address 5
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
  Vendor: _NEC      Model: DVD_RW ND-2510A  Rev: 2.04
  Type:  CD-ROM                            ANSI SCSI revision: 00
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
Attached scsi CD-ROM sr0 at scsi1, channel 0, id 0, lun 0
usb-storage: device scan complete

Internal DVD Drive
Code:

    ide1: BM-DMA at 0x4c48-0x4c4f, BIOS settings: hdc:DMA, hdd:pio
hdc: SONY DVD+RW DW-P50A, ATAPI CD/DVD-ROM drive
hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 8192kB Cache, UDMA(33)



All times are GMT -5. The time now is 02:07 AM.