The devices tag has no wiki summary.
23
votes
7answers
44k views
How do I find out what hard disks are in the system?
I need to know what hard disks are available, including ones that aren't mounted and possibly aren't formatted. I can't find them in dmesg or /var/log/messages (too much to scroll through). I'm hoping ...
5
votes
3answers
1k views
Understanding /dev and its subdirs and files
$ ls -l /dev/stdin /dev/fd/0
lrwx------ 1 tim tim 64 2011-08-07 09:53 /dev/fd/0 -> /dev/pts/2
lrwxrwxrwx 1 root root 15 2011-08-06 08:14 /dev/stdin -> /proc/self/fd/0
$ ls -l /dev/pts/2 ...
5
votes
3answers
395 views
How to get my USB key to auto mount
I'm currently working in a command line only environment.
When I plug my USB key in, I see a new device file in /dev:
...
sdi
sdi1
...
If I simply sudo mount /dev/sdi1 /media/tmp, and umount it ...
6
votes
3answers
2k views
If I connect a physical device, how can I ever know which device file belongs to it?
Say I plug in several USB drives which don't get automatically mounted. How can I find out which device file belongs to which physical device, so I can mount it for example?
I'm running Mac OS X but ...
10
votes
4answers
2k views
Can I setup a loopback audio device?
If I can send audio to the output devices, then I can record the same audio as a wave. With filesystems, you can just setup a loopback filesystem and write binary data on a file instead of a device.
...
5
votes
1answer
594 views
How to be notified when a USB device was plugged?
My system have to auto-mount for usb devices, how can I be notified when a usb device is plugged? Where can I read more about?
I would like to treat that using shell script or C.
3
votes
3answers
55 views
RHEL: Creating stable names for network interfaces
We have a RHEL 5.5 box with 8 interfaces. And the eth interface naming is flip flopping. Sometimes eth0 comes up on physical port 7th, and sometimes on another physical port.
We want the naming to ...
3
votes
1answer
1k views
How can I uniquely identify which device is on USB `hub 6-0:1.0: port 2`?
How can I uniquely identify which device is on USB hub 6-0:1.0: port 2?
I receive messages in my dmesg every now and then and I want the system to tell me which device is connected to that port.
...
21
votes
1answer
778 views
What do the device files in /dev actually do?
(Not a duplicate of Understanding /dev and its subdirs and files)
I was browsing around my filesystem and for the first time I took a second to analyze my /dev directory. I was surprised by the ...
7
votes
2answers
432 views
How can I tell whether a network interface is physical (device) or virtual (alias)?
I have a small home router running OpenWrt (Kind of embedded Linux for routers). It has five Ethernet ports, one labeled WAN and four labeld LAN 1 to 4. It has the following Network Interfaces defined ...
3
votes
3answers
2k views
Prevent claiming of novelty usb device by usbhid so I can control it with libusb?
I have a USB rocket launcher that I wish to experiment with through libusb. However, libusb cannot claim the interface; presumably because the output of usb-devices lists 'usbhid' as the driver for ...
4
votes
2answers
400 views
What’s the difference between a “raw” and a “cooked” device driver?
Does this concept only apply to terminal drivers (which is what most sites cover) or to any driver in general?
3
votes
1answer
2k views
Why do my SATA devices show up under /proc/scsi/scsi?
I have 3 SATA devices on my system. They show up under /proc/scsi/scsi, although these are not SCSI devices. Why do my SATA devices show up under the SCSI directory?
$ cat /proc/scsi/scsi
Attached ...
2
votes
3answers
180 views
Disk size management
I am using Fedora 16. My /dev/sda2, mounted on / (root) with something like 50G got filled 100%:
[foampile@~ 13:13:39]> df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs ...
2
votes
2answers
549 views
How does /dev/fd relate to /proc/self/fd/?
$ ls -l /dev/stdin /dev/fd/0
lrwx------ 1 tim tim 64 2011-08-07 09:53 /dev/fd/0 -> /dev/pts/2
lrwxrwxrwx 1 root root 15 2011-08-06 08:14 /dev/stdin -> /proc/self/fd/0
$ ls -l /dev/pts/2 ...
