LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-09-2004, 09:57 AM   #1
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
Unhappy how do I restore /dev/video ???


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
Adam
 
Old 06-09-2004, 11:12 AM   #2
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
you can probably just run `touch /dev/video0` and the /dev/video will be the sym link to /dev/video0 so you can make that next.
 
Old 06-09-2004, 11:50 AM   #3
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Thumbs up

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.
 
Old 06-10-2004, 03:00 AM   #4
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Unhappy It didnīt work

It didnīt work, it looks like you have to create it in a special way
Quote:

videoinput: /dev/video0 is not a video4linux device.
deinterlace: AdaptiveSimple disabled: required CPU accelleration features unavailable.
Quote:
bash-2.05b# ls -l video0
-rwxr-xr-x 1 root root 0 Jun 10 09:53 video0
bash-2.05b#
Quote:
bash-2.05b# ls -l video
lrwxrwxrwx 1 root root 6 Jun 10 09:53 video -> video0
bash-2.05b#
Any more ideas??
 
Old 06-10-2004, 03:28 AM   #5
synapse
Member
 
Registered: Jan 2004
Location: On Planet Earth.
Distribution: Slackware 12
Posts: 244

Rep: Reputation: 30
Hi as root cd into /dev

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.

cheers
 
Old 06-10-2004, 04:56 AM   #6
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Talking

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)

Thanks again!
 
Old 06-10-2004, 04:13 PM   #7
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
oh! ha
I forgot about the Makedev script, I knoew it was something like that.

me = out of practice... :P
 
Old 06-10-2004, 04:30 PM   #8
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Talking

No worries, I do the same thing all the time!!!
 
Old 06-10-2004, 04:55 PM   #9
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
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
That should do it .
 
Old 06-11-2004, 03:47 AM   #10
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Talking

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!
 
Old 06-11-2004, 05:56 AM   #11
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
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.
 
Old 06-11-2004, 08:08 AM   #12
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Original Poster
Rep: Reputation: 30
Thumbs up

Wow thats amazing so much simpiler than I thought it would be!! I guess I should probably dig around and have more of a look at the documentation!

I wander if there is a reference to this in the wikis or howtos?? There should be if there isnt.

Thanks again
 
Old 06-11-2004, 08:21 AM   #13
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
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.........
 
  


Reply



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
Problems with /dev/video??? TLinOS SUSE / openSUSE 1 06-20-2005 05:22 AM
Restore video configuration from terminal leiterboss Linux - Newbie 1 04-26-2005 11:56 AM
/dev/video d1l2w3 Mandriva 1 03-27-2005 03:45 AM
Simple question: i deleted accidentaly the /dev/mixer0 entry. how can i restore it ? Hell255 Linux - Software 3 06-18-2004 08:43 AM
Two Video Devices - /dev/video0 & /dev/video1 liguorir Linux - Software 1 07-21-2003 08:20 PM

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

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