![]() |
|
|
|
|
1
5th November 04:09
External User
Posts: 1
|
Sorry for the vague subject, this problem is hard to summarize.
Bascically I'm trying to get Linux to forget what USB mass storage devices (keychains, portable HDs, etc.) it has seen. When I plug in a keychain it is attached as /dev/sda1 and I can do stuff with it (mount it, use mtools, whatever). I unplug it and plug in a different keychain. That one is attached as /dev/sdb1. And so on. Each new USB device is attached as a different SCSI device. /proc/scsi/usb-storage-*/* correctly shows the devices, and correctly indicates which are still attached. The behavior I need is for Linux to forget the device when it is detached. If I plug something in it should show up as sda1. If I unplug it and plug something else in the new one should show up as sda1. The only time I want to see sdb and higher is if I have more than one device plugged in at a time. Is there an easy, clean (no gross automount stuff) way to do this? Or do I have to hack the kernel? -- READ THIS -> http://www.xs4all.nl/~hanb/documents/quotingguide.html Jon Martin - Undergraduate Labs Systems Administrator (ISG - labadmin) Department of Computing Science at University of Alberta. |
|
|
|
|
|
| Some other forums that might be of your interest : Debian, Gentoo, Mandriva, Red hat, Suse, Slackware, Ubuntu, Gnu linux |