LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-24-2004, 12:09 PM   #1
wnaLinux
Member
 
Registered: Oct 2004
Location: Salem, OR
Distribution: Ubuntu "Warty Warthog"
Posts: 95

Rep: Reputation: 15
Question Devices missing after kernel recompile?!?!?


Hi guys I recently recompiled my kernel to 2.6.9 and I noticed that some devices were missing, hdd, sda2-5, and a few others, and I am constantly haveing to create another symbolice link to hdc for my dvd drive, please someone tell how I fix this problem? It seems that everytime I reboot the symbolic link is gone. So What do I do?
 
Old 12-24-2004, 12:15 PM   #2
tank728
Member
 
Registered: Sep 2003
Posts: 142

Rep: Reputation: 16
I am assuming that you are coming from a
2.4 series kernel. The 2.6 series uses udev
to manage /dev (granted if you do not have
the udev package, they it will use devfs). udev
manages /dev dynamically from userspace,
which is great. When you plug /dev/sdaX
in, then udev will create a device node for
that device. Good Luck

-tank
 
Old 12-24-2004, 12:47 PM   #3
wnaLinux
Member
 
Registered: Oct 2004
Location: Salem, OR
Distribution: Ubuntu "Warty Warthog"
Posts: 95

Original Poster
Rep: Reputation: 15
OK it says udev is installed but what do I do then? Becuase I am missing the device for second cd drive so I am unable to mount it.

Last edited by wnaLinux; 12-24-2004 at 12:50 PM.
 
Old 12-24-2004, 02:37 PM   #4
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 14
Posts: 530

Rep: Reputation: 30
How is such devices connected to your system ?
Primary ide master/slave or did you pur it on the secondary channel?
If you're not using ide-scsi emulation it should be the same as with the 2.4 series kernel.
Hope this helps
Ciao
 
Old 12-24-2004, 03:06 PM   #5
wnaLinux
Member
 
Registered: Oct 2004
Location: Salem, OR
Distribution: Ubuntu "Warty Warthog"
Posts: 95

Original Poster
Rep: Reputation: 15
Yes I am using ide-scsi emulation for my second drive. And the dev sr0 is what I used to mount it b4 so now what device do I use to mount it?
 
Old 12-24-2004, 03:26 PM   #6
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
I was under the impression that ide-scsi was broken in 2.6.9 (unless you have patched your kernel sources before compiling). As that is the case, your devices that are not being recognised as SCSI may have been assigned hdX device nodes?
 
Old 12-24-2004, 03:31 PM   #7
wnaLinux
Member
 
Registered: Oct 2004
Location: Salem, OR
Distribution: Ubuntu "Warty Warthog"
Posts: 95

Original Poster
Rep: Reputation: 15
Its broken? Thats wierd cuz I can burn cd's just fine with my drive using scsi emulation. Anyway are you saying I should try one of the hda devices to mount it?
 
Old 12-24-2004, 05:09 PM   #8
wnaLinux
Member
 
Registered: Oct 2004
Location: Salem, OR
Distribution: Ubuntu "Warty Warthog"
Posts: 95

Original Poster
Rep: Reputation: 15
Ok well device sr0 is what I used before to mount my second drive, but THERE IS NO SUCH FILE! All I know is that is what I used to mount it before and now it is gone. And the device that I also used to mount it /dev/hdd is also gone! Im lost guys what do I do?
 
Old 12-25-2004, 04:12 AM   #9
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
The first thing is to do as urka58 said: go back through and tell us what devices are, and are not, mounting, and how they are physically plugged into the system.

(e.g. Primary IDE Channel: Hard drive with X partitions (hda),
Secondary IDE Channel: CD is the primary drive, etc...)

Unfortunately, sda2-5 isn't very helpful, as it doesn't tell me what the device is that's not being seen?

If they're not being seen, then the chances are that you may be missing something in your kernel, or the devices may have been assigned differently under udev (as tank728 said, udev only creates nodes that actually exist, unlike devfs in the 2.4 series, which just has lots of nodes pre-created and don't always mean anything).

