-
Senior Member
registered user
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?
-
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
-
Senior Member
registered user
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.
-
Senior Member
registered user
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.
-
Senior Member
registered user
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.
-
Senior Member
registered user
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
-
By cfish in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 04-25-2005, 07:31 AM
-
By Romkillah in forum Hardware & Booting
Replies: 0
Last Post: 05-13-2004, 01:29 AM
-
By bcalder in forum General Support
Replies: 5
Last Post: 03-15-2004, 09:42 PM
-
By tji in forum Customising & Remastering
Replies: 4
Last Post: 06-12-2003, 06:40 PM
-
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
-
Forum Rules

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
$99.99

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

MINT Micron Cisco 32GB PC4-2400T DDR4 2Rx4 RDIMM RAM MTA36ASF4G72PZ-2G3 LOT
$159.99

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

G.SKILL FLARE X5 64GB (2 x 32GB) 6000 MT/s DDR5 (AMD EXPO + INTEL XMP) *CL30*
$785.00

DDR4 Laptop RAM 4GB 8GB 16GB 32GB 2400 2666 3200 Samsung Hynix
$66.00

Samsung 16GB LPCAMM2 PC5 7500 DDR5 LPDDR5X CAMM2 M561K1LC4DM0-CCTGM RAM Memory
$189.00

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

Crucial DDR3L 16GB 2 x 8GB 1600 MHz PC3L-12800 Laptop RAM Sodimm Memory 1.35V
$41.00