Standard bsdlabel(8) layout not understood by Alpha bootblocks?

Ruslan Ermilov ru at FreeBSD.org
Thu Nov 11 10:27:13 PST 2004


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...
> 
> Yes, there is no standard.  See sys/disklabel.h and note that there are 
> different offsets for different archs.
> 
> #if defined(__i386__) || defined(__amd64__) || defined(__ia64__)
> #define LABELSECTOR	1			/* sector containing label */
> #define LABELOFFSET	0			/* offset of label in sector */
> #endif
> 
> #ifdef __alpha__
> #define LABELSECTOR	0
> #define LABELOFFSET	64
> #endif
> 
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,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- 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-alpha/attachments/20041111/29df48d8/attachment-0001.bin


More information about the freebsd-alpha mailing list