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
1
vote
1answer
802 views

logical volume, logical disk, volume, partition, physical disk and filesystem

I was wondering how logical volume, logical disk, volume, partition, physical disk and filesystem are related and correspond to each other? I am confused about these concepts and would like to have ...
3
votes
1answer
1k views

Can I use a parallel port as a CUPS input device?

I have an old piece of a hardware that does diagnostics on medical equipment. It prints out results over a parallel port. Is there any way to have CUPS accept jobs from a parallel port and redirect ...
-1
votes
0answers
19 views

Complex partition - volume term's dilemma

I'm struggling with some terms like disc, volume, partition. A [physical] partition is a section of a storage device, such as a hard disk drive or solid state drive. It is treated by the ...
15
votes
3answers
49k views

PKCS#7 signature not signed with a trusted key

Installed Ubuntu with SIP disabled on MacBook 2017 - 0 issues, booted in seconds. I have been building it out and created a problem while trying to make the WiFi work. At some point (it was very late)...
0
votes
0answers
11 views

Running Xorg-Server within Docker container on Arch Linux - Keyboard/Mouse input disabled

I want to run a Xorg Server within a container following this guide: https://joshh.info/2016/xserver-inside-docker-container/ But I use Arch therefore. It works fine but I stumple over the mentioned ...
1
vote
0answers
35 views

type string as if it were a keyboard