Oh, and a quick thought does come to mind - do you have a line in /etc/lilo.conf to deal with the SCSI emulation (e.g. 'append=hdc- ide-scsi' or something vaguely similiar to that)? If so, try commenting it out with a '#' in front, run /sbin/lilo, restart and see if your drive is seen then as hdX (X being something like d in your case I presume, I can't say exactly what without knowing how your drives are physically connected)?

Last edited by cathectic; 12-25-2004 at 04:14 AM.
 
Old 12-25-2004, 12:59 PM   #10
wnaLinux
Member
 
Registered: Oct 2004
Location: Salem, OR
Distribution: Ubuntu "Warty Warthog"
Posts: 95

Original Poster
Rep: Reputation: 15
Well ok I am pretty sure my second drive is Primary slave, that help? And I will try removing that line to see if that makes a difference, the only thing im worried about is that I wont be able to use ccdrecord if I do that but owell.
 
Old 12-25-2004, 01:10 PM   #11
wnaLinux
Member
 
Registered: Oct 2004
Location: Salem, OR
Distribution: Ubuntu "Warty Warthog"
Posts: 95

Original Poster
Rep: Reputation: 15
No luck at all guys I just commented out that line in lilo.conf and theres no difference in what I am seeing here. So now what? Anymore Ideas? Excuse me and I also rebooted.
 
Old 12-25-2004, 05:50 PM   #12
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
Quote:
I wont be able to use ccdrecord if I do that but owell.
You don't need SCSI emulation in the 2.6 kernels for CD burning. ide-SCSI is deprecated, unmaintained and considered broken. For cdrecord, just specify the device you're burning to as 'dev=/dev/hdX' (X being whatever the device is).

Quote:
Excuse me and I also rebooted.
You did run /sbin/lilo after you updated /etc/lilo.conf and before rebooting, and it didn't give any unusual errors?

If so and /dev/hdd still isn't seen, I'm at a bit of a loss. Your earlier posts suggest /dev/hdc is a DVD-ROM drive, and if that's seen, I can't see any reason for /dev/hdd not to be seen (you must have compiled in IDE/ATAPI CDROM support for your DVD-ROM drive to be supported), unless there's another file I've forgotten about that has to be edited to stop ide-scsi running? (I'm still certain it's something about the ide-scsi setup that's stopping the drive being seen properly if /dev/hdc can be seen)
 
Old 12-25-2004, 05:55 PM   #13
wnaLinux
Member
 
Registered: Oct 2004
Location: Salem, OR
Distribution: Ubuntu "Warty Warthog"
Posts: 95

Original Poster
Rep: Reputation: 15
Well that could be it right there I didnt run /sbin/lilo, so I just did I am going to reboot again be right back!
 
Old 12-25-2004, 06:03 PM   #14
wnaLinux
Member
 
Registered: Oct 2004
Location: Salem, OR
Distribution: Ubuntu "Warty Warthog"
Posts: 95

Original Poster
Rep: Reputation: 15
YES!!! Thank you guys for all your help and hard work! Now I can use my other cdrom drive again! Thanks Again!



wnaLinux
 
Old 12-25-2004, 06:38 PM   #15
cathectic
Member
 
Registered: Sep 2004
Location: UK, Europe
Distribution: Slackware64
Posts: 761

Rep: Reputation: 34
Not to worry. I had the same problem when I first upgraded my kernel.

For future reference, if you update your kernel, or make any change to /etc/lilo.conf, you *must* run /sbin/lilo before you restart, otherwise the changes are not used by LILO, and with a kernel change, you won't be able to boot your new kernel (e.g. building a 2.6.10 kernel, then rebuilding it, perhaps to add a missing option, and copying that to /boot, you still need to run /sbin/lilo)

Also, if you are running a vanilla Slackware 10.0 install (aside from having update the kernel), you may find that 'man'/'less' don't work. This is a udev problem, see my post on this page for the fix (I've not encountered the problem, but many others have, so I thought it worth recommending for the FAQ): http://www.linuxquestions.org/questi...5&pagenumber=3
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing sound devices under 2.6 kernel but not 2.4 guitarfella Slackware 7 05-07-2005 08:42 AM
keyboard missing after recompile - HELP aftertaf Mandriva 1 12-23-2004 11:54 PM
/proc/net/wireless missing after kernel recompile Outabux Debian 1 07-05-2004 03:16 PM
Files needed for recompile and missing Makefile Juniper34 Linux - Newbie 11 08-05-2003 12:42 AM
Kernel Recompile missing library modules Bear Linux - Software 4 03-26-2002 05:28 PM


All times are GMT -5. The time now is 05:12 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration