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
  •  


HP ProLiant MicroServer Gen8 G1610T @2.3 GHz, 16GB, 712317-001 NO HDD/OS picture

HP ProLiant MicroServer Gen8 G1610T @2.3 GHz, 16GB, 712317-001 NO HDD/OS

$199.00



Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset picture

Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset

$129.99



Supermicro 1U Network Server Appliance 16GB RAM 800GB SSD 6 LAN Ports Powers On picture

Supermicro 1U Network Server Appliance 16GB RAM 800GB SSD 6 LAN Ports Powers On

$450.00



Supermicro E300-12C Mini 1U Barebone X12SCV-LVDS LGA1200 SNK-P0073A4 w/ Adapter picture

Supermicro E300-12C Mini 1U Barebone X12SCV-LVDS LGA1200 SNK-P0073A4 w/ Adapter

$225.00



Supermicro E200-8D Mini Server Xeon D-1528 6-Core 64GB ECC 1TB SSD 2x10GbE IPMI picture

Supermicro E200-8D Mini Server Xeon D-1528 6-Core 64GB ECC 1TB SSD 2x10GbE IPMI

$525.00



HP PROLIANT MICROSERVER GEN8 E3-1220LV2 @ 2.30GHz, 8GB RAM, NO HDD/OS picture

HP PROLIANT MICROSERVER GEN8 E3-1220LV2 @ 2.30GHz, 8GB RAM, NO HDD/OS

$164.97



Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram  240gb SSD 2x GPU *READ* picture

Supermicro 2U X10DRU-i 2x E5-2680 v3 2.5ghz 32gb Ram 240gb SSD 2x GPU *READ*

$369.99



New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G picture

New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G

$449.99



Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC picture

Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC

$250.00



Supermicro 505-2   Server picture

Supermicro 505-2 Server

$280.00