Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Aug 1999 17:18:01 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        imp@village.org, phk@critter.freebsd.dk
Cc:        current@FreeBSD.ORG
Subject:   Re: junior-hacker task: "prepdisk"
Message-ID:  <199908060718.RAA09944@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>>: It seems that our new boot blocks doesn't like the taste of disks
>>: prepared according to the meagre information we have in the handbook.
>>
>>How does this script differ from 'disklabel -w wd0 auto'?  It does do
>>the fdisk stuff (your script, not the disklabel command).
>
>It differs in that you can boot from the disk afterwards with my script,
>you cant with disklabel -w wd0 auto.

That may be because you forgot to supply the -r or -B args to disklabel,
or forgot to edit the label using disklabel -e.  I think no editing is
required to boot from the 'c' partition (the missing d_type initialisation
doesn't matter because the `d_type != DTYPE_SCSI' case defaults to
DTYPE_ESDI (aka IDE)).  The 'a' partition produced by
`disklabel -Brw wd0 auto ' is obviosuly unbootable and unnewfsable,
etc., since it is empty.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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