bios disk numbers and device names
Daniel O'Connor
doconnor at gsoft.com.au
Mon Nov 29 14:25:45 PST 2004
On Mon, 29 Nov 2004 23:09, Andrea Campi wrote:
> On Mon, Nov 29, 2004 at 07:21:00AM -0500, Michael Grant wrote:
> > Has anyone thought about this problem? Is there some spare space in
> > the label that could be used for a device name that, if set, could
> > be used in place of (or an alias for) a name like da0?
>
> GEOM_LABEL is what you're looking for. Check the glabel(8) man
> page. In a nutshell, you'd do this:
>
> tunefs -L log /dev/ad1s1a
> tunefs -L db /dev/da4s1a
> tunefs -L www /dev/da4s1a
> ...
>
> mount /dev/ufs/log /mnt/log
> mount /dev/ufs/db /mnt/db
> mount /dev/ufs/www /mnt/www
>
> (you get the idea). Obviously you can move use the /dev/ufs/*
> devices in fstab as well.
>
> If later on you move the filesystems to a different device while
> retaining the label (which means no tar, you have to use dd or
> dump/restore), everything works.
Ooh nice, the things you learn :)
(Glad to be proven wrong..)
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20041130/caa9c4d2/attachment.bin
More information about the freebsd-stable
mailing list