[Tfug] how to create device

Choprboy choprboy at dakotacom.net
Sun Jul 11 13:14:47 MST 2004


On Saturday 10 July 2004 12:36, Ammon Lauritzen wrote:
[snip]
> 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
> 

Easier than that, most distributions include a script for making well known 
devices in /dev called "MAKEDEV" (/dev/MAKEDEV).

Just switch into /dev as root and do a "MAKEDEV video".

Adrian


More information about the tfug mailing list