From owner-freebsd-hackers Fri Jul 7 08:06:10 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id IAA15479 for hackers-outgoing; Fri, 7 Jul 1995 08:06:10 -0700 Received: from simon.chi.il.us (simon.chi.il.us [199.245.227.17]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id IAA15472 for ; Fri, 7 Jul 1995 08:06:04 -0700 Received: by simon.chi.il.us (Smail3.1.29.1 #3) id m0sU7JF-000NAyC; Fri, 7 Jul 95 01:54 CDT Message-Id: Date: Fri, 7 Jul 95 01:54 CDT From: steve@simon.chi.il.us (Steven E. Piette) To: terry@cs.weber.edu, davidg@root.com, wilko@yedi.iaf.nl, jan@bagend.atl.ga.us Subject: Re: Stabikity/Usability of 2.0.5R Cc: freebsd-hackers@freebsd.org Sender: hackers-owner@freebsd.org Precedence: bulk > From: Wilko Bulte > Subject: Re: Stabikity/Usability of 2.0.5R > To: terry@cs.weber.edu (Terry Lambert) > Date: Wed, 5 Jul 1995 19:27:22 +1596657 (MET DST) > Cc: davidg@root.com, freebsd-hackers@freebsd.org > > > because 2.0.5R simply will not install (and neither will subsequent > > snapshots). > > > > The hardware in question is running WD 1007 ESDI controllers. The > > "perfect media" jumper is off. > > > > The Install wants to use a translated geometry (the real geometry > > is 1224/15/35) of something like xxx/15/51. > > What a coincidence. I already started to feel stupid. I have a > 386/25 here with a WD1007 and a 1224/15/35 drive (a ~300Mb > micropolis). Same problems.. I'm kinda glad it also bit you ;-) > > > The amusing thing is that when it scans for bad blocks (the drive > > has to have bad block replacement enables in BSD), it gets an error > > on every 35th scan. I would suspect something wierd with the disk, > > but 1.1.5.1 sails right on. So it's clearly in the disklabel stuff. > > Yep, same here. I once had 1.1.5. on this system and that worked > OK. Are you able to select a non-translated drive using the WD1007 > BIOS? Mine doesn't. Disabling the BIOS of the WD and selecting the > untranslated geometry in the system BIOS also gives me the > n * 35 badblocks. > > > Interestingly, the "every 35th try" error on the scan seems to > > indicate (to me, at least) that the drive is not being accessed > > linearly; apparently the adjacency of sectors is being miscalculated > > and it's skipping all over the disk. There was a complaint about > > large amounts of drive noise about a month ago that was never very > > well explained -- possibly it's this? > > I have a faint recollection that I had to tell 1.1.5. to use 34 > sectors (when the drive actually has 35) before it wanted to install. > Telling 2.05R to use 34 does not work. > > > Anyone else have a machine with a WD1007 that they installed instead > > of upgraded from an existing (non-2.0.5R: working) installation? > > As you know by now it fails for me. I might retry 1.1.5 on it just > to see. > > > Terry Lambert > > terry@cs.weber.edu > > Wilko As I told Terry via email I have a working 2.0.5-ALPHA system here using the WD1007 and a Micropolis 1558 ESDI disk. Here's what I did to make it work: The WD1007A-WA2 is jumpered like this W1 2-3 BIOS at C8000-C9FFF W2 2-3 W3 OUT Disable BIOS and BIOS Shadow RAM W4 OUT Enable FDC W5 OUT Single Speed FD W6 2-3 FDC at 3FX W7 1-2 Enable FDC W8 IN WD1005 Mode (Reads Drive Unformatted bytes/sector) W9 OUT Disconnect Chassis Ground W10 OUT Unlatch Diag Register W11 IN Enable Disk Change input W12 OUT Select Primary Address W13 IN Enable FDC W14 IN Disable Sector Translation W15 OUT 4 Byte ECC The 1558 is jumpered RN1 IN Terminator DA1 OUT DA2 IN Device 2 ID DA3 OUT W5 OUT Spin up at power on W1 OUT Hard Sectored W2 IN 36 Sectors/track 578 bytes/sector unformatted W3 OUT W4 OUT This configures the drive to be 1224 cyl 15 head 36 sectors 512 bytes/sector. The System is a Micronix 386DX20 with Phoenix 386 BIOS 1.10 10 I'm using CMOS type 48 as 1224/15/36 Since I had to disable the 1007 BIOS to use the CMOS drive type, I low level formated the disk using the WDFMT utility (from www.wdc.com) and turned off sector sparing. The 1007 BIOS wouldn't let me use 36 sec/track or 1224 cyl. I ran FDISK and used the entire disk as the primary DOS disk and then deleted the DOS partition during install. This was just to see the C/H/S stuff changed. I had to boot -c to turn off the conflicting devices matcd, ed, ie, and wt and build a custom kernel once I was done installing. During install I turned off the newfs -u stuff and used bad144 on each partition. It tried to use the entire disk as a FreeBSD partition but was burned by the >1024 cyl boot problem, so I made two FreeBSD partitions. The first is for root and swap and the second for /usr. Here's the boot messages. Jul 7 00:27:21 guest /kernel: FreeBSD 2.0.5-ALPHA #0: Fri Jun 9 22:51:32 CDT 1995 Jul 7 00:27:21 guest /kernel: root@guest:/usr/src/sys/compile/ALPHA Jul 7 00:27:21 guest /kernel: CPU: i386DX (386-class CPU) Jul 7 00:27:22 guest /kernel: real memory = 5898240 (1440 pages) Jul 7 00:27:22 guest /kernel: avail memory = 4763648 (1163 pages) Jul 7 00:27:22 guest /kernel: Probing for devices on the ISA bus: Jul 7 00:27:22 guest /kernel: sc0 at 0x60-0x6f irq 1 on motherboard Jul 7 00:27:23 guest /kernel: sc0: MDA/hercules <16 virtual consoles, flags=0x0> Jul 7 00:27:23 guest /kernel: sio0 at 0x3f8-0x3ff irq 4 on isa Jul 7 00:27:23 guest /kernel: sio0: type 16450 Jul 7 00:27:23 guest /kernel: sio1 at 0x2f8-0x2ff irq 3 on isa Jul 7 00:27:23 guest /kernel: sio1: type 16450 Jul 7 00:27:23 guest /kernel: sio2 not found at 0x3e8 Jul 7 00:27:23 guest /kernel: sio3 not found at 0x2e8 Jul 7 00:27:24 guest /kernel: lpt0 at 0x3bc-0x3c3 irq 7 on isa Jul 7 00:27:24 guest /kernel: lpt0: Interrupt-driven port Jul 7 00:27:24 guest /kernel: lp0: TCP/IP capable interface Jul 7 00:27:24 guest /kernel: lpt1 at 0x378-0x37f on isa Jul 7 00:27:24 guest /kernel: lpt2 not found at 0xffffffff Jul 7 00:27:24 guest /kernel: fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa Jul 7 00:27:24 guest /kernel: fdc0: NEC 765 Jul 7 00:27:24 guest /kernel: fd0: 1.2MB 5.25in Jul 7 00:27:25 guest /kernel: wdc0 at 0x1f0-0x1f7 irq 14 on isa Jul 7 00:27:25 guest /kernel: wdc0: unit 0 (wd0): Jul 7 00:27:25 guest /kernel: wd0: 322MB (660960 sectors), 1224 cyls, 15 heads, 36 S/T, 512 B/S Jul 7 00:27:25 guest /kernel: aha0 not found at 0x330 Jul 7 00:27:25 guest /kernel: wt0 at 0x220-0x223 irq 5 drq 1 on isa Jul 7 00:27:25 guest /kernel: wt0: type Jul 7 00:27:25 guest /kernel: 1 3C5x9 board(s) on ISA found at 0x300 Jul 7 00:27:25 guest /kernel: ep0 at 0x300-0x30f irq 10 on isa Jul 7 00:27:25 guest /kernel: ep0: aui/bnc/utp[*UTP*] address 00:20:af:38:a9:02 irq 10 Jul 7 00:27:25 guest /kernel: npx0 at 0xf0-0xff irq 13 on motherboard Jul 7 00:27:26 guest /kernel: WARNING: / was not properly dismounted. Jul 7 00:27:22 guest mountd[72]: Can't open /var/db/mountdtab Jul 7 00:27:31 guest lpd[99]: restarted Jul 7 00:28:38 guest login: ROOT LOGIN (root) ON ttyv0 Jul 7 00:28:38 guest login: login on ttyv0 as root guest# fdisk ******* Working on device /dev/rwd0d ******* parameters extracted from in-core disklabel are: cylinders=169 heads=15 sectors/track=36 (540 blks/cyl) parameters to be used for BIOS calculations are: cylinders=169 heads=15 sectors/track=36 (540 blks/cyl) fdisk: Invalid fdisk partition table found Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 0 is: The data for partition 1 is: The data for partition 2 is: The data for partition 3 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 1, size 91259 (44 Meg), flag 80 beg: cyl 0/ sector 2/ head 0; end: cyl 169/ sector 1/ head 0 guest# fdisk /dev/wd0s2 ******* Working on device /dev/wd0s2 ******* parameters extracted from in-core disklabel are: cylinders=1054 heads=15 sectors/track=36 (540 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=1054 heads=15 sectors/track=36 (540 blks/cyl) Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 0 is: The data for partition 1 is: The data for partition 2 is: The data for partition 3 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 0, size 50000 (24 Meg), flag 80 beg: cyl 0/ sector 1/ head 0; end: cyl 1023/ sector 63/ head 255 guest# disklabel wd0 # /dev/rwd0c: type: ESDI disk: wd0s1 label: flags: badsect bytes/sector: 512 sectors/track: 36 tracks/cylinder: 15 sectors/cylinder: 540 cylinders: 169 sectors/unit: 91764 rpm: 0 interleave: 0 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: 54000 0 4.2BSD 0 0 0 # (Cyl. 0 - 99) b: 37601 54000 swap # (Cyl. 100 - 169*) c: 91764 0 unused 0 0 # (Cyl. 0 - 169*) Warning, revolutions/minute 0 super block size 0 guest# bad144 -v wd0 cyl: 169, tracks: 15, secs: 36, sec/cyl: 540, start: 0, end: 91602 bad block information at sector 91728 in /dev/rwd0c: cartridge serial number: 1234(10) guest# bad144 -v /dev/wd0s2 cyl: 1054, tracks: 15, secs: 36, sec/cyl: 540, start: 0, end: 568998 bad block information at sector 569124 in /dev/wd0s2: cartridge serial number: 1234(10) guest# dumpfs /dev/rwd0a magic 11954 time Fri Jul 7 01:31:09 1995 cylgrp dynamic inodes 4.4BSD nbfree 1474 ndir 66 nifree 6834 nffree 99 ncg 1 ncyl 14 size 27000 blocks 26007 bsize 8192 shift 13 mask 0xffffe000 fsize 1024 shift 10 mask 0xfffffc00 frag 8 shift 3 fsbtodb 1 cpg 16 bpg 4096 fpg 32768 ipg 7680 minfree 8% optim time maxcontig 1 maxbpg 2048 rotdelay 0ms headswitch 0us trackseek 0us rps 60 ntrak 1 nsect 4096 npsect 4096 spc 4096 symlinklen 60 trackskew 0 interleave 1 contigsumsize 0 nindir 2048 inopb 64 nspf 2 sblkno 16 cblkno 24 iblkno 32 dblkno 992 sbsize 2048 cgsize 6144 cgoffset 2048 cgmask 0xffffffff csaddr 992 cssize 1024 shift 9 mask 0xfffffe00 cgrotor 0 fmod 0 ronly 0 clean 0 guest# dumpfs /dev/rwd0s2e magic 11954 time Fri Jul 7 00:27:36 1995 cylgrp dynamic inodes 4.4BSD nbfree 6050 ndir 1489 nifree 49890 nffree 13103 ncg 9 ncyl 139 size 284498 blocks 275697 bsize 8192 shift 13 mask 0xffffe000 fsize 1024 shift 10 mask 0xfffffc00 frag 8 shift 3 fsbtodb 1 cpg 16 bpg 4096 fpg 32768 ipg 7680 minfree 8% optim time maxcontig 1 maxbpg 2048 rotdelay 0ms headswitch 0us trackseek 0us rps 60 ntrak 1 nsect 4096 npsect 4096 spc 4096 symlinklen 60 trackskew 0 interleave 1 contigsumsize 0 nindir 2048 inopb 64 nspf 2 sblkno 16 cblkno 24 iblkno 32 dblkno 992 sbsize 2048 cgsize 6144 cgoffset 2048 cgmask 0xffffffff csaddr 992 cssize 1024 shift 9 mask 0xfffffe00 cgrotor 2 fmod 0 ronly 0 clean 0 Anyone need more information or have suggestions for when I install 2.0.5-RELEASE on this box. Steve Piette Applied Computer Technology steve@simon.chi.il.US. 7N852 Phar Lap Drive (708) 513-6920 St. Charles, IL 60175-6868 ------------------------------------------------------------------------------- By sending unsolicited commercially-oriented e-mail to this address, the sender agrees to pay a $100 flat fee to the recipient for proofreading services.