Date: Tue, 13 Jan 2004 17:14:04 -0500 (EST) From: Stuart Barkley <stuartb@4gh.net> To: Doug White <dwhite@gumbysoft.com> Cc: freebsd-stable@freebsd.org Subject: Re: Install bug - 4.9 stable - post install circular reboot Message-ID: <20040113155820.H386@freeman.4gh.net> In-Reply-To: <20040113093832.P63000@carver.gumbysoft.com> References: <011220042359.23426.2438@comcast.net> <20040113093832.P63000@carver.gumbysoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 13 Jan 2004 at 09:39 -0800, Doug White wrote: > > >(From memory, YMMV) Reboot for the installation CD into > > >sysinstall. Select "Configure" then "Fdisk". In fdisk select > > >"W" this will cause the MBR to be rewritten correctly (I always > > >select the FreeBSD boot manager, I don't know if that is > > >necessary). > > I wonder if this is resetting some bogus boot0 option. THere is a > boot0cfg.exe on the CD I think... wonder if that could be used to > rectify things. I'd have to reproduce it, which I can't :) I had some time today to look at this further and have a few clues to the problem. I've repeated these tests a few times to try to isolate the specifics of the problem. I'm using a 40GB scratch disk for these tests. Before the tests there was a working FreeBSD installation on the disk. I'm using Disk 1 from the FreeBSD Mall FreeBSD 4.9-RELEASE. Boot from CD-ROM Select Express Install In fdisk select "A" to wipe all previous partitions and restart. Select FreeBSD boot manager In disklabel select "A" to get a default disk layout. Select "minimal" installation set. Skip all post installation configuration Exit install Upon restart I get the bootmgr prompt (F1 - FreeBSD) Booting further causes the machine to restart the BIOS bootstrap function into the "circular reboot" Further testing shows the the boot0 blocks are identical between working and failing modes. I found the I could fix the problem before exiting the install process by using F4 to go to the emergency shell reinstalling the bootstrap blocks using: % disklabel -B ad0 Before and after the fix I dumped the first 50000 sectors of ad0 and have compared them. It appears that there is one block of boot2 (0x1810-0x19ff) which was written as zeros instead of the correct code. A diff of the boot2 blocks is included below. A full dump of the differences between the first 50000 blocks of the bad and good ad0 is available at: http://www/4gh/net/volatile/ad0.full.diff Note: There may be some disk geometry issues in play here. When using a drive with a previously installed FreeBSD installation there are no warnings about geometry problems. However, once I wipe out the disk using sysinstall to delete the only partition and selecting the standard boot manager. A reinstallation give a message similar to "Warning: geometry 77545/16/63 for ad0 is incorrect. Using a more likely geometry." Stuart -- http://www.4gh.net/tudor/resume.html *** boot2.4.9R.hd.v Tue Jan 13 16:12:30 2004 --- ad0.bad.boot2.hd.v Tue Jan 13 16:13:03 2004 *************** *** 1,20 **** ! 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00000020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00000030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00000040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00000090 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000000d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000000f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00000100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| --- 1,20 ---- ! 00000000 57 45 56 82 05 00 00 00 61 64 30 73 31 00 00 00 |WEV.....ad0s1...| 00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00000020 00 00 00 00 00 00 00 00 00 02 00 00 3f 00 00 00 |............?...| ! 00000030 ff 00 00 00 00 13 00 00 c1 3e 00 00 82 91 a8 04 |ÿ.......Á>....¨.| ! 00000040 00 00 00 00 00 00 00 00 10 0e 01 00 00 00 00 00 |................| 00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000060 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000070 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00000080 00 00 00 00 57 45 56 82 88 3f 08 00 00 20 00 00 |....WEV..?... ..| ! 00000090 00 20 00 00 00 00 04 00 3f 00 00 00 00 08 00 00 |. ......?.......| ! 000000a0 07 08 5e 00 a0 83 1f 00 3f 00 04 00 00 00 00 00 |..^. ...?.......| ! 000000b0 01 00 00 00 82 91 a8 04 3f 00 00 00 00 00 00 00 |......¨.?.......| 000000c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000000d0 00 00 00 00 00 00 08 00 df 83 23 00 00 08 00 00 |........ß.#.....| ! 000000e0 07 08 5e 00 00 00 08 00 df 83 2b 00 00 08 00 00 |..^.....ß.+.....| ! 000000f0 07 08 5e 00 e2 0d 75 04 df 83 33 00 00 08 00 00 |..^.â.u.ß.3.....| ! 00000100 07 08 59 00 00 00 00 00 00 00 00 00 00 00 00 00 |..Y.............| 00000110 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000130 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| *************** *** 383,419 **** 000017e0 54 2a 00 00 ff 75 10 a1 54 2a 00 00 01 45 0c 8b |T*..ÿu.¡T*...E..| 000017f0 45 0c 50 ff 75 08 e8 81 01 00 00 8d 65 f4 5b 5e |E.Pÿu.è.....eô[^| 00001800 5f c9 c2 0c 00 55 89 e5 83 ec 10 57 56 53 8b 7d |_ÉÂ..U.å.ì.WVS.}| ! 00001810 08 8d 75 0c e9 a6 00 00 00 83 f8 25 0f 85 97 00 |..u.é¦....ø%....| ! 00001820 00 00 0f be 07 47 83 f8 73 74 25 7f 0a 83 f8 63 |...¾.G.øst%...øc| ! 00001830 74 11 e9 82 00 00 00 83 f8 75 74 30 83 f8 78 74 |t.é.....øut0.øxt| ! 00001840 2b eb 76 83 c6 04 ff 76 fc e8 87 00 00 00 eb 6f |+ëv.Æ.ÿvüè....ëo| ! 00001850 83 c6 04 8b 5e fc 80 3b 00 74 64 0f be 03 50 e8 |.Æ..^ü.;.td.¾.Pè| ! 00001860 71 00 00 00 43 80 3b 00 75 f1 eb 53 c7 45 f0 10 |q...C.;.uñëSÇEð.| ! 00001870 00 00 00 83 f8 75 75 07 c7 45 f0 0a 00 00 00 83 |....øuu.ÇEð.....| ! 00001880 c6 04 8b 46 fc 8d 5d f4 31 d2 f7 75 f0 89 c1 8a |Æ..Fü.]ô1Ò÷uð.Á.| ! 00001890 82 f4 23 00 00 88 03 43 89 c8 85 c0 75 ea 4b 8d |.ô#....C.È.ÀuêK.| ! 000018a0 45 f4 39 c3 72 19 0f be 03 50 e8 26 00 00 00 4b |Eô9Ãr..¾.Pè&...K| ! 000018b0 8d 45 f4 39 c3 73 ef eb 06 50 e8 16 00 00 00 0f |.Eô9Ãsïë.Pè.....| ! 000018c0 be 07 47 85 c0 0f 85 4e ff ff ff 31 c0 8d 65 e4 |¾.G.À..Nÿÿÿ1À.eä| ! 000018d0 5b 5e 5f c9 c3 55 89 e5 53 8b 5d 08 83 fb 0a 75 |[^_ÉÃU.åS.]..û.u| ! 000018e0 07 6a 0d e8 a1 01 00 00 53 e8 9b 01 00 00 8b 5d |.j.è¡...Sè.....]| ! 000018f0 fc c9 c2 04 00 55 89 e5 56 53 8b 75 08 8b 55 10 |üÉÂ..U.åVS.u..U.| ! 00001900 89 f3 8b 4d 0c 85 d2 74 09 8a 01 88 03 41 43 4a |.ó.M..Òt.....ACJ| ! 00001910 75 f7 89 f0 5b 5e c9 c2 0c 00 55 89 e5 83 3d 3c |u÷.ð[^ÉÂ..U.å.=<| ! 00001920 2a 00 00 00 75 1f 8b 15 18 31 00 00 89 d0 03 05 |*...u....1...Ð..| ! 00001930 24 31 00 00 05 ff ff 00 00 25 00 00 ff ff 29 d0 |$1...ÿÿ..%..ÿÿ)Ð| ! 00001940 a3 3c 2a 00 00 a1 3c 2a 00 00 8b 55 08 01 c2 89 |£<*..¡<*...U..Â.| ! 00001950 15 3c 2a 00 00 c9 c2 04 00 55 89 e5 8b 45 08 a3 |.<*..ÉÂ..U.å.E.£| ! 00001960 e4 30 00 00 c7 05 f8 30 00 00 00 88 00 00 e8 f5 |ä0..Ç.ø0......èõ| ! 00001970 ef ff ff a1 f8 30 00 00 c9 c2 04 00 55 89 e5 57 |ïÿÿ¡ø0..ÉÂ..U.åW| ! 00001980 56 53 8b 5d 08 8b 7d 0c 8b 75 10 a1 08 24 00 00 |VS.]..}..u.¡.$..| ! 00001990 c1 c0 08 a3 08 24 00 00 50 68 a4 23 00 00 e8 62 |ÁÀ.£.$..Ph¤#..èb| ! 000019a0 fe ff ff c7 05 e0 30 00 00 00 00 07 00 c7 05 e4 |þÿÿÇ.à0......Ç.ä| ! 000019b0 30 00 00 25 07 00 00 89 d8 03 05 18 31 00 00 c1 |0..%....Ø...1..Á| ! 000019c0 e0 0c c1 e8 10 a3 e8 30 00 00 89 3d f8 30 00 00 |à.Áè.£è0...=ø0..| ! 000019d0 66 03 1d 18 31 00 00 89 d8 83 e0 0f a3 04 31 00 |f...1...Ø.à.£.1.| ! 000019e0 00 89 f8 c1 e8 10 a3 fc 30 00 00 c1 e6 08 0b 35 |..øÁè.£ü0..Áæ..5| ! 000019f0 40 2a 00 00 89 35 00 31 00 00 e8 69 ef ff ff c7 |@*...5.1..èiïÿÿÇ| 00001a00 05 e0 30 00 00 00 00 04 00 83 c4 08 f6 05 08 31 |.à0.......Ä.ö..1| 00001a10 00 00 01 75 04 31 c0 eb 18 57 0f b6 05 f9 30 00 |...u.1Àë.W.¶.ù0.| 00001a20 00 50 68 a8 23 00 00 e8 d9 fd ff ff b8 ff ff ff |.Ph¨#..èÙýÿÿ¸ÿÿÿ| --- 383,419 ---- 000017e0 54 2a 00 00 ff 75 10 a1 54 2a 00 00 01 45 0c 8b |T*..ÿu.¡T*...E..| 000017f0 45 0c 50 ff 75 08 e8 81 01 00 00 8d 65 f4 5b 5e |E.Pÿu.è.....eô[^| 00001800 5f c9 c2 0c 00 55 89 e5 83 ec 10 57 56 53 8b 7d |_ÉÂ..U.å.ì.WVS.}| ! 00001810 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001820 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001830 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001850 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001870 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001890 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000018a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000018b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000018c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000018d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000018e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000018f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001910 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001920 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001930 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001950 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001970 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 00001990 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000019a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000019b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000019c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000019d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000019e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ! 000019f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00001a00 05 e0 30 00 00 00 00 04 00 83 c4 08 f6 05 08 31 |.à0.......Ä.ö..1| 00001a10 00 00 01 75 04 31 c0 eb 18 57 0f b6 05 f9 30 00 |...u.1Àë.W.¶.ù0.| 00001a20 00 50 68 a8 23 00 00 e8 d9 fd ff ff b8 ff ff ff |.Ph¨#..èÙýÿÿ¸ÿÿÿ|
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040113155820.H386>