Subject: Re: mounting linux partitions, all of them?
To: Paul (NCC/CS). <pts@bom.gov.au>
From: Daniel Carosone <dan@geek.com.au>
List: port-i386
Date: 09/13/2004 13:57:44
--kPJUzav3owWaKxsz
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Sep 13, 2004 at 12:17:45PM +1000, Paul (NCC/CS). wrote:
>=20
>=20
> Those 2 lines though...
> $ sleep 90 < /dev/rsd0d &
> $ mbrlabel -w sd0
>=20
> what an incantation:)!
>=20
> what does this do, how does it work?

The mbrlabel line is the one that populates the in-core label from the
MBR partitions on disk, including extendeed partitions. Normally, when
the kernel fabricates an in-core label for a non-NetBSD disk, it only
looks at primary partitions.

By default the in-core label is forgotten and reconstructed each time
a disk is last closed and reopened; this is useful with removable
media, for example.  The sleep trick keeps an open filedescriptor to
the disk, and prevents this happening.

See my other post for how to change the default label-forgetting
behaviour.

--
Dan.
--kPJUzav3owWaKxsz
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iD8DBQFBRRq3EAVxvV4N66cRAiIOAJ0VgEBeEblDCS4cSSuK9r9drLgYYwCePJjO
IKWQb2qfH1Q1gHdTvuQ3Nps=
=mwEn
-----END PGP SIGNATURE-----

--kPJUzav3owWaKxsz--