Results 1 to 6 of 6

Thread: cdrom & 2.6 kernel

  1. #1
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981

    cdrom & 2.6 kernel

    I can access cdroms & audio cd's when using the 2.4 kernel but not with the 2.6 kernel. Knoppix 3.4 HD installed, it's not a system problem, it happens on both my desktop & my laptop.
    Clicking on the cd icon gives /dev/cdrom does not exist error (meaning autofs has not mounted the cd & created /mnt/auto/cdrom). Attempting to mount manually mount /dev/cdrom gives 'dev/cdrom does not exist' error.
    Any ideas? Anyone else having this problem?

  2. #2
    Member registered user
    Join Date
    Apr 2004
    Posts
    35
    I had the same problem. It seems to be a not cleanly solved issue on the Knoppix distribution. The developers seem to assume when you boot with a certain kernel you will always use this kernel.
    The problem is:
    With kernel 2.4.x cdrom devices use an SCSI-emulation layer for writing CDs. They are mapped as /dev/scd0, /dev/scd1, etc. With the newer kernel 2.6.x this emulation layer is not necessary any more. So IDE cdrom devices are accessed through /dev/hda, /dev/hdb, etc. So when you have the necessity to boot sometimes 2.4.x and sometimes 2.6.x, then you should install my boot script solution. When you want to use only 2.6.x in future you should just change the symbolic links in /dev.

    First the manual way (only boot 2.6.x in future):
    Got to /dev and change all links which point to an scd-device (dvd, cdrom, etc.) to point to an hdx-device. It may be that some (KDE-)programs have also saved some links to scd-devices in their configuration.

    Now the automated way:
    Save the following script in /etc/init.d to the file update-dvd-links and make it executable. Then create a symbolic link in /etc/rcS.d with "ln -s ../init.d/update-dvd-links S30update-dvd-links". The script asks for the major kernel version at boot time and updates the links at every boot sequence.
    IMPORTANT: Change this script for YOUR needs! Otherwise your cdrom devices will NOT work!

    #!/bin/sh

    rm /dev/NEC_dvd
    rm /dev/LITEON_dvd
    rm /dev/dvd
    KERNVER=$(uname -r)
    if [ "${KERNVER:0:3}" == "2.4" ]; then
    ln -s /dev/scd0 /dev/NEC_dvd
    ln -s /dev/scd1 /dev/LITEON_dvd
    ln -s /dev/scd1 /dev/dvd
    else
    ln -s /dev/hda /dev/NEC_dvd
    ln -s /dev/hdb /dev/LITEON_dvd
    ln -s /dev/hdb /dev/dvd
    fi
    chgrp cdrom /dev/hda
    chgrp cdrom /dev/hdb

  3. #3
    Senior Member registered user
    Join Date
    Jul 2004
    Location
    Wisconsin, USA
    Posts
    536
    This is how I fixed mine:

    ln -sf /dev/scd0 /dev/cdrom

    ln -sf /dev/scd1 /dev/cdaudio

    or whatever the corresponding scd# is.

    Deleted the icons and made new ones.

    Can check to see if it works with a data cd in. Will not mount an audio cd. Must open audio cd with a player.

  4. #4
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    I think the problem is auto fstab with knoppix-autoconfig. I would append nofstab to lilo or grub if I had the problem, and edit my fstab.
    For the autofs to work, I will check /etc/automaster,automisc and automnt.
    In /etc/rc5.d, I will check for existence of autofs script.


  5. #5
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981
    Update:
    Did a bunch of research on this, it appears the 2.6 kernel cdrom acces may not be properly implemented in Knoppix. With the 2.6 kernel, cdrom drive connected to the ide are supposed to be set up the same as HDD's, ie my cdrom should be /dev/hdb or /dev/hdc or similar. However, it is still being detected as /dev/scd0, same as with the 2.4 kernel but the link /dev/cdrom was not being created with the 2.6 kernel.

    No matter, I tried the suggestions above, couldn't implement kdeuser123's scripts as I couldn't figure out what my equivalent for /dev/NEC_dvd et al would be.
    'ln -s /dev/scd0 /cdrom' worked but then automounter wouldn't go.
    'ln -s /dev/scd0 /dev/cdrom' (which duplicated the 2.4 kernel setup) worked OK, even the desktop icon worked but the link /dev/cdrom would be erased with each boot. I had to modify /etc/init.d/knoppix-autoconfig to get it to stay permanent. (I am using knoppix style HDinstall which autodetects each boot as I want to remaster from it).

    So, for reference for others:

    1) If /dev/cdrom does not exist, create it with 'ln -s /dev/scd0 /dev/dcrom'
    2) Remove '/dev/cdrom' from the following line in /etc/init.d/knoppix-autoconfig so that it doesn't get erased. This is about line 500:

    Code:
    # Delete obsolete links and files before starting autoconfig
    if ! checkbootparam "nohwsetup"; then
    rm -f /dev/cdrom* /dev/cdwriter* /dev/mouse* /dev/modem* /dev/scanner* \
          /etc/sysconfig/i18n /etc/sysconfig/keyboard /etc/sysconfig/knoppix \
          2>/dev/null
    fi
    Hope this helps somebody else.

  6. #6
    Senior Member registered user
    Join Date
    May 2003
    Posts
    981
    Just an update in case anyone else is having this problem...I think it has been fixed with Knoppix 3.6 & up.

    This solution above work but will end up creating an additional /dev/cdrom each time it boots until there is a big collection of them.

    So: Leave /dev/cdrom in the list of old links to remove but re-create it again right away with 'ln -sf /dev/scd0 /dev/cdrom'.

    Code:
    # Delete obsolete links and files before starting autoconfig 
    if ! checkbootparam "nohwsetup"; then 
    rm -f /dev/cdrom* /dev/cdwriter* /dev/mouse* /dev/modem* /dev/scanner* \ 
          /etc/sysconfig/i18n /etc/sysconfig/keyboard /etc/sysconfig/knoppix \ 
          2>/dev/null 
    ln -sf /dev/scd0 /dev/cdrom
    fi

