From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 16 07:11:42 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AF6716A4B3 for ; Thu, 16 Oct 2003 07:11:42 -0700 (PDT) Received: from fed1mtao08.cox.net (fed1mtao08.cox.net [68.6.19.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCBF243FE1 for ; Thu, 16 Oct 2003 07:11:38 -0700 (PDT) (envelope-from jjreynold@ip68-2-101-74.ph.ph.cox.net) Received: from ip68-2-101-74.ph.ph.cox.net ([68.2.101.74]) by fed1mtao08.cox.netESMTP <20031016141138.TNMI8740.fed1mtao08.cox.net@ip68-2-101-74.ph.ph.cox.net> for ; Thu, 16 Oct 2003 10:11:38 -0400 Received: from whale.home-net (whale.home-net [192.168.1.2]) h9GEBb0H046585 for ; Thu, 16 Oct 2003 07:11:37 -0700 (MST) (envelope-from jjreynold@dolphin.home-net) Received: from whale.home-net (localhost [127.0.0.1]) by whale.home-net (8.12.9/8.12.9) with ESMTP id h9GEBbC4002779 for ; Thu, 16 Oct 2003 07:11:37 -0700 (MST) (envelope-from jjreynold@whale.home-net) Received: (from jjreynold@localhost) by whale.home-net (8.12.9/8.12.9/Submit) id h9GEBa0p002776; Thu, 16 Oct 2003 07:11:36 -0700 (MST) (envelope-from jjreynold) From: John Reynolds MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16270.42776.767653.86364@whale.home-net> Date: Thu, 16 Oct 2003 07:11:36 -0700 To: hackers@freebsd.org X-Mailer: VM 7.17 under Emacs 21.3.1 Subject: boot0 screen output with dual-boot of FreeBSD / WinXP X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2003 14:11:42 -0000 Hello all, a quick question about boot0. I recently put together a new machine and had always planned to dual-boot FreeBSD -current and WinXP on it. At first I used FreeBSD to partition the 120Gb drive into roughly "half". I installed FreeBSD on the second slice and just last night installed XP onto the first "partition" (windows term). Of course XP clobbered the boot manager, but having rescued it before from win98 I booted from the CD and chose the 'W' option within the partition stage to get my boot mgr back. After rebooting from there I see: F1 ?? F2 FreeBSD at the prompt once the machine boots. My fuzzy memory seems to recall from years back that seeing ??'s was "bad" as it meant the boot mgr couldn't find out something it wanted. I chose both F1 and F2 in multiple boots and each OS boots fine and acts normal. I dug into the boot0 code a little bit trying to see why ?? was printed and not something else. First off I used /stand/sysinstall again to see what the partition type was. This is what it showed me: Disk name: ad2 FDISK Partition Editor DISK Geometry: 14593 cyls/255 heads/63 sectors = 234436545 sectors (114470MB) Offset Size(ST) End Name PType Desc Subtype Flags 0 63 62 - 12 unused 0 63 104856192 104856254 ad2s1 4 NTFS/HPFS/QNX 7 104856255 129580290 234436544 ad2s2 8 freebsd 165 234436545 5103 234441647 - 12 unused 0 Then I dug into the code a bit and saw this: # These values indicate bootable types we know the names of # .byte 0x1, 0x4, 0x6, 0xb, 0xc, 0xe, 0x83 .byte 0x9f, 0xa5, 0xa6, 0xa9 # These are offsets that match the known names above and point to the strings # that will be printed. # .byte os_misc-. # Unknown .byte os_dos-. # DOS .byte os_dos-. # DOS .byte os_dos-. # DOS .byte os_dos-. # Windows .byte os_dos-. # Windows .byte os_dos-. # Windows .byte os_linux-. # Linux .byte os_bsd-. # BSD/OS .byte os_freebsd-. # FreeBSD .byte os_bsd-. # OpenBSD .byte os_bsd-. # NetBSD # # And here are the strings themselves. 0x80 or'd into a byte indicates # the end of the string. (not so great for Russians but...) # os_misc: .ascii "?"; .byte '?'|0x80 os_dos: .ascii "DO"; .byte 'S'|0x80 os_linux: .ascii "Linu"; .byte 'x'|0x80 os_freebsd: .ascii "Free" os_bsd: .ascii "BS"; .byte 'D'|0x80 So, it appears that partition type "7" just isn't a "known" type. Other partition types seem to just "map" to print "DOS" (or whatever else). I couldn't see where the "os_misc" string would be printed in the case of an error of any sort, so can I assume that all is well with this partition and dual boot combo and just ignore the '??'? Is it possible to add in another table entry for type 0x7? Is it advisable? Thanks, -Jr -- John & Jennifer Reynolds johnjen at reynoldsnet.org www.reynoldsnet.org Structural / Physical Design - ICG/PNG SCD jreynold at sedona.ch.intel.com Running FreeBSD since 2.1.5-RELEASE. FreeBSD: The Power to Serve! "Unix is user friendly, it's just particular about the friends it chooses."