Skip to contentSkip to conversation

udev rules for /dev/discs/disc0

DISCUSSION Rui Carvalho 2 participants 2 messages Nov 10, 2004 – Nov 13, 2004

lore
Share & tools
lore
#0 lore raw

Hi!

I'm changing from devfs to udev, and since I have some hardcoded scripts, I'd like to keep compatibility with devfs device naming scheme.

My only problem is how to make the rules for hda, hdb, sda, sdb ... to have symlinks in
/dev/discs/disc0
/dev/discs/disc1
... and so on.

Thanks for your reply.

Rui Carvalho

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 10 lines · Rui Carvalho

Hi!

I'm changing from devfs to udev, and since I have some hardcoded scripts, I'd like to keep compatibility with devfs device naming scheme.

My only problem is how to make the rules for hda, hdb, sda, sdb ... to have symlinks in
/dev/discs/disc0
/dev/discs/disc1
... and so on.

Use the supplied shell scripts in the udev extras/ directory. They should be able to provide you with this functionality (hint, gentoo's rules are setup this way by default, so you might want to look at them.)

Good luck,

greg k-h

-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel