Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i want to reinitialize /dev/dsp as well as /dev/mixer........
why i want to do it is that i accidentally removed /dev/dsp and /dev/mixer.
now i want to get my /dev/dsp and /dev/mixer back......what should i do?????
i tried the following commands to get them back.......
mknod /dev/dsp c 121 2
mknod /dev/dsp c 121 3
chmod 777 /dev/dsp
chmod 777 /dev/mixer
But , whenever i try to access /dev/dsp i get the following error "/dev/dsp : no such device or address"
that's why whenever i try to open aumix , it says "error opening mixer"
You have created the device files on the disk (/dev/dsp and /dev/mixer). When you try to access these files, the kernel will map the file I/O requests on to the appropriate device driver (kernel module) to handle it.
The problem here is that the device driver can't be found. What you need to do is load the appropriate module to handle these devices, which depends on your sound card.
Code:
modprobe audio
is likely to be a good start, but you may need to go through your /lib/modules/ directory and pick out the appropriate module from the list.
If you have problems when loading the modules, then you will need to know about
Code:
lsmod | less
which lists the modules that you have loaded (q to exit), and the file
thanks for your reply......
i tried what u wrote in your reply. But , it still didn't work. I still get the same error "/dev/dsp : no such device or address"
i logged on as root . I ran "modprobe audio" and it gave no error. I checked the /var/log/messages for errors. There were no errors.
Then i tried lsmod to check for loaded modules. I got the following output.... Can u figure out anything from the output
i think i got my problem fixed . Actually while creating character special file through mknod , i was giving incorrect major and minor numbers. The actual nos should have been 14 3 instead of 121 2
Anyway thanks for ur help.........
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.