Similar Threads

  1. How do I install kernel source and config/compile kernel??
    By cfish in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 04-25-2005, 07:31 AM
  2. Knoppix 3.4-2.6.5 kernel cdrom fix
    By Romkillah in forum Hardware & Booting
    Replies: 0
    Last Post: 05-13-2004, 01:29 AM
  3. Problem with CDROm after kernel compilation
    By bcalder in forum General Support
    Replies: 5
    Last Post: 03-15-2004, 09:42 PM
  4. Modified kernel results in Kernel Panic - No init found.
    By tji in forum Customising & Remastering
    Replies: 4
    Last Post: 06-12-2003, 06:40 PM
  5. knoppix cdrom boot fails on some cdrom players
    By Koga in forum General Support
    Replies: 3
    Last Post: 01-11-2003, 12:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


16GB KIT (2x8GB) DDR3 Gamer Desktop RAM PC3 MIXED BRANDS VIPER VENGEANCE FURY picture

16GB KIT (2x8GB) DDR3 Gamer Desktop RAM PC3 MIXED BRANDS VIPER VENGEANCE FURY

$10.00



Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit picture

Netac DDR4 32GB 16GB DDR4 3200MHz UDIMM C16 Desktop Internal Memory RAM Kit

$99.99



MTC8C1084S1SC56BD1 Micron 16GB DDR5 1Rx8 PC5-5600B 5600Mhz SO-DIMM Memory picture

MTC8C1084S1SC56BD1 Micron 16GB DDR5 1Rx8 PC5-5600B 5600Mhz SO-DIMM Memory

$149.99



A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G picture

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G

$21.68



Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC picture

Major Brand 16GB (2x8GB) PC3-12800U DDR3-1600MHz DDR3-12800 DESKTOP RAM NON-ECC

$29.99



Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM  M393A4K40CB2-CTD6Q picture

Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM M393A4K40CB2-CTD6Q

$169.00



Crucial Laptop Ram 32GB (2x16GB) RAM DDR4 3200MHz CT16G4SFRA32A picture

Crucial Laptop Ram 32GB (2x16GB) RAM DDR4 3200MHz CT16G4SFRA32A

$119.99



RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED picture

RAMAXEL Lenovo 32GB LPDDR5X CAMM2 7500MHz Laptop RAM | UNTESTED

$445.00



Micron 32GB 1x32GB DDR5 5600 CL46 ECC Unbuffered SO-DIMM MTC20C2085S1TC56BD1 picture

Micron 32GB 1x32GB DDR5 5600 CL46 ECC Unbuffered SO-DIMM MTC20C2085S1TC56BD1

$399.00



Corsair Vengeance DDR3 8GB 16GB 32GB 1866MHz PC3-14900 Desktop RAM Memory DIMM picture

Corsair Vengeance DDR3 8GB 16GB 32GB 1866MHz PC3-14900 Desktop RAM Memory DIMM

$43.00