Questions tagged [device]
71 questions
26
votes
2 answers
Why is there both character device and block device for nvme?
I am trying to understand the configuration of nvme.
But I do not understand why there are two devices: nvme block and nvme character device:
crw------- 1 root root 243, 0 Dec 12 16:09 /dev/nvme0
brw-rw---- 1 root disk 259, 0 Jan 14 01:30…
GP92
- 781
15
votes
3 answers
Look up manufacturer based on Mac Address?
I want to incorporate into a piece of software the ability to look up a manufacturer based on a mac address. By googling "mac address lookup" and similar, I have noticed several websites that make this correlation which suggests this data source is…
John R
- 297
12
votes
3 answers
Find information for local IP address?
We have had a BT engineer visit recently, trying to solve a problem with our IP phone system.
One point they made was that we had four DHCP servers running on the network. I have disabled two of them (one of them should be running) and tested…
dannymcc
- 2,747
- 10
- 49
- 73
9
votes
1 answer
When using nmcli, what is considered a device, an interface and a connection? What's the difference?
What are dependencies and relations between device, interface and connection in nmcli cmdline utility under linux?
The below questions are asked in context of nmcli and networking in linux:
Which can be only in 1:1 relation and which can be in…
bastiat
- 237
8
votes
7 answers
find out if disk is IDE or SATA
I need to find out if a disk is IDE or SATA (or anything else, maybe). I know that the device is /dev/sda, so I think it's SATA, but I don't know if I can be sure just by the name. I tried looking at dmesg and it always says "SCSI", but I'm sure…
cd1
- 1,514
8
votes
2 answers
How do I tell which kernel module is servicing a /dev device?
How do I find out which kernel module (as seen by typing lsmod) is servicing a particular device in /dev?
In other words, say I have a device, /dev/input/mouse0 and I want to find out which kernel module is installed to service that device. How do I…
regulatre
- 286
- 3
- 11
6
votes
4 answers
Prevent end-users from purchasing apps on iOS
We are looking to deploy iPads from inside our organization. We want to be able to install apps for users, which can be done via Mobile Device Management. However, we do not want users to be able to purchase apps, as these apps can be purchased with…
Mustard
- 193
5
votes
1 answer
No space left on device in spite partition is not 100%
I am trying to do the following on my Linux machine CentOS release 5.8
cd /var/APPstoreldap/Home
touch test
touch: cannot touch `test': No space left on device
so I verified the partition disk space capacity in order to understand if …
maihabunash
- 453
5
votes
2 answers
Refresh /dev/sdx list
I've been messing around with my storage array (in that case 2xMD3000 SAS) and between the scans/rescans/delete/add my /dev/sdx block devices are all messed up.
Some of them are non existent and using fdisk on them gives:
fdisk: unable to open sdc:…
Martino Dino
- 1,165
4
votes
5 answers
Linux - How to figure out what harddrives are attached?
So I have a server that has a few harddrives in it, all formatted and mounted. However I'm told there is another drive attached to it. How do I find out what drives are attached? How do I find out the device filename for this new drive (that's not…
Amandasaurus
- 33,461
4
votes
1 answer
watchdog service is not working because /dev/watchdog does not exist
There is a ITE8783 watchdog chip placed within my machine (OS Ubuntu 14.04.1).
The kernel module it87 supports is.
This module was not automatically loaded on startup.
So I added it87 to /etc/modules. Now the module loads at startup.
it87: Found…
wenzul
- 225
4
votes
2 answers
iostat: See current usage rather than average
I need to log disk statistics (MB/read, MB/write) of block devices. As I understand, iostat shows an average value. This is not exactly what I want when I'm about to monitor a server. Is there a way to show current values rather than the…
Daniel
- 3,347
4
votes
5 answers
usb device -> block device mapping on Ubuntu?
Apologies if this is a duplicate, however.
I have 2 usb mass storage devices, and I need to be able to work out which physical device maps to a block device.
They are not both always present, so I can't just rely on a fixed block device path.
I've…
Matt
- 179
- 1
- 2
- 9
4
votes
1 answer
How can I sort ls -l /dev by type and major and minor device number?
How can I sort the /dev directory by type and major and minor device number when doing ls -l?
The best way I've found so far is:
ls -l /dev | sort -k 1.1,1.2 -k 5n -k 6n | less
Is there a better way?
Dennis Williamson
- 64,083
3
votes
0 answers
/dev/ttyS0 in lxc container
How to set up lxc to get /dev/ttyS0 in lxc container.
I add
# /dev/ttyS0
lxc.cgroup.devices.allow = c 4:64 rwm
into config
but nothing works -
If I add manually mknod in running container everything works until reboot - after reboot device ttyS0…
SledgehammerPL
- 833