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).

learn more… | top users | synonyms (1)

1
vote
1answer
480 views

Editing a device tree to disable driver loading

Below is a section of device tree. ps7_ethernet_0: ps7-ethernet@e000b000 { #address-cells = <1>; #size-cells = <0>; clock-names = "ref_clk", "aper_clk"; clocks = <&...
5
votes
3answers
6k views

Creating eth0 with consistent network device naming

From my understanding, Arch Linux uses Consistent Network Device Naming where the network devices are no longer named eth0, eth1, etc. I use the proprietary MATLAB software which requires a device ...
21
votes
3answers
3k views

mv a file to /dev/null breaks dev/null

If I do: touch file; mv file /dev/null as root, /dev/null disappears. ls -lad /dev/null results in no such file or directory. This breaks applications which depend on /dev/null like SSH and can be ...
19
votes
8answers
3k views

How can I put a bit mask on /dev/zero so that I can get bytes other than zero?

How can I put a bit mask on /dev/zero so that I can have a source not only for 0x00 but also for any byte between 0x01 and 0xFF?
1
vote
0answers
29 views

iostat ( column svctm is not trusted any more ) what to use instead?

I'm running a Linux Server with "Oracle Linux Server release 6.5" which is pretty much the same as RedHat Version. I need to determine the latency on my disk devices. The man page of the iostat ...
1
vote
1answer
27 views

uuid, device number, and device file for a device

In Linux, I would like to know about the differences in purposes and usages of uuid, device (major and minor) number, and device file for a device. They all seem to me to identify a device (and may ...
1
vote
2answers
53 views

Send a message to a “screen” to be received by a device on /dev

My question may looks trivial... But it's because despite of my long experience of linux/unix/osx systems, I found myself lacking some basic notions. I created a little bluetooth/arduino switch to ...
0
votes
1answer
54 views

Major and minor numbers of a partition

$ stat new File: ‘new’ Size: 928 Blocks: 8 IO Block: 4096 regular file Device: 804h/2052d Inode: 28188755 Links: 1 Access: (0622/-rw--w--w-) Uid: ( 1000/ t) Gid: ( ...
0
votes
1answer
21 views

Is it possible read every serial device's data?

Reading serial data is something ordinary when comes from devices connected by direct serial 9-pin cables. But happens with usb devices ? Considering that actually USB is a Universal Serial Bus, is it ...
2
votes
2answers
63 views

How does bash print to the screen if not with a framebuffer? [duplicate]

I noticed that a framebuffer doesn't always exist on some systems. In these cases, how does bash print to the screen (assuming it ever uses fb devices at all)? Since there's no framebuffer device, ...
3
votes
4answers
229 views

Why does mknod require root privileges?

I noticed that the mknod command required root privileges when a creating a node other than a regular file, FIFO or a Unix socket. Why is that? How can a regular user harm a system or compromise ...
2
votes
1answer
3k views

“PS/2 Generic Mouse” gets lost. How to reload without reboot?

I am running Ubuntu 12.04LTS on a ThinkPad E420s. My Trackpoint is recognized as "PS/2 Generic Mouse". My problem is that it doesn't load/disappears after booting or after suspension. I can't move ...
7
votes
1answer
1k views

Difference between /dev/null and /dev/zero

When trying to redirect to /dev/null and /dev/zero, the output it is discarded. It seems both /dev/null and /dev/zero accept and discard all input. So, what is the difference between /dev/null and /...
0
votes
0answers
16 views

How is Xserver able to tell which device is a mouse or a keyboard?

In these days we don't have to create a custom configuration that sets our devices up, at least when it comes to Xserver. But sometimes you want to change some default parameters. When you do it, you ...
0
votes
2answers
18 views

How can I see the dismounted devices

How can I see if the usb device has been dismounted? Because when I did fdisk -l the information is the same, before and after the ran command umount /dev/usb.
6
votes
2answers
4k views

Using bash's `/dev/udp`, how would I know if the port was open?

I do not have access to netcat or nmap so I'm trying to use bash and the /dev/udp/ special files to test ports. I could do something like: echo "" > /dev/udp/example.com/8000 But $? is always 0 ...
2
votes
1answer
140 views

Access iphone storage as device/partition

I am working on a project, in which the ultimate goal is to successfully wipe iOS from an iPhone and install TinyCore Linux in it's place. I expected the iPhone to function like an external drive when ...
1
vote
0answers
139 views

when running `udevadm test`: `no db file to read /run/udev/data/+gpio_sw:PA7: No such file or directory`

I am trying to write an udev rule that matches a GPIO Pin of my Orange Pi (the GPIOs use the gpio-sunxi kernel module). My ultimate goal is to let users who are member of a particular group access ...
16
votes
1answer
8k views

Difference between /dev and /sys/class?

What is the difference between the device representation in /dev and the one in /sys/class? Is one preferred over the other? Is there something one offers and the other doesn't?
0
votes
0answers
105 views

Linux doesn't recognize the SSD it's booting from!

I've extended a computer by a SSD and the BIOS recognizes it (and shows its name), but neither Ubuntu 14.4 nor Knoppix 7.6 show it in fdisk's output. Then I copied Fedora 23 WS Live to that SSD (on ...
0
votes
0answers
18 views

Devices for Analog I/O gone from /dev after reboot

I have a system using Centos 6.6 and another system using RHEL 6.6 on the same architecture that both need analog I/O drivers to communicate with sensors that will be attached to the device. Thus, I ...
1
vote
1answer
33 views

Are device files implemented by device drivers or OS kernels?

Device files are interfaces of device drivers to user programs. In Linux, is a device file implemented directly by its corresponding device driver, or by the OS kernel (excluding the device driver)?
1
vote
0answers
68 views

Write my own sound card driver [closed]

I would like to write my own sound card driver, in order to use my output jack as a PWM (to control a motor). When I run "lspci", the sound card is : Audio device: Intel Corporation 5 Series/3400 ...
9
votes
2answers
16k views

How to Reset/Cycle Power to a PCIe Device?

I have a PCIe device that only works correctly when the computer is fully powered off then on again. Issuing a simple reboot or reboot -p command does not appear to cycle the power to the PCIe card, ...
2
votes
2answers
898 views

Arch linux can't login

My problem is that I can't login. If I try to loggin with correct username and password it doesn't do anything. I have error message on boot failed to create static device Nodes in /dev . This ...
2
votes
1answer
65 views

How to swap out the driver of a network device on a running Debian Linux box?

I've got an embedded/headless Debian Linux box which boots from a read-only filesystem image. The configuration is set up so that I can (seemingly) write to the filesystem, but any changes to the ...
1
vote
0answers
76 views

There is no /proc/bus/usb directory

I'm running a centos VM on ESXi. Does the /proc/bus/usb directory not show up until a USB device is connected? I just added a USB controller to the VM (it previously had non) and ran lsusb: $ ...
86
votes
6answers
7k views

How are “/dev” Linux files created?

There are special files in Linux that are not really files... The most notable and clear examples of these are in the dev folder, "files" like: /dev/null - Ignores anything you write to the file /...
0
votes
1answer
137 views

Unable to connect to USB CDC device

I have an 8 channel USB Relay board which I have connected via USB. The manual for the board states that: To use this product with Linux, USB CDC driver needs to be compiled in with the kernel. ...
1
vote
1answer
97 views

What is /proc/dma? Is it just for legacy support?

I reading a Linux book that told me I can check the dma channels by reading /proc/dma. This is what I see when I run cat /proc/dma: 2: floppy 4: cascade I'm confused because that looks like old ...
1
vote
1answer
126 views

In udev, what kind of device events match ACTION==“change”?

The udev rules I've created so far only deal with devices being added or removed, i.e.: ACTION=="add"... or ACTION=="remove"... I've come across an example of a rule that seems to deal with device ...
3
votes
0answers
34 views

Enumerate valid values for mknod

I have access to an embedded device which has a bunch of block/char files under /dev. However, this is not a satisfying description of the hardware, because since the firmware is shared with small ...
0
votes
0answers
53 views

Tweaking the tripwire policy to stop checking for /dev/pts/x

Trying to streamline my Tripwire policy file, I see that I get a lot of chatter in every daily check report about ------------------------------------------------------------------------------ Rule ...
4
votes
1answer
153 views

What happened to /dev/raw/?

I am reading an article on LWN and it has an important statement: Raw devices (/dev/raw/rawN) are a special case of O_DIRECT I/O. These devices can be opened without specifying O_DIRECT, but ...
10
votes
1answer
1k views

How do I let an SDL app (not running as root) use the console

I want to use an SDL-based program to display graphics on the console, without having to log on from the console, and without running the program as root. For example, I want to be able to run it via ...
0
votes
0answers
55 views

How to switch Huawei CDMA 2252+ to usb from cd-rom?

I have Huawei CDMA 2252+ phone and i want to connect it to linux to send sms. In Fedora 15 (64bit) it is taken as cdrom. This is the output of dmesg after the phone plug in. [10887.524339] USB Mass ...
0
votes
2answers
255 views

Where do the logs directed to /dev/console go?

I'm studying RHEL 7. If I add this line to rsyslog.conf: kern.notice /dev/console Where will the messages with facility "kernel" and priority "notice" be logged? If I run this command: ...
4
votes
1answer
113 views

Where is the default device name (e.g. /dev/ttyUSBx) specified?

I'm investigating dynamic device name mapping via udev. The goal: On a multi user system, each user can allocate and free devices like usb-serial converters or PCIe cards (FPGAs). If an user ...
1
vote
0answers
45 views

Can you create a read only encrypted partition that root cannot write to (or remount)?

I have an encrypted partition that I would like to be mounted as read only. The catch is that I do not want a root user to be able to remount the partition as read-write unless they have the ...
2
votes
2answers
95 views

Changing ownership on /dev/fuse - security issues?

In some distributions /dev/fuse is owned by root:fuse while in other distributions /dev/fuse is owned by root:root. I'm using CentOS which belongs to the former set of distributions. And I'm wondering ...
4
votes
1answer
10k views

How do I find out which process is using my V4L2 webcam?

I tried to run the following: $ vlc -I dummy v4l2:///dev/video0 --video-filter scene --no-audio --scene-path webcam.png --scene-prefix image_prefix --scene-format png vlc://quit --run-time=1 ...
1
vote
2answers
168 views

Is UUID really unique? why can we assign multiple UUIDs to single slice of disk

All the web content and its acronym explains it as Uniquely identifier. But when i try to create another device, lets say swap in my case and assign the UUID, i am able to assign many UUIDs to single ...
0
votes
1answer
178 views

No /dev/ttyusb* in Linux

I want to do some serial programming using Python Serial, and all examples I've seen online for USB set the port parameter to "/dev/ttyUSB*" . But on my system, there is no "/dev/ttyUSB*" inspite of ...
1
vote
0answers
157 views

udev: Passing parameters via $attr{key} does not work. How to solve it?

I want to enumerate my USB-UART bridges with my own script. The script shall be called with some attributes and return a new devfs node name. I tested the script on console: ./rc3e.py -d get-devfs-...
7
votes
1answer
559 views

Why does a device show up as hidraw instead of hiddev?

I read the kernel documentation for hidraw and hiddev, and I understand the differences, but I am wondering how the kernel decides whether or not a device should show up as /dev/hidraw* or /dev/usb/...
5
votes
2answers
1k views

Udev rule to match multiple node USB device

I have a 3G/GPS device that creates 5 tty nodes, although it's only one physical USB connection. Basically, a multi port usb-serial adapter. I'm trying to create some udev rules to make sure those ...
0
votes
1answer
379 views

A Start Job is running for dev-md1.device

Hello everyone I'm with the following error on my CentOS 7 I restarted the server is now the boot time is with this message is already so minimum 40 minutes, what should I do? Please Help-me?
5
votes
2answers
1k views

How Linux uses /dev/tty and /dev/tty0

I can see the difference between /dev/tty and /dev/tty0 by testing the provided method from this question. But I really wonder about the practical usage of those devices (like situations they will be ...
0
votes
0answers
71 views

PCI Device Missing After Reboot

I have a DVBSky T9580 PCI tuner card. My problem is that after rebooting,, the device dissapears, lspci does not list it any more. I tried rebooting with reboot command as well as shutdown -r 0. ...
2
votes
3answers
325 views

/dev/console points to tty0?

I've been trying to understand the /dev/console device, but there are a few things I'm not clear on: What is the purpose of this device? From what I can gather it's just a place for the kernel to ...