Best use of mdev?
Mike Frysinger
vapier at gentoo.org
Sun May 4 04:22:20 PDT 2008
On Friday 02 May 2008, Bernhard Fischer wrote:
> On Fri, May 02, 2008 at 12:49:33AM +1000, Michael D. Setzer II wrote:
> >-----BEGIN PGP SIGNED MESSAGE-----
> >Hash: SHA1
> >
> >I was just contacted by a user that has 11 partitions on a large hard
> > disk. My g4l project currently has the nods setup as being precreated in
> > the /dev directory. It had massive number of these for both the hd and sd
> > going all the way to sdp but only to the 9th option. I was manually able
> > to create a script to create the additional nods, but then started
> > looking at options to have it automaticly create the proper nods. I have
> > found the mdev, and seem to have figured some of it out, but think there
> > might be some additional things to make it work better.
> >
> >I booted from the g4l cd, and did the following manually.
> >
> >created the /etc/mdev.conf with these two lines.
> >
> >hd[a-z][0-9]* 0:3 660
> >sd[a-z][0-9]* 0:3 660
> >
> >Run the commands to create the /dev
> >
> >mkdir /sys
> >mount -t sysfs sysfs /sys
> >mdev -s
> >
> >Below is the original contents of the /dev directory minus all the hd and
> > sd files. Not sure which all of these can also be created with the
> > mdev.conf file and which have to be manually created. Also, some of the
> > directories were for raid systems that users had. Would the mdev create
> > these?
> >Unfortunately, I don't have all the hardware to test.
>
> I usually only have /dev/null and /dev/console and create all the rest
> via mdev.
/dev/console is required to be on the root device before userspace is even
executed. after that, if you code things safely, you literally need no other
nodes (mdev will create console and null for you). however, people often
create /dev/null ahead of time so they can redirect into it with impudence.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://busybox.net/lists/busybox/attachments/20080504/a526b530/attachment-0001.pgp
More information about the busybox
mailing list