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).
859 questions
1
vote
1
answer
87
views
DSLR as USB webcam (gphoto2 and v4l2loopback) not working in Brave and Chromium, but perfectly in Firefox
I use gphoto2 2.5.28-2build2 and v4l2loopback 0.12.7-2ubuntu5 in order to use my Sony A6500 DSLR as a USB webcam in Linux Mint.
Just to make this clear from the start, the camera is working but the ...
7
votes
2
answers
795
views
How to find device name of boot drive
I have two NVMe drives in my Proxmox computers. My problem is that the drive names are not persistent and change in connection with reinstallation or reboot. The problem is not specific to NVMe drives....
4
votes
2
answers
885
views
Does a linux bridge's port have its own mac address?
On my Linux Ubuntu I've a Linux bridge vnet0_6. You can check the mac address of each of the two interfaces attached to bridge's ports.
root@eve-ng62:~# brctl show vnet0_6
bridge name bridge id ...
0
votes
1
answer
227
views
Questions on the 'evtest' command [closed]
I'm working on a project that aims to use a small (6-key keyboard) to control music played by mpd (and mpc) on a Raspberry Pi. Obviously I need to "capture" the keyboard inputs, and ...
-1
votes
1
answer
135
views
Root filesystem is completely full [closed]
everyone.
I have a completely filled root filesystem, but I can't figure out what it is.
sudo df -h /
/dev/nvme0n1p2 49G 49G 0 100% /
sudo du -h --max-depth=1 --exclude="media" --...
1
vote
0
answers
591
views
How do I get rootless podman to work with nvidia gpu after reboot?
I have a RHEL9 system with a NVIDIA L40S and Driver Version: 570.124.06 CUDA Version: 12.8.
Installed as described here by (basically) running:
# dnf config-manager --add-repo http://developer....
1
vote
0
answers
38
views
Cannot fully disable Systemd service bound to USB keyboard device
I wrote a Python script to manage keyboard events using python-libevdev, although I don't believe the script itself is related to my problem.
I configured udev and systemd to automatically start/stop ...
0
votes
0
answers
141
views
Power button used for both suspend and wake up: device suspends again right after waking up
I have a Lenovo Duet 3 with PostmarketOS 24.12 aarch64, GNOME 47 and openRC. The tablet has a power button which suspends the tablet to RAM when pressed, but when the tablet is suspended it is also ...
12
votes
3
answers
2k
views
Why can't sed change /dev/zero's output characters to something else?
This works
head -c 10 /dev/zero | sed 's/\x0/x/g'
and generates xxxxxxxxxx as expected.
Then I tried this:
sed 's/\x0/x/g' /dev/zero | head -c 10
which seems to just hang.
Then I thought, oh, sure, ...
1
vote
0
answers
96
views
IO wait/failure timeout on iscsi device with multipath enablement
I'm accessing a remote iscsi based SAN using multipath.
The network on the server side has known intermittent issues such that there are session failures and path failures/IO failures. I'm not trying ...
0
votes
0
answers
41
views
How to change the timeout for an inquiry command
I'm getting timeouts on inquiry while a write buffer is active because the device cannot respond to the inquiry until the write buffer is complete.
See errors .
Dec 10 16:04:39 soul kernel: sd 0:0:34:...
1
vote
0
answers
296
views
How to define GPIO pin as PPS source device
I'm using Linux in an embedded environment. I want to use a particular GPIO pin as a PPS source to be used with gpsd. I think the pin is configured correctly because I can see high/low transitions ...
0
votes
0
answers
133
views
How to intercept force feedback events between an application and a gamepad?
I want to be able to intercept a FF (force feedback) event (vibration/rumble in this case) that would normally go directly to the gamepad device file, to send an event to some other device while ...
0
votes
2
answers
157
views
Device name of a Linux system required for identifying it as an "allowed device" on a WiFi hotspot?
I want to add a Linux system to the white list of a WiFi mobile hotspot running on Android. Doing hostnamectl returns, amongst other information, a Static hostname, an Icon name, a Machine ID, and a ...
2
votes
1
answer
260
views
What do the hexadecimal numbers represent on the ls output of the /dev directory?
When I run ls -l /dev on my Ubuntu, I get output like this:
$ ls -l /dev
total 0
crw-r--r-- 1 root root 10, 235 Aug 24 16:36 autofs
drwxr-xr-x 2 root root 340 Aug 24 16:40 block
crw------- ...
1
vote
0
answers
119
views
How to run samples/rpmsg_client_sample in Linux?
I am learning RPMSG in Linux, and I found there is a samples/rpmsg_client_sample.c.
I built it into a kernel module, but I don't know how to make its probe function to be called?
And is there any ...
0
votes
1
answer
169
views
change default name for eMMC to other than mmcblkX
With previous platform the boot device was mtdX, and there could be only one sd-card, always appearing in the system as mmcblk0.
New system has internal eMMC, which is mmcblkX, as well as may have sd-...
7
votes
1
answer
1k
views
Predictable Network Interface Names: ensX vs enpXsY
I know that something like eth0, eth1, ... has been replaced for long time by more predictable names. However, I don't understand what rule is applied if comes to Ethernet devices. I have multiple ...
1
vote
0
answers
328
views
Does udev have an issue with the 'hwmon' subsystem?
I have a temp/humidity sensor connected to the i2c-0 interface on a Raspberry Pi: Rpi OS ver 'bookworm'. It works fine, and I can read sensor values from the files in /sys/class/hwmon/hwmon2 (or ...
0
votes
1
answer
719
views
Not booting after converting Virtualbox disk to Hyper-V
I have a RHEL 8 VM image that I have converted from Virtual Box to Hyper-V but it fails to start (works in VB but not in Hyper-V).
Timed out waiting for device dev-di...97\x2d9636\x2dc104a96af2a5....
0
votes
0
answers
507
views
Pass-through of OBS Virtual Camera to QEMU
I'd like to use my OBS virtual camera in a virtual machine.
OBS will not run within a virtual machine unless I perform a GPU-passthrough, which I feel is unnecessary and undesirable in this situation.
...
1
vote
0
answers
289
views
Complex Audio Issues with Logitech Zone Vibe 125 on Debian Linux and Zoom Interaction
I am facing multiple issues with my Logitech Zone Vibe 125 headphones, which are connected via Bluetooth to my Debian Linux system. Each time I launch Zoom, I encounter no audio output. While I can ...
0
votes
3
answers
324
views
Disk label changes when system is rebooted while setting up Fedora CoreOS 39
I am installing a Fedora CoreOS v39.2024030 on a bare metal system (PowerEdge server) through a iDRac interface.
It's a two-step process:
Here it's needed to boot the system into a LiveISO (virtual ...
1
vote
2
answers
151
views
Where do I find documentation for the output of ls -l?
There have been multiple questions asked about this, like Understanding ls output, What are columns in ls -la?, What does 'ls -la' do?, What do the fields in ls -al output mean?, etc..
I've also come ...
0
votes
1
answer
721
views
fuser -v /dev/nvidia* and lsof not responding
On our A100 machine, we frequently have zombie processes that still allocate memory when already stopped. I usually used fuser -v /dev/nvidia* to determine the PIDs of all processes and kill them ...
2
votes
2
answers
795
views
What is the difference & relation between audio sink and audio card, device?
What is the difference & relation between audio sink and audio card/device?
Can a sink sink into more than 1 device of the same audio card? aka, sink-device ca be a one-to-many relation?
PS: I'm ...
-2
votes
1
answer
106
views
why does a device node need to be made in udev when you plug in a device into your computer?
Why does a device node need to be made in udev when you plug in a device into your computer?
Why does a device node need to exist?
0
votes
0
answers
237
views
System not booting after resizing /dev/sda2 and creating a swap partition
Error Message:
dev/sda2: The filesystem size (according to the super) is 31126889 blocks
The physical size of the device is 29884416 blocks
Either the superblock or the partition table is likely to ...
1
vote
0
answers
54
views
Changing keyboard backlight causes sound to stutter – why?
I'm on a Dell Vostro 16 laptop (running elementary OS 7.1 based on Ubuntu 22.04.3, kernel 6.5). The laptop has a backlit keyboard that can be controlled using /sys/class/leds. Specifically, to turn ...
0
votes
2
answers
681
views
Linux 6.7: /sys/class/graphics/fb0 is missing
What happened to this node/symlink? It used to be there for ages, linking to the primary display adapter, and I cannot find it any longer with Linux 6.7.4. I've not found anything relevant in the ...
0
votes
1
answer
208
views
What file is /dev/btrfs-control?
I can't find any explanation about this file in the official documentation, I just know from the official documentation in devices.txt that this file is:
"234 = /dev/btrfs-control Btrfs control ...
1
vote
1
answer
157
views
What file is /dev/autofs?
I searched /dev/autofs from https://www.kernel.org/doc/Documentation/admin-guide/devices.txt
I searched for /dev/autofs in and found that it is 10,235. I used debian and stat /dev/autofs shows 10,235 ...
1
vote
1
answer
351
views
Pseudo-terminals control each other, how to get the return display
The problem is: my pseudo-terminal is /dev/pts/0, the target pseudo-terminal is /dev/pts/4, and I'm trying to get the target pseudo-terminal to print text using the echo text > /dev/pts/4 command.
...
1
vote
1
answer
462
views
Use libfido2 on macos to set PIN on usb security token
I have bought a FIDO-U2F/FIDO2 usb security token and managed to add it as passkey for github on my macOS (sonoma).
It didn't work for another site and I suspect that it's because the key doesn't have ...
1
vote
1
answer
339
views
Get /dev entry for USB on a Mac
I have never used a Mac before and have no idea what I'm doing. I need to run dd on a USB device to copy data off. I plug the device in, and it shows up in system_profiler SPUSBDataType. How do I ...
0
votes
1
answer
32
views
Why does VPS with stock Debian contain cdrom device?
I recently set up a debian 12 VPS with a new hosting company. It has:
/media/cdrom -> cdrom0/
/media/cdrom0/
And in /etc/fstab:
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 ...
0
votes
2
answers
826
views
I messed /dev/tty ownership and permissions [closed]
I was flashing a Flipper Zero Wifi Dev Board and I needed to have /dev/ttyACM0 owned by dialout group...
The thing is now I have tried to revert the stuff, making a chown root:tty /dev/tty*, and chmod ...
1
vote
0
answers
320
views
Udev rule randomly failing on boot
I have an embedded system with ubuntu running on it. Inside its /etc/udev/rules.d directory i put a file named 99-mydevice.rules:
KERNEL=="video0", SUBSYSTEM=="video4linux", ...
0
votes
0
answers
55
views
Why are /dev/sdX not persistent and we have to use udev rules? [duplicate]
Why are the /dev/sdX names not persistent and we have to use udev rules or something else? Why the name changes? Is it only the name and permissions or does something else change as well? Why?
0
votes
1
answer
274
views
Is there a way to permanently "assign" /dev/ names to removable USB devices
I have a GPS unit which attaches by a USB port to Raspberry Pi. Because of the "mysterious" (to me) way the Arch Linux system that powers the Pi assigns /dev/ filenames, I never know if I'm ...
0
votes
1
answer
807
views
How to read NAND OOB (including ECC) data in Linux?
I am working on an embedded Linux system (5.10.24), where there is a NAND FLASH as storage. The NAND FLASH supports internal ECC and has 128Bytes OOB.
Its DS says if the ECC is enabled the last ...
2
votes
1
answer
618
views
umount /chrootedpath /dev/pts after several chroot(s): target is busy
I've been doing several chrooted environments in parallel, each in separate folder (when the script with chroot exited I sometimes run another in same folder), and for a while it seemed fine. But now ...
0
votes
2
answers
189
views
Is there a kernel parameter to hide/disable disk at boot time?
I am looking to install a new linux distro in my computer and I'd like for it to not have access to other disks in my pc (e.g the disk where I have all my documents, other operating systems, etc.)
...
0
votes
3
answers
1k
views
Why can't I directly ls /dev/sda1
I have an external microSD card plugged into my machine via a USB stick. I believe it was auto-mounted because I can see
$ ls /media/me
7538-3DFD
I believe it is mounted to /dev/sda1 because I see
$ ...
0
votes
0
answers
103
views
Tool for monitoring kernel driver messages? What are the options?
I'm working on a kernel-level device driver that sends requests to an underlying piece of hardware. Those requests have a fixed length and a given layout (including multiple fields with encoded values,...
3
votes
1
answer
3k
views
What's the reason to add a symlink to /dev directory with udev rules?
I understand that you can write custom udev rules to create a symlink in /dev directory.
But what is the use of having a symlink in /dev?
What is the symlink linking to?
I know you can interact with ...
0
votes
0
answers
384
views
Sometimes cannot boot because a disk is mounted under the wrong /dev number
Hopefully this is not a duplicate question, I have found some similar ones but none that exactly match.
I have an Arch Linux installation dual booted alongside a Windows installation, both on ...
1
vote
1
answer
366
views
Can an audio output priority list be defined?
Is it possible to set priorities for audio output devices, such that audio will be sent to the appropriate output, depending on what’s plugged in? (That is, hot pluggable: the priority list should be ...
0
votes
1
answer
199
views
dd not enough space
I have a drive that is about 1TB big. It is mostly free space. When you add up the size of all the partitions, it is less than 256GB.
I have another drive that is 256GB.
I would like to clone the data ...
1
vote
0
answers
28
views
What happens behind the file system when moving the source of a loop drive into its mountpoint?
I moved the source of a loop drive into its mountpoint and umount it. Then the source disappeared.
Note that after moving the source to its mountpoint (or other location), the source was shown as ...