-
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

Netac 2TB 1TB 512GB 256GB Internal SSD 2.5inch SATAIII Solid State Drive lot
$549.00

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot
$100.00

Micron MTFDDAK256TBN 256 GB, Internal ,2.5" SSD
$23.00

Samsung 860 EVO 250GB SSD MZ-76E250 2.5" SATA III Solid State Drive -
$39.99

Crucial MX500 1TB 2.5" SATA III Internal SSD CT1000MX500SSD1
$99.99

Crucial MX500 250GB 2.5" SATA III SSD - Preowned
$29.00

2 PACK 128 GB SSD M.2 2280 SATA Solid State Drive Major Brands, Samsung, LiteON
$28.00

Fanxiang 256GB 512GB 1TB 2TB 4TB SSD Lot 2.5'' SATA Internal Solid State Drive
$42.99

Netac 512GB SSD 2.5'' SATA III 6 Gb/s Internal Solid State Drive 500MB/s PC/MAC
$73.00

Netac 120GB 256GB 1TB 2TB Internal SSD 2.5'' SATAIII 6Gb/s Solid State Drive lot
$119.99