USB removable media problem

'Forum Post ulist at gs1.ubuntuforums.org
Tue Nov 1 08:03:04 UTC 2005


Hi,



i just had some problems with udev and hotplug as well. And my findings
are as follows.



In breezy the hotplug subsystem was changed, so that the most howtos
and wikis are nor longer useful. In recent releases devfs was used to
create the devicenodes in /dev/. This is no more. Udev does this now.



You now must use udev to create the devicenodes. man udev will help and
also the udev faq at kernel.org.



Your problem might be solved by create a specific rule for your zip
drive which creates two devicenodes in /dev  one named as "usual" by
using the %k parameter and one created as example "myzip" using the
symlink parameter. 



Then you can mount your zip in the fstab by using the sysmlink
/dev/myzip



/dev/myzip /mnt/pd ext2 defaults,noauto,users 0 0



Udev was programed to make persistant devicenames possible. This  is, i
think,  where your problem lies in.



Here you go:



1. Create a udev rule in /etc/udev/rules with the the name *.rules *
has to be the lowest alphabetical order

this page might be helpful to create the rule

http://www.reactivated.net/writing_udev_rules.html



be warned that in breezy some things are diffrent from newer releases
of udev and the kernel



2. change your fstab as shown above



I´m not able to test this, but if i understood things right this will
work.



At least i hope this will give you some further hints where to search.

HTH

JBD


-- 
JohnBoyDoe




More information about the ubuntu-users mailing list