Questions tagged [devices]

devices refers to questions about the Unix/Linux device special files, normally these are under /dev. Do not use this tag for physical devices (for that use e.g. usb or pci).

Filter by
Sorted by
Tagged with
2
votes
1answer
993 views

create several /dev/xconsole files automatically upon boot

I understand from my previous question that the /dev/xconsole file can be created using mkfifo. On my system (Debian Wheezy), /dev/xconsole gets created automatically. I am wondering who creates it (...
1
vote
1answer
298 views

create several /dev/xconsole files

I am using /dev/xconsole to send system logs from rsyslog. That works great, because I am don't have to store the logs on disk. I would like to have another similar file , i.e /dev/xconsole1 where I ...
1
vote
1answer
2k views

How do I send RTSP video to a program that reads from a character device?

I have an IP-CAM that streams video over RTSP and I want to detect bar codes from it with zbarcam (from Ubuntu's zbar-tools package). According zbarcam's manual, it expects to be given a video4linux ...
1
vote
2answers
416 views

List processes accessing device after `umount --lazy`

I want to remove my external HDD as safely as possible. I want to use umount --lazy: Lazy unmount. Detach the filesystem from the file hierarchy now, and clean up all references to this ...
1
vote
3answers
3k views

How can I run a shell script on input device event

I have a USB remote presenter that appears as a keyboard. Using evtest I can see the input events from the device. How can I capture those events in a shell script? I had see some solutions using C ...
1
vote
2answers
3k views

virt-install and /dev/hda vs. /dev/sda

It appears that my virt-install xml file (i.e. created when defining a VM) specifies targets "hda", "hdb", and so on as the devices for disks, however, the VM, once created, lists /dev/sda, /dev/sdb, ...
1
vote
2answers
1k views

Is it OK to just copy /dev/random and /dev/urandom?

I'm setting up some stuff - exactly what probably does not matter. Anyhow I got an error from my application that indicated that /dev/random and /dev/urandom were needed but missing. So I copied ...
1
vote
2answers
308 views

Why does Fedora have two `ptmx` files?

I know that the file /dev/ptmx is used to generate a master file for a pseudo-terminal. But I have found out that Fedora has another ptmx file (/dev/pts/ptmx): What is the purpose of this second file?...
0
votes
0answers
772 views

Accessing a USB device under Non - Privilaged user with FTDI2XX Driver

I am trying access a USB device using libFtd2xx (Version : libftd2xx.so.1.3.6)driver. Driver Link : http://www.ftdichip.com/Drivers/D2XX/Linux/ReadMe-linux.txt ... To test device functionality used ...
0
votes
1answer
45 views

How is a sequentially accessible device made randomly accessible?

If a device offers only sequential access not random access, can a device driver or a file system make the device look like randomly accessible to users? If yes, is this done by providing buffer/...
-1
votes
1answer
442 views

Can filesystems be created only on block devices, but not on character devices?

Can filesystems be created only on block devices, but not on character devices? Can a filesystem be viewed as a block device itself (for example, when programming to use a file system)? My guess is ...