Date: Sat, 9 Oct 1999 23:40:11 +1300 From: "wheely" <wheely@ihug.co.nz> To: "FreeBSD Questions Mailing List" <freebsd-questions@FreeBSD.org> Subject: Bootstrap/Label problems Message-ID: <NDBBIBILOLHELNDNOOPOIEOBCDAA.wheely@ihug.co.nz>
next in thread | raw e-mail | index | archive | help
I have freshly installed 3.3-RELEASE on wd0 from FTP (and moved 2.2.8-STABLE
to wd1). I choose to install Boot Manager while in sysinstall so until I am
happy with 3.3, I can boot 2.2.8.
When I try to boot the system, I now get "Disk Error 0x1" and then it trys
to boot the kernel, resulting in "System Halted" after a few debugging
symbols have printed on the console.
I partitioned wd0 in compatability mode. To confirm this I booted 2.2.8
(which works fine fortunately) and got the following output:
disklabel -r wd0
# /dev/rwd0c:
type: ESDI
disk: wd0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 128
sectors/cylinder: 8064
cylinders: 780
sectors/unit: 6297921
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 102400 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 12*)
b: 262144 102400 swap # (Cyl. 12*- 45*)
c: 6297921 0 unused 0 0 # (Cyl. 0 - 780*)
e: 163840 364544 4.2BSD 1024 8192 16 # (Cyl. 45*- 65*)
f: 1228800 528384 4.2BSD 1024 8192 16 # (Cyl. 65*- 217*)
g: 4540737 1757184 4.2BSD 1024 8192 16 # (Cyl. 217*- 780*)
The above looks ok to me.
Next i checked to see if I had an active partition
fdisk wd0
******* Working on device /dev/rwd0 *******
parameters extracted from in-core disklabel are:
cylinders=781 heads=128 sectors/track=63 (8064 blks/cyl)
parameters to be used for BIOS calculations are:
cylinders=781 heads=128 sectors/track=63 (8064 blks/cyl)
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165,(FreeBSD/NetBSD/386BSD)
start 63, size 6297921 (3075 Meg), flag 0
beg: cyl 0/ sector 1/ head 1;
end: cyl 780/ sector 63/ head 127
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
Ok, so I don't have an active partition, so I set partition 1 to be active
using fdisk and rebooted, still no go. (When I went back into 2.2.8 I found
the partition was no longer active!)
Ok, so now I tryed doing the same using the 3.3 floppies, that didn't work
either - again it had reset itself
Incidently the above fdisk output was radically different using the
floppies. disklabel only showed one "C" partition.
As a last resort I tryed to "disklabel -r wd0" in the fixit shell. I got
"bad pack magic number". I tryed the same from 2.2.8, no problem (except
that the 2.2.8 bootstrap is different to 3.3 ofcourse so it falls over in
bootup). "disklabel -r -w wd0 auto" doesn't work either.
I can mount the wd0 drives ok in 2.2.8, however I get "Invalid Format" if I
try and boot the 3.3 kernel from the 2.2.8 disk.
Anyone got some ideas on how to fix this? I am running out of things to try.
Thanks in advance
wheely
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBIBILOLHELNDNOOPOIEOBCDAA.wheely>
