1

I was looking at the udev information but couldn't find out anywhere. What does DEVLINKS signify also what are these values dev/disk/by-id/mmc-008G30_0xf281d20d & /dev/disk/by-path/platform-3400000.sdhci ?

output for above command enter image description here

1 Answer 1

0

DEVLINKS are unique names for a given device. In this case this is a a mass storage device, mmcblk0. The 2 DEVLINKS that this command is returning can be used when you want to address this storage device to query against it or reconfigure it.

You'll typically see devices go by multiple names, in this case the SD card is identifying itself as (by-id) mmc-008G30_0xf281d20d. The by-path typically shows where the device maps into your system's busses (think USB, PCI, etc).

Is there any significance in the names?

I believe the names are driven from the system's motherboard chipset + the devices themselves.

For example on my system, my /dev/sda device = /dev/disk/by-path/pci-0000:00:01.1-ata-1.0, the numbers are the "coordinates" of where this device resides in the PCI bus (pci-0000:00:01.1) and the ata-1.0 corresponds with the Linux "drivers" that are being used to manage the device.

Here's another one that's for the /dev/ttyUSB0 device - /dev/serial/by-path/pci-0000:00:1d.1-usb-0:2:1.0-port0. This one shows the PCI bus but its the USB driver which is the "driver" for this device.

References

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.