On Fri, 12 Aug 2011, Sudarshan Jagadale wrote: > *Hello sir, > > *Can you please let me know how to get the actual or active slot on linux > file system? i think we call then as bus_name as well.* Sometimes there is no PCI slot. Devices hosting a filesystem don't have to use PCI. However, you can always do something like this: $ ls -l /sys/block/sda lrwxrwxrwx. 1 root root 0 Aug 12 10:51 /sys/block/sda -> ../devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/block/sda/ Replace "sda" in the ls command with the appropriate device name. The PCI slot number can be found in the symlink information -- in this case pci0000:00/0000:00:1f.2. You can get the same information using udevadm: $ udevadm info --query=symlink --name=/dev/sda block/8:0 disk/by-id/ata-ST9250315AS_5VCD75ZW disk/by-id/scsi-SATA_ST9250315AS_5VCD75ZW disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0 disk/by-id/wwn-0x5000c500218af855 > > can we have more than one active bus on single system? Yes. Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html