LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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
  Search this Thread
Old 09-09-2005, 01:40 PM   #1
snickwad
LQ Newbie
 
Registered: Aug 2004
Location: South West, UK
Distribution: Slackware
Posts: 27

Rep: Reputation: 15
How to re-create /dev/xxx ?


I have installed 10.1 and upgraded to kernel 2.6.13. I configured all the options from scratch, mostly as a learning exercise, but also as the menu structure was different. All is well and good and everything so far seems to be stable. However, I have one issue that I can not seem to find an answer for; how do I create missing hardware nodes, i.e. I have lost /dev/dsp, /dev/mixer etc. These are no longer present, so I can only assume this is related to the re-compile. I have re-compiled the latest alsa drivers with no change, and I have no knowledge of udev or devfs.

Can anyone give me some pointers here please?

Cheers,

snickwad.
 
Old 09-09-2005, 01:54 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
If you are using udev then the only entries that exist in /dev should be the ones on your system that have been identified. If they aren't there then it means you haven't compiled them or you have compiled them as modules and not loaded them yet.
 
Old 09-09-2005, 08:13 PM   #3
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
if your not using udev you can recreate devices with "mknod"

mknod /dev/dsp c 14 3

man mknod

check the devices.txt for major minor numbers its in /usr/src/linux if you have kernel source installed or just google devices.txt.

like the above poster said udev will recreate those nodes once you load the modules.
 
Old 09-09-2005, 10:08 PM   #4
axial
LQ Newbie
 
Registered: Sep 2005
Location: Monroe, WI
Distribution: Slackware, Bluewhite64
Posts: 11

Rep: Reputation: 0
If you don't want to use udev, such as myself, do a chmod -x /etc/rc.d/rc.udev otherwise you will have to recreate your device every time you boot.

Also, if you don't know your device's MAJOR or whether it is block, char etc..
cat /proc/devices
 
Old 09-10-2005, 03:38 AM   #5
snickwad
LQ Newbie
 
Registered: Aug 2004
Location: South West, UK
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks for that. I knew of mknod but was unsure of the parameters, so now I know that. How do I know if I am using udev? I would have thought (if my understanding is correct) that it would have created them, as the appropriate modules are showing as loaded with lsmod, and I assumed it had been responsible for not creating them (hence why they are missing) as I had missed the appropriate drivers during the re-compile. Does udev rely on another kernel option that I might have missed?

Thanks again,

snickwad
 
Old 09-10-2005, 08:46 AM   #6
snickwad
LQ Newbie
 
Registered: Aug 2004
Location: South West, UK
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 15
Got it sussed.

Restarted earlier today, and udev ran on startup. This apparently was not happening after a reboot. Strangely, it continues to not start at random times, and issuing udevstart restores all the nodes. I will be looking at this, but thanks for the info.

snickwad.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Error, some other host already uses address XXX.XXX.XXX.XXX" mwbb_support Linux - Networking 5 01-20-2014 08:59 AM
Problem getting connection with a DLink Router with IP 10.xxx.xxx.xxx kezira Fedora 9 11-28-2005 10:31 PM
Problem getting connection with a DLink Router after setting static IP 10.xxx.xxx.xxx kezira Linux - Networking 1 11-09-2005 10:27 PM
Host XXX.XXX.XXX.XXX is not allowed to connect to this MySQL server ocavid Linux - Newbie 2 03-16-2005 09:40 AM
# ping -b xxx.xxx.xxx.255 porous Linux - Networking 2 10-13-2003 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:05 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