I have a bunch of unicode symbols in a file and a script to select and copy one of them (dmenuunicode script in this repository which I've forked). But instead pasting them I would like to save one ...
1
vote
0answers
23 views

LLinux Device Driver interfacing

In device driver programming we are using following items: Device driver code Device file Actual physical Hardware (till now not used in my coding) User space application code What I understood is ...
12
votes
5answers
10k views

Special File that causes I/O error

I want to automatically test if a piece of software reacts as expected if an essential SQLite DB file fails to be read (causing an I/O error). Exactly that happened some days ago at a client. We ...
1
vote
1answer
139 views

Jetson TX2 device tree, i2c nodes and camera driver loading

I am a bit confused with behavior of Jetson TX2 when loading drivers for camera. Here is definition of IMX274 in device tree: i2c@3180000 { reg = <0x0 0x3180000 0x0 0x100>; ...
0
votes
0answers
14 views

Skype Linux Mint: no device found when running as user

I have a problem with Skype on my PC with Linux Mint 19. When I run Skype, it doesn't recognize any of my devices anymore whereas it was working perfectly before. I tried to launch Skype as root ...
2
votes
1answer
31 views

Adding entropy to /dev/random

I'm in the process of designing and building a quantum random number generator for high security applications (and potentially data centres). As part of this, I would like to feed the random numbers ...
51
votes
5answers
65k views

What is the mknod command used for?

I just started using Ubuntu as my main OS and I wanted to learn about things I should not do, and learn by the bad things people have done in the past. I came across these email about horror stories ...
0
votes
2answers
35 views

How can I blacklist my inbuilt mic

I tried to blacklist my inbuilt mic, I also search on some other web site They showed the command. "cat /proc/asound/modules" I run it and I have the out put of 0 snd_hda_intel 1 snd_hda_intel If ...
6
votes
1answer
694 views

Multiple /dev/video for one physical device

First some specs: my computer is an HP EliteBook 8460p. It comes with an integrated Chicony HP HD webcam. My issue is that a lot of applications (well, at least Skype and guvcview) are displaying ...
1
vote
1answer
1k views

Run Out Of Space On /dev/sda2

My Linux (Mint 13) laptop reported that 'The volume "Fiilesystem root" has only 0 bytes disk space remaining'. When I ran a 'df' I got the following result:- HP-255-G1-Notebook-PC # df Filesystem ...
0
votes
0answers
18 views

How does gnome-terminal receive information from the pseudo-teletype on X? [duplicate]

I have the following terminal session: [OP@localhost ~]$ tty /dev/pts/2 [OP@localhost ~]$ echo hello > /dev/pts/2 hello My question is how the application gnome-terminal, receives the string "...
4
votes
1answer
458 views

/dev directory; characteristic device files: network_latency, network_throughput

I'm using some networking devices for car to car communication which runs on Linux 3.10.17 OS. With those devices I've to measure the overall network throughput and latency. Inside the /dev directory, ...
1
vote
0answers
25 views

USB Keyboard doesn't work until I manually inspect its device file

So I have a USB Keyboard that I built myself which runs the qmk keyboard firmware. I would preface this by saying that it's possible that this is a bug in the keyboard firmware. However, since the ...
-1
votes
1answer
83 views

DoS: how to limit access to /dev/random?

One of my users likes to cat /dev/random > /dev/null. This has caused issues with other processes performing poorly because they're blocked waiting for entropy. Is there a way of preventing users ...
0
votes
0answers
110 views

rm: cannot remove '<Directory name>': Device or resource busy

I know there can be a lot of duplicates. I have gone through almost all of them (like lsof, fuser, etc) and I could not get it resolved. rm: cannot remove 'temp_p/sys': Device or resource busy ...
3
votes
1answer
75 views

How to make /dev inside linux namespaces

AFAIK the container terminology, what I'm essentially trying to accomplish is to write my own "container runtime". What I'm doing: user@host:~$ mkdir test user@host:~$ cd test user@host:~/test$ ...
0
votes
1answer
27 views

“No partition active” when booting from a USB

I'm not sure if this is a "unix" question, but I'm in dire straits: I'm running Mint 18.1 Serena 64bit. I'm trying to burn a Windows 10 ISO to a USB drive so that I can boot from it via selecting it ...
2
votes
2answers
151 views

How can I disable an input device?

I have a broken laptop built-in keyboard (The shift-button sometimes gets stuck down). I exclusively use an external keyboard, but the internal keyboard interferes with it. (I can not unplug the ...
6
votes
2answers
71k views

/dev/sdb: No such file or directory (but /dev/sdb1 etc. exists)

I'm not sure what is wrong here but when running fdisk -l I don't get an output, and when running fdisk /dev/sdb # I get this fdisk: unable to open /dev/sdb: No such file or directory I'm ...
5
votes
1answer
23k views

Kali Linux and RTL8812AU

Currently I am running into an issue where I can't seem to find a way to identify which WiFi adapter I want to use as my primary in Kali (v 2017.1) My laptop has a normal PCI WiFi card inside however ...
-3
votes
1answer
98 views

Time and again I forget the meaning of a single hyphen in the end of some utility commands [duplicate]

Time and again I come across old codes and recognize a single hyphen in the command's end: mysqldump -u root -p --all-databases | zip "$drt/db-$date.zip" - or wget ${target_url} -O - | tar -xzv --...
0
votes
0answers
44 views

FreeBSD: how can I check if `/dev/random` is blocking?

So this exact question has been asked many times about Linux's implementation of /dev/random, but I am struggling to find an answer that is FreeBSD specific. From the FreeBSD random(4) man page: ...
0
votes
1answer
34 views

MDADM creates additional block devices

I noticed a strange issue when creating RAID array with mdadm. As far as I see, it creates additional devices of md type. According to the kernel.org documentation, the md device type is Metadisk (...
0
votes
0answers
41 views

Kernel randomly maps storage device to different device file

So this is kind of strange. I was trying to put a screenshot into my Videos/ directory, and while trying to cd where I wanted to go, I was getting I/O errors. For context, I have a storage drive ...
7
votes
1answer
929 views

How to rename devices for graphical output such as VGA0

On my Laptop the names of my graphical outputs change depending on what chip is activated in the BIOS. This leads to problems in some scripts where outputs such as VGA-0 or LVDS-0 are specified. So I ...
0
votes
0answers
29 views

Query the target device for installed PCI devices on ubuntu

Is there a way to query the target device for installed PCI devices on ubuntu. I use VideoCapture Card and 8 cameras. Every time /dev/video* changes but I would like to assign a camera to specific /...
18
votes
3answers
63k 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, ...
1
vote
0answers
17 views

Automatically remove a device from /dev

I am having keyboard problems, with a laptop built in keyboard. I have an external keyboard, so wish to disable the internal one. So far I have discovered that I can disable within X11 using xinput ...
1
vote
1answer
1k views

(Linux) unable to mount from initramfs [closed]

I am trying to install Linux (Debian) on a new laptop. This requires special care because the laptop keyboard needs a kernel patch (and I have not compiled a kernel for about 10 years). Also, because ...
0
votes
1answer
1k views

Udev Rules Not Running

I'm playing with Udev Rules on OpenSuse Leap, and I'm trying to run a simple and small script once a USB device is plugged into my system. However, my script which I added in my keyword "RUN+=" does ...
1
vote
1answer
1k views

Disable Ethernet Hardware Devices at start-up

To startup vm called "sys-net" in Qubes on my laptop need to write "1" in file echo -n "1" > /sys/bus/pci/devices/0000\:04\:00.0/remove also 0000:04:00.0 and 0000:04:00.1 are conflicts and need ...
0
votes
0answers
14 views

eCSPI with different MOSI, MISO and SCK per spi_device

The manufacturer's device tree setup for ecspi1: &ecspi1 { fsl,spi-num-chipselects = <1>; cs-gpios = <&gpio2 30 0>; pinctrl-names = "default"; pinctrl-0 = <&...
1
vote
1answer
91 views

What is the use of the dummy device?

I am checking the code of the dummy device driver. The dummy_xmit() function destroys the packet. I want to ask what is the real use of the dummy device or is it not useful today and is a legacy ...
3
votes
2answers
6k views

How to prevent /sda /sdb changes between boots?

I am going to install Gentoo Linux onto an old hardware, which motherboard is having both IDE and SATA hard drives. I have two IDE and one SATA hard drives connected, and plan to do RAID on them. ...
-1
votes
1answer
46 views

make a pseudo device like /dev/random that outputs primes?

/dev/primes is what I want without writing C code just python which I have known and easily written the program. The device file should be similar to /dev/urandom that outputs primes instead of ...
4
votes
1answer
30 views

How to I set the permissions necessary to make the ioctl CDROM_SEND_PACKET command run?

I've run into an error stemming from lacking permissions when using the CDIO library to issue an eject command to my USB CD-ROM drive. I always get an error message like this: INFO: ioctl ...
0
votes
1answer
19 views

Sort block devices by most recently connected?

How can I block devices by the most recent added ones? No option in lsblk seems to have that functionality.
5
votes
1answer
1k views

Remote Mouse netcat (/dev/input/mice)

I was playing around with nc and I'm discovering how powerful and versatile this tool is. I was wondering how the file /dev/input/mice works because when I do cat /dev/input/mice you see the output, ...
1
vote
1answer
62 views

How can I check the model of a device connected to a specific COM through a ssh connection

I am trying to access a remote machine through ssh and check the model of a device that it is connected to a specific COM port; I know what port it is. I have tried some commands, but they either don'...
13
votes
2answers
2k views

Why are < or > required to use /dev/tcp

When trying to call /dev/tcp/www.google.com/80, by typing /dev/tcp/www.google.com/80 Bash says no such file or directory. When looking at other people's code online, they use syntax such as 3<&...
0
votes
1answer
40 views

How do I see that a device is mounted with `exec` option using either mount or /proc/mounts?

I've mounted a cdrom device with mount -o exec /dev/sr0 /media/cdrom0, since I couldn't execute files on it, when the drive was initially mounted by the virtual machine. Now, when I run cat /proc/...
0
votes
1answer
597 views

KDE Connect to Sync Android Device with CentOS 7

What are the KDE Connect process and packages that needed to sync android devices with centOS 7. I want to bridge centOS and android but couldn't find any solution online.
1
vote
1answer
1k views

How to associate physical usb port with usb device number

I'm using Ubuntu 12.04. I need to send a command to a device that I have connected on a port of my PC. I can send the command by finding out what the Bus and Device number are. For example, lsusb ...
0
votes
1answer
86 views

Partition table & filesystem for a USB flash drive

I've got a USB flash drive I want to use on printers, audio equipment, and other various devices. In my experience, most Linux is very forgiving about what partition table and FS type I use on my ...
0
votes
1answer
2k 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. ...