From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sat, 19 Mar 2005 21:05:25 +0000 Subject: Re: UDEV removes my subdir/symbolic links from /dev Message-Id: <1111266325.21954.64.camel@localhost.localdomain> List-Id: References: <200503192048.j2JKmjaC024052@orion.dwf.com> In-Reply-To: <200503192048.j2JKmjaC024052@orion.dwf.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sat, 2005-03-19 at 13:48 -0700, clemens@dwf.com wrote: > Im sure that this has been covered before, but I dont see it > in the archive I have... Your /dev is on tmps I expect and does not survive a reboot. > On system startup (Fedora3), udev REMOVES two symbolic links in have in > /dev, viz udev does nothing like that except the kernel emits remove events for these devices. > ln -s /dev/ttyS0 oncore.pps.0 > ln -s /dev/ttyS0 oncore.serial.0 > > and removes a whole subdirectory and its contents, viz > > ############################ > # Make HID files for apcupsd > > mkdir -p /dev/usb/hid > mknod /dev/usb/hid/hiddev0 c 180 96 > mknod /dev/usb/hid/hiddev1 c 180 97 > mknod /dev/usb/hid/hiddev2 c 180 98 > mknod /dev/usb/hid/hiddev3 c 180 99 > mknod /dev/usb/hid/hiddev4 c 180 100 > mknod /dev/usb/hid/hiddev6 c 180 102 > mknod /dev/usb/hid/hiddev7 c 180 103 > mknod /dev/usb/hid/hiddev8 c 180 104 > mknod /dev/usb/hid/hiddev9 c 180 105 > mknod /dev/usb/hid/hiddev11 c 180 107 > mknod /dev/usb/hid/hiddev12 c 180 108 > mknod /dev/usb/hid/hiddev13 c 180 109 > mknod /dev/usb/hid/hiddev14 c 180 110 > mknod /dev/usb/hid/hiddev15 c 180 111 > > Since I need these entries, how do I get udev to 'play nice'? > It either has to leave these entries alone, or it has to delete and > rebuild them. If you plug in the device, udev should create the nodes for you or on bootup the nodes should be created by udevstart. If you want different names than the kernel names, write udev rules to catch the device and give it a new name. Kay ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel