[Gllug] udev and memory sticks
Nick Warrington
nick.warrington at automationpartnership.com
Tue Jan 4 12:28:12 UTC 2005
Hi all
Has anyone had fun setting up udev for a USB memory stick? My .rules file
contains a one liner that appears to match the stick details ok and creates
nodes in /dev for sg, sdb and sdb1. I also have a symbolic links created in
/dev/flashram/
Here's my gripe,
When I remove the stick the devices sg, sdb and sdb1 are removed as expected
but the symbolic links are not. (I guess I expected them to be removed by
udev)
in the .rules file, if I set the name to something other than NAME={%k}
(which gives me the sda,sda1 and sg entries) such as NAME={flashram%n} then
those devices are not removed when the stick is pulled out. (It seems they
need to be the kernels name choice to be removed)
Does anyone know if its possible to remove the links and also why the
devices are not removed when they are named something other than %k
All help / amusing anecdotes welcome.
Ta
Nick
Out of interest I am using Kernel 2.6.9.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
______________________________________________________________________
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list