LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 10-26-2006, 03:04 AM   #1
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 135

Rep: Reputation: 24
kernel 2.4 2.6 upgrade & cd-rom


Hi

I have just upgraded from the standard slack 2.4.31 kernel to 2.6.16.24 because I wanted support for our new digital camera. I compiled it myself (first new kernel and I had to do it several times before I got it right), so I spose its a custom kernel.

Hitherto I'd been using scsi emulation for the cdrom drive:

Code:
image = /boot/vmlinuz-ide-2.4.31
  append="hdc=ide-scsi"
  root = /dev/hda5
  label = Linux
  read-only

#2.6.16.24
image = /boot/vmlinuz-2.6.16.24
  root = /dev/hda5
  label = test
  read-only
But I've read in many places that this is no longer required, so the line is not there for the 2.6 kernel.

However, now my cdrom drive seems to have disappeared.

When I say disappeared, I mean I get this error message when I try to mount it from the command line:

Code:
family@Einstein:~$ mount /mnt/cdrom
mount: I could not determine the filesystem type, and none was specified
family@Einstein:~$
And xine says that it can't find a drive containing a dvd.

It all works fine when I boot with the 2.4 kernel. I've read a great deal about this over the last few days, and I've ascertained that its to do with the scsi emulation that 2.4 had. Its left some symlinks that are no longer required, but I haven't been able to work out which ones have to go. Here is some info that might be helpful:

Code:
family@Einstein:~$ dmesg |grep CD
hdc: AOPEN COM4824/AAH, ATAPI CD/DVD-ROM drive
hdc: ATAPI 48X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
family@Einstein:~$
Code:
family@Einstein:~$ cat /etc/fstab
/dev/hda6        swap             swap        defaults         0   0
/dev/hda5        /                reiserfs    defaults         1   1
/dev/hda7        /home            ext3        defaults         1   2
/dev/hda1        /ntfs            ntfs        user,umask=000,ro,auto    1   0
/dev/hdb1        /fat-e           vfat        user,umask=000,rw,auto    1   0
/dev/cdrom       /mnt/cdrom       auto        noauto,user,unhide,ro     0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
/dev/sda1       /mnt/camera       vfat        noauto,user       0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
family@Einstein:~$
I feel a bit silly about this; praps I put the wrong keywords in the search engines. I find it quite annoying when a topic closes with something along the lines of "I've solved the problem - it was a simlink all along - thanks for your help" and then never actually say what the problem was or how it was solved.

ros

Last edited by Quercus ruber; 10-26-2006 at 03:08 AM.
 
Old 10-26-2006, 07:11 AM   #2
Quercus ruber
Member
 
Registered: Mar 2004
Location: Bocholt, Germany
Distribution: Slackware
Posts: 135

Original Poster
Rep: Reputation: 24
hi

I believe I have solved my problem.

My links were thus:

Code:
family@Einstein:~$ ls -l /dev/hdc
brw-rw-rw-  1 root disk 22, 0 2002-06-09 21:27 /dev/hdc
family@Einstein:~$ ls -l /dev/cdrom
lrwxrwxrwx  1 root root 8 2006-03-30 12:25 /dev/cdrom -> /dev/sr0
family@Einstein:~$ ls -l /dev/sr0
brw-rw-rw-  1 root cdrom 11, 0 1999-04-13 06:24 /dev/sr0
I changed them thus:
Code:
root@Einstein:/dev# rm cdrom
root@Einstein:/dev# ln -s /dev/hdc /dev/cdrom
root@Einstein:/dev#
And now I can mount
Code:
family@Einstein:~$ ls -l /dev/cdrom
lrwxrwxrwx  1 root root 8 2006-10-26 13:03 /dev/cdrom -> /dev/hdc
family@Einstein:~$ mount /mnt/cdrom/
family@Einstein:~$ ls /mnt/cdrom/
Autorun.inf*  Games/  SDL.dll*  SDL_mixer.dll*  Start.exe*  System/  UnzDll.dll*  ogg.dll*  vorbisfile.dll*
family@Einstein:~$
ros
 
Old 10-27-2006, 12:38 PM   #3
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 804

Rep: Reputation: 110Reputation: 110
I couldnt tell if you did this or not, but when you switch from 2.4.* to 2.6.* the scsi emulation isnt needed anymore. You should use "ide-cd dev=/dev/hdc" now instead of "hdc=ide-scsi". I think its only really important if your hdc is a burner device though I could be wrong.
 
Old 10-27-2006, 01:37 PM   #4
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
I think the reason why your links were wrong was:
Quote:
* As of 2.6.13 the support for devfs has been removed.
* You will be required to either manage a static /dev
* or to ensure that udev is starting on boot.
So your old kernel used devfs but the new one doesn't and you don't have udev. so all of your /dev stuff is from the old kernel and not the new one. You will have to manage /dev yourself (like fixing the link you just fixed) or install udev.

Last edited by johnson_steve; 10-27-2006 at 01:38 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel 2.6.11.10 & CD-ROM Revision 3.20 driver pippolinux Slackware 0 08-29-2005 05:50 AM
Kernel Upgrade & Mouse Machinegun Linux - Laptop and Netbook 3 12-28-2004 07:36 AM
Upgrade from working kernel-source-2.6.7-1 & -2 to kernel paniced -3 & -4 Outabux Debian 6 08-15-2004 01:36 PM
Lost hda & hdb after upgrade to Kernel 2.6 dom3lmr Linux - Software 2 06-22-2004 07:14 PM
Newbie Kernel upgrade ? & up2date rpm hell lsgko Linux - Newbie 2 08-06-2003 06:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration