Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 1999 00:16:52 +0200 (SAT)
From:      Robert Nordier <rnordier@nordier.com>
To:        asami@FreeBSD.ORG (Satoshi Asami)
Cc:        rnordier@nordier.com, bde@zeta.org.au, freebsd-current@FreeBSD.ORG
Subject:   Re: How to Build & Run ELF Kernel
Message-ID:  <199901072216.AAA08638@ceia.nordier.com>
In-Reply-To: <199901070017.QAA02235@silvia.hip.berkeley.edu> from Satoshi Asami at "Jan 6, 99 04:17:36 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Satoshi Asami wrote:

> Hmm.  All my disks have a FreeBSD partition starting at sector 63
> (start of second track of first cylinder).  Here's the one that
> doesn't work:
> 
> ===
> ## fdisk sd0
> ******* Working on device /dev/rsd0 *******
> parameters extracted from in-core disklabel are:
> cylinders=263 heads=255 sectors/track=63 (16065 blks/cyl)
> 
> parameters to be used for BIOS calculations are:
> cylinders=263 heads=255 sectors/track=63 (16065 blks/cyl)
>  :
> The data for partition 2 is:
> sysid 165,(FreeBSD/NetBSD/386BSD)
>     start 63, size 4225032 (2063 Meg), flag 80 (active)
>         beg: cyl 0/ sector 1/ head 1;
>         end: cyl 262/ sector 63/ head 254
> ===
> 
> and the one that does work, on the same machine:
> 
> ===
> ## fdisk sd1
> ******* Working on device /dev/rsd1 *******
> parameters extracted from in-core disklabel are:
> cylinders=274 heads=255 sectors/track=63 (16065 blks/cyl)
> 
> parameters to be used for BIOS calculations are:
> cylinders=274 heads=255 sectors/track=63 (16065 blks/cyl)
>  :
> The data for partition 2 is:
> sysid 165,(FreeBSD/NetBSD/386BSD)
>     start 63, size 4401747 (2149 Meg), flag 80 (active)
>         beg: cyl 0/ sector 1/ head 1;
>         end: cyl 273/ sector 63/ head 254
> ===
> 
> As you can see, they are almost identical.  The only difference is the 
> size of the disk/partitions.
> 
> As for other items on your checklist (reproduced here):
> 
>  *     o  Can't get the disk geometry from the BIOS
> 
> It did boot before with the old bootblocks, so it is getting the
> geometry, right?
> 
>  *     o  The disk geometry would cause division by zero
>  *     o  The derived cylinder number exceeds 1023
> 
> Both of these shouldn't apply to this case.
> 
>  *     o  BIOS fails to read a sector on five consecutive attempts
> 
> ===
> ## dd if=/dev/rsd0 of=/dev/null bs=512 count=2048
> 2048+0 records in
> 2048+0 records out
> 1048576 bytes transferred in 1.827534 secs (573765 bytes/sec)
> ## tail /var/log/messages
>  :
> Jan  6 15:00:25 baloon sudo:    asami : TTY=ttyp0 ; PWD=/s/c/home/piedmont/asami ; USER=root ; COMMAND=/usr/local/bin/bash 
> ===
> 
> At least it seems quite readable from the FreeBSD kernel.  And again,
> it was booting fine before I rewrote the bootblocks.

Thanks.  Though certainly nothing there to suggest the cause of the
problem.

If you still have the new bootblocks installed, I'd be interested to
see if these hexdumps reveal anything:

    dd if=/dev/rsd0 count=1 | hexdump -C
    dd if=/dev/rsd0s2a count=17 | hexdump -C

    dd if=/dev/rsd1 count=1 | hexdump -C
    dd if=/dev/rsd1s2a count=17 | hexdump -C

Maybe there's some slight difference somewhere there that boot1
can't handle.

--
Robert Nordier

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?199901072216.AAA08638>