Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Nov 2004 20:27:09 +0200
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        freebsd-alpha@FreeBSD.org
Subject:   Re: Standard bsdlabel(8) layout not understood by Alpha bootblocks?
Message-ID:  <20041111182709.GD5201@ip.net.ua>
In-Reply-To: <200411100821.22374.jhb@FreeBSD.org>
References:  <20041110082702.GE65475@ip.net.ua> <200411100821.22374.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--3Pql8miugIZX0722
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Nov 10, 2004 at 08:21:22AM -0500, John Baldwin wrote:
> On Wednesday 10 November 2004 03:27 am, Ruslan Ermilov wrote:
> > Hi,
> >
> > When migrating to a larger disk on my AlphaPC 164SX yesterday,
> > I've found that the standard bsdlabel(8) layout is not understood
> > by the Alpha bootblocks.  By "standard" I mean that the `a'
> > partition holding the root file system starts at offset 16.
> >
> > I did "bsdlabel -B -w da1 auto", then split the auto-created
> > `a' partition (that starts from offset 16) to /, /usr, /tmp,
> > and /var, then used newfs/mount/dump/restore to copy file
> > systems to a new location.
> >
> > After a reboot, bootblocks complained that /boot/loader was
> > not found.
> >
> > I re-edited the label, and changed the partition `a' to start
> > from offset 0, doing another newfs/mount/dump/restore cycle,
> > this resulted in a mountable disk.
> >
> > This is with 6.0-CURRENT...
>=20
> Yes, there is no standard.  See sys/disklabel.h and note that there are=
=20
> different offsets for different archs.
>=20
> #if defined(__i386__) || defined(__amd64__) || defined(__ia64__)
> #define LABELSECTOR	1			/* sector containing label */
> #define LABELOFFSET	0			/* offset of label in sector */
> #endif
>=20
> #ifdef __alpha__
> #define LABELSECTOR	0
> #define LABELOFFSET	64
> #endif
>=20
Pardon my ignorance, but what does this have to do with the
problem I'm describing?  The label in both cases is in sector
0, it's the start of the partition `a' that matters.


Cheers,
--=20
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

--3Pql8miugIZX0722
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFBk679qRfpzJluFF4RAjkDAJwPEUMfucHgQtIqHT0OMa6cYl6HkwCdFUHh
2zUjKqrsGiXMAYeUYCeE2EU=
=2LHl
-----END PGP SIGNATURE-----

--3Pql8miugIZX0722--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041111182709.GD5201>