Pavol Gono wrote:
Hi I need to distinguish what kind of device is /dev/hda, hdb ..., /dev/sda, sdb, ... Generally it can be IDE disk, SCSI disk, flash card, USB stick, USB disk, hardware RAID, etc. I looked to /proc file system and didn't find any safe method to find it out. Is in debian any userspace tool which can detect type of devices?
You need udev. There's a good howto out there.