Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-16-2005, 12:07 AM
|
#1
|
Member
Registered: Apr 2003
Location: Reading, Berkshire, IN-GER-LUND!!!
Distribution: Mandriva 2006
Posts: 228
Rep:
|
How to create persistent entries in /dev?
'evening all!
How does one create persistent (i.e. stay after reboots) entries in /dev? I need to manually make /dev/md1 and md2 using mknod in order to assemble two RAID arrays, but I'd like this to be automated.
I'm using Mandriva 2006.
Cheers!
|
|
|
12-16-2005, 01:15 AM
|
#2
|
Member
Registered: Nov 2003
Distribution: Arch Linux / LFS
Posts: 49
Rep:
|
Are you using devfs or udev? If using udev you can create a rule for them in /etc/udev/rules.d to be created when udev is started on boot, or when issuing /sbin/udevstart.
|
|
|
12-16-2005, 03:50 AM
|
#3
|
Member
Registered: Apr 2003
Location: Reading, Berkshire, IN-GER-LUND!!!
Distribution: Mandriva 2006
Posts: 228
Original Poster
Rep:
|
I'm using udev. There is a line in /etc/udev/rules.d/50-mdk.rules that goes:
KERNEL=="md[0-9]*", SYMLINK+="md/%n", GROUP="disk"
I'm assuming this means something on the lines of "create md0 to md9 in /dev"? But then why does it only create md0?
Do I need a NAME assignment in that line? I'm a n00b to all this stuff.
Cheers!
|
|
|
12-16-2005, 11:57 AM
|
#4
|
Member
Registered: Apr 2003
Location: Reading, Berkshire, IN-GER-LUND!!!
Distribution: Mandriva 2006
Posts: 228
Original Poster
Rep:
|
Fixed (for Mandriva 2006 at least)
It would appear that the /dev/md? entries are created automatically if they are defined in /etc/mdadm.conf Or rather, it works now and that is the only difference that I made before rebooting.
|
|
|
All times are GMT -5. The time now is 07:54 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|