On Wed, 2003-07-23 at 09:28, dballester@xxxxxxxxxxxxxx wrote: > Hi: > I'm searching a user-way to be able to know what /dev/sdXX has been > assigned to any usb-mass-storage. In google all info is related in how to > mount automatically the scsi partition, but always are static. I trying to > do it dinamically 'cause today one usb-mass-storage can be assigned to > /dev/sda1 but tomorrow colud be /dev/sdb1. I'm searching under /proc/scsi, > /proc/partitions, /proc/bus/usb but all of them have no info ( to my eyes ) > to make a join between the device and the scsi partition assigned. > > No /proc/block or devfs enabled > > Any idea? One method is to look at /proc/paritions. The right way is to configure your /etc/updfstab.con.default file to help usb.agent recognize your device when it's plugged in and then it will automatically set up in fstab and a mount point created for it. For example, my Lexar flash card reader was working and detected by linux, but the fstab never was updated. So I looked in the logs and determined that the word "Lexar" seemed to identify it, so I added an entry for it under the "device flash" section of the updfstab.conf.defaults file. Now when I plug it in, I get /mnt/flash (or /mnt/flash1 if my other flash reader is plugged int). Sometimes you have to run /usr/sbin/updfstab manually. But this seems to be the best way. Michael > > TIA -- Michael L Torrie <torriem@xxxxxxxxxxxx> -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list