Re: kernel-managed /dev, revisited

Teunis Peters (
Sat, 12 Jul 1997 20:24:52 -0600 (MDT)

On Sat, 12 Jul 1997, Joseph Pranevich wrote:

> On 11 Jul 1997, Miguel de Icaza wrote:
> >
> > > One of my biggest Linux pet peeves is having to reshuffle my !@#$@!
> > > /etc/fstab every time I reshuffle my drives. [I do know about
> > > Youngdale's tools for this] Running a news server means many SCSI ids,
> > > many SCSI hosts, and a lot of reshuffling, on into the night...
> >
> > Actually, I like Ted's idea better: Have the kernel scan the disk
> > labels at boot time for every partition detected and grab a list of
> > the disk labels on those partitions (you will need to label your file
> > systems of course).
> >
> > And then, instead of using devices for mouting your file systems, you
> > just mount them by name:
> >
> > mount usr /usr
> > mount MyToys /opt
> >
> Thid wouldn't be terribly hard to do. Well, not TERRIBLY hard. :)
> At boot time, put simlinks (Or maybe even use the dcache :) ) for drive
> labels in something like /dev/volumes (this would have to be done AFTER
> mounting root, of course) Then, patch mount to also look in /dev/volumes
> when you aren't using /dev/* syntax.
> A pain, I admit, but not hard.
> Too bad I have no reason to do any of this and probably won't. :)

<grin> - Neither do I... at the moment...
(past? yes. Future? maybe)

Of course, one can always build a new 'init' or the like that browses a
different file (or a different file format) and mount drives based on
drivelabels..... or whatever.

This needn't be a kernel solution.

Now that I think about it though, I toss in a vote for:
on naming though (eg tape on ID 4 lun 0 == st40 or the like)

[the /dev directory just looks for major/minor device numbers for the
most part... so perhaps that won't need fixing either....]

FWIW Why does kernel autonumber loaded SCSI devices?

- Teunis