LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   contents of /dev change at every boot? (https://www.linuxquestions.org/questions/slackware-14/contents-of-dev-change-at-every-boot-200525/)

rgiggs 07-02-2004 10:07 PM

contents of /dev change at every boot?
 
hi,

after realizing that many files in /dev are not used at all, i removed all of them there and then followed instructions from linux from scratch to create only those device files i need. i wasn't aware of dsp, so i didn't create it. then i found out that i needed it to have sound; so i created it like this "mknod -m 660 /dev/dsp c 14 0." then i got sound.

however, after reboot, no sound -> i looked in /dev. dsp was gone -> recreated it -> reboot -> dsp was gone -> ... and not only dsp that kept disappearing, but also the intructions file from lfs that i copied into /dev.

now i have to add "mknod -m 660 /dev/dsp c 14 0" to /etc/rc.d/rc.local.

any ideas on what's going on? thanks.

carboncopy 07-02-2004 10:36 PM

Why don't you move on to 2.6.* kernel ?
Slackware 10 comes with rc.udev which will detect what devices you have on your machine and create the appropriate dev node for on the fly.

For example, when you plug in your pen-drive, it will automagically create /dev/sda and /dev/sda1 (if applicable).

rgiggs 07-02-2004 11:33 PM

hi,
i am using kernel 2.6. but you're right. i went in /dev/sound, mv dsp dsp.BAK, and reboot. when i logged back in, dsp.BAK was gone, but dsp was there.
thanks.


All times are GMT -5. The time now is 02:55 AM.