devfs: proposal to create links for bootdevice

Bernd Walter ticso at cicely7.cicely.de
Mon Aug 23 15:13:51 UTC 2010


On Mon, Aug 23, 2010 at 02:58:09PM +0200, Dr. A. Haakh wrote:
> 
> 
> Poul-Henning Kamp schrieb:
> >In message <4C72569B.9050807 at Haakh.de>, "Dr. A. Haakh" writes:
> >  
> >>Hi,
> >>
> >>it would be nice if device-nodes like bda, bdb, bdc ... could be created 
> >>at boot time referring to the partitions of the boot-device.
> >>
> >>With these nodes in your fstab you don't have to edit fstab if devices 
> >>change.
> >>    
> >
> >Use g_label ?
> >  
> glabel is an option if you have just one slice to boot from. If you have 
> several OSes using ufs (e.g 7.3 and 8.1) then you would have to
> use different labels and again different entries in fstab.  Generic 
> entries like the ones described above would be helpful.

It won't work with /dev/bd* either.
The loader knows the BIOS disk and the kernel gets the fstab entry
via loader.
If you put /dev/bda into fstab then the kernel doesn't know anything
/dev/ad0a anymore.
You need a bootstraping devicename anywhere.

-- 
B.Walter <bernd at bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.


More information about the freebsd-fs mailing list