SlackwareThis Forum is for the discussion of Slackware 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 was playing around and I managed to delete my /dev/video and /dev/video0 files (donīt ask me how) I need to get them back as this is what tvtime uses to acess my tv capture card.
How can I restore them?? I think one was only a simlink to the other but I canīt remember which it was.
Thanks for the reply! I guess I was thinking it would be more complicated than that. I will get right back to you when I give it a go later. I am at work at the moment.
there is a readme file which contains some documentation as to use, and run the script Makedev video ( i think video ? ),Ive tried this once before and it generally works. It will make all the video 0-whatever so you wont have to make each device.
Hey synapse that was just what I needed, thanks a lot! Now I seem to have more video devices than I had before, but it works fine and I can see you can rebuild any device you might happend to delete from there!
BTW for any lazy people reading the command was MAKEDEV video (where I guess video could be any time of device)
You could manually copy the files missing from the Slackware package. The .tgz format is a normal tarball and copying individual files from that archive using mc is easy.
The official way is something like:
Code:
mknod /dev/video0 c 81 0
ln -s /dev/video0 /dev/video
Interesting, but I guess someone realised that is was a pain in the ass having to know/lookup all the major and minor numbers for devices that you wanted to create and hences MAKEDEV
I wander if one day I will understand these crazy major minor numbers properly!
There is not much to understand about major and minor device numbers. You can look those up in the Documentation directory in the kernel source. The file is called devices.txt.
heh, that documentation directory is 5+ megs!! I've mentioned it
a few times in various posts..........there is ALOT of info there and
people should read thru it when installing/upgrading their kernel.........
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.