[Tfug] how to create device

Ammon Lauritzen ammon at simud.org
Sat Jul 10 12:36:55 MST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ranjan Grover
> I've got a Leadtek Winfast TV card and it was working fine but the power
> went off and on booting up, TVTime says it can't find /dev/video0. Turns
> out that there is no video0 device file in /dev. It used to be there for
> sure because on doing cat /dev/video0 I could see an endless stream of
> junk when the TV card was working.

If you just want to create the device file, you need to use the mknod
command.  There is a listing of device id number things that many distros
tend to dump in /usr/src/linux/Documentation/devices.txt.

After a quick reading, it looks like /dev/videoX is created with major
number 81 and minor number X. Video4Linux devices are character devices,
not block devices... so it looks like the command you want to try is:

mknod /dev/video0 c 81 0

Good luck.

- --
Ammon Lauritzen
Arizona Student Media | Office: 520.626.2952
Systems Analyst       | Cell:   520.271.1201

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA8EVWR9XALM4wLEoRAphyAJoC6VRla6bJwZ6/ef+hXUvYqE3qlQCgrB3X
ZfJHwyxiwCn39GrlXtmkfmY=
=m1RT
-----END PGP SIGNATURE-----


More information about the tfug mailing list