/dev entries
Im wondering how do i find out what /dev/ entry a device is assigned when connected if im not running devFS. For example i have usb 250 zip drive. If i keep it connected when i boot into linux, i can mount it via /dev/sda4, and i have IDE-SCSI emulation for my cdrom, and in the logs i can see it is assigned as /dev/sr0.
However the problem is when i connect the Zip drive while the computer is running. In the logs i see that linux recognized the device was conected, and that it was claimes by a driver (usb-storage) but i can not figure out what /dev entry to use to mount it. The same thing with my sony NW-E10 mp3 player that has flash memory. When i connect it, from the logs i see that linux recognizes a new device was conected, and sais that it is not claimed by any active driver, but does it still get a /dev entry? And how do i find out /dev entries. I looked at logs, and at /proc but i didnt find them (maybe i missed them??) Is there a place where devices are assigned /dev entries where i can look them up? Thanks -NSKL |
Have a poke around in the /proc directory, you can view the files with the 'cat' command, eg,
Code:
bern@aptiva:~$ cat /proc/bus/usb/devices |
I did poke around in /proc even before posting the original question, but i can't find to what /dev entry a device is assigned. O poked everywhere where i thought i'll find something useful, but no go. Lookes at /proc/scsi/usb-storage tree and /prc/bus /prc/devices etc, but although it sais what devices are attached, it doesn't say where (where in /dev) i can find them. Do i need to run DevFS to find out device names? There has to be a file somewhere that sais:
zip drive -- /dev/sda2 cdrom -- /dev/hdc etc... or else how can you mount a device if you can't figure what entry it has been given? For example i just tried to mount my Zip drive again, that used to work as /dev/sda4 under slack 8.0, but not anymore (and i know its recognized and claimed by a driver, it sais so in /prc/scsi/usb-storage/0 ) but i cant find what /dev entry to use to mount it. Tried sda1 through 9.. Any help, or is the only solution DevFS, in which case it's not good, because DevFS doesn't keep permissions over reboots, so i must make a script and invoke it at start-up to give appropriate permissions for /dev under DevFS... Thanks for any tips on finding what /dev to use for a ZIP 250 (SCSI) drive, and a NW-E10 mp3 player, usb conected, internal flash memory.. Thanks -NSKL |
If you have hotplug then dmesg should tell you what device it is.
|
from this link:
http://www.linuxjournal.com/article.php?sid=6035 Quote:
|
Ahh, although i read some DevFS docs, i must have skipped over this, because i remember reading that the easiest way is making a script. Anyway, this makes DevFS much more inviting. Thank you very much.
And just out of curiosity, of those who are reading this, who uses DevFS? Thanks again -NSKL |
love it.
|
Hate it :-)
|
All times are GMT -5. The time now is 09:35 PM. |