LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 12-16-2005, 12:07 AM   #1
PsychosisNode
Member
 
Registered: Apr 2003
Location: Reading, Berkshire, IN-GER-LUND!!!
Distribution: Mandriva 2006
Posts: 228

Rep: Reputation: 30
Question 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!
 
Old 12-16-2005, 01:15 AM   #2
axion0917
Member
 
Registered: Nov 2003
Distribution: Arch Linux / LFS
Posts: 49

Rep: Reputation: 16
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.
 
Old 12-16-2005, 03:50 AM   #3
PsychosisNode
Member
 
Registered: Apr 2003
Location: Reading, Berkshire, IN-GER-LUND!!!
Distribution: Mandriva 2006
Posts: 228

Original Poster
Rep: Reputation: 30
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!
 
Old 12-16-2005, 11:57 AM   #4
PsychosisNode
Member
 
Registered: Apr 2003
Location: Reading, Berkshire, IN-GER-LUND!!!
Distribution: Mandriva 2006
Posts: 228

Original Poster
Rep: Reputation: 30
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A /dev/modem link not persistent awl Slackware 5 08-30-2005 01:58 PM
/dev entries lord-fu *BSD 2 05-27-2005 08:52 AM
how are /dev entries created? quatsch Mandriva 3 03-10-2004 09:41 AM
/dev entries NSKL Linux - Hardware 7 01-08-2003 03:48 PM
Adding persistent(permanent) route entries on Red hat Linux 7.1 sram Linux - Networking 1 02-08-2002 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration