Subject: Re: install problems
To: David Ruppel <druppel@prodigy.net>
From: Zdenek Salvet <salvet@ics.muni.cz>
List: port-i386
Date: 08/04/1998 11:27:57
> After the superblocks have been written, I get:
> --------------------
>
> newf: ioctl(WDINFO): No such process
>
> newfs: /dev/rwd0a: can't rewrite disk label
>
> /sbin/newfs/dev/rwd0a failed with a return code = 256
>
> This is probably due to choosing the incorrect top-level install option -
> like
> trying to do an upgrade on a bare disk or doing a fresh installation on
> an
> already-running system. Or it might be due to a mispackaged miniroot.
> Whatever the cause, sysinst did not expect any errors here and the
> installation has almost certainly failed.
>
> I get this sequence of messages twice during the installation process--after
> each sequence of superblocks is written.
> -----------------------
>
> I have a 6.4 GB Western Digital hard drive with a maximum-sized primary DOS
> partition (~2 GB) and an extended DOS partition and then specify a NetBSD
> partition (~1.5 GB)
> at the end of the disk.
I think this is symptom of bin/5534 bug (my PR includes patch
for /sbin/disklabel).
>Fix:
*** disklabel.c.bad Wed Jun 3 19:30:25 1998
--- disklabel.c Wed Jun 3 19:32:04 1998
***************
*** 473,479 ****
if (dosdp) {
if (dosdp->dp_start != pp->p_offset)
confirm("Write outside MBR partition");
! sectoffset = pp->p_offset * lp->d_secsize;
} else {
if (mbrpt_nobsd)
confirm("Erase the previous contents of the disk");
--- 473,479 ----
if (dosdp) {
if (dosdp->dp_start != pp->p_offset)
confirm("Write outside MBR partition");
! sectoffset = (off_t)pp->p_offset * lp->d_secsize;
} else {
if (mbrpt_nobsd)
confirm("Erase the previous contents of the disk");
***************
*** 482,488 ****
#endif
#ifdef __arm32__
/* XXX */
! sectoffset = filecore_partition_offset * DEV_BSIZE;
#endif /* __arm32__ */
/*
* First set the kernel disk label,
--- 482,488 ----
#endif
#ifdef __arm32__
/* XXX */
! sectoffset = (off_t)filecore_partition_offset * DEV_BSIZE;
#endif /* __arm32__ */
/*
* First set the kernel disk label,
***************
*** 779,789 ****
#ifdef __i386__
if (dosdp)
! sectoffset = dosdp->dp_start * DEV_BSIZE;
#endif
#ifdef __arm32__
/* XXX */
! sectoffset = filecore_partition_offset * DEV_BSIZE;
#endif /* __arm32__ */
if (lseek(f, sectoffset, SEEK_SET) < 0 ||
read(f, bootarea, BBSIZE) < BBSIZE)
--- 779,789 ----
#ifdef __i386__
if (dosdp)
! sectoffset = (off_t)dosdp->dp_start * DEV_BSIZE;
#endif
#ifdef __arm32__
/* XXX */
! sectoffset = (off_t)filecore_partition_offset * DEV_BSIZE;
#endif /* __arm32__ */
if (lseek(f, sectoffset, SEEK_SET) < 0 ||
read(f, bootarea, BBSIZE) < BBSIZE)
***************
*** 850,860 ****
#ifdef __i386__
if (dosdp)
! sectoffset = dosdp->dp_start * DEV_BSIZE;
#endif
#ifdef __arm32__
/* XXX */
! sectoffset = filecore_partition_offset * DEV_BSIZE;
#endif /* __arm32__ */
if (lseek(f, sectoffset, SEEK_SET) < 0 ||
read(f, boot, BBSIZE) < BBSIZE)
--- 850,860 ----
#ifdef __i386__
if (dosdp)
! sectoffset = (off_t)dosdp->dp_start * DEV_BSIZE;
#endif
#ifdef __arm32__
/* XXX */
! sectoffset = (off_t)filecore_partition_offset * DEV_BSIZE;
#endif /* __arm32__ */
if (lseek(f, sectoffset, SEEK_SET) < 0 ||
read(f, boot, BBSIZE) < BBSIZE)
>Audit-Trail:
>Unformatted:
--
Zdenek Salvet salvet@ics.muni.cz
----------------------------------------------------------------------------
If God had meant for us to be in the Army,
we would have been born with green, baggy skin.