From owner-freebsd-current@FreeBSD.ORG Tue Nov 11 09:31:17 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 759D016A4CE for ; Tue, 11 Nov 2003 09:31:17 -0800 (PST) Received: from kazi.fit.vutbr.cz (kazi.fit.vutbr.cz [147.229.8.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id E41F243FBD for ; Tue, 11 Nov 2003 09:31:15 -0800 (PST) (envelope-from cejkar@fit.vutbr.cz) Received: from kazi.fit.vutbr.cz (localhost [127.0.0.1]) by kazi.fit.vutbr.cz (8.12.10/8.12.9) with ESMTP id hABHVCUC042378 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 11 Nov 2003 18:31:12 +0100 (CET) Received: (from cejkar@localhost) by kazi.fit.vutbr.cz (8.12.10/8.12.5/Submit) id hABHVCJd042377; Tue, 11 Nov 2003 18:31:12 +0100 (CET) X-Authentication-Warning: kazi.fit.vutbr.cz: cejkar set sender to cejkar@fit.vutbr.cz using -f Date: Tue, 11 Nov 2003 18:31:12 +0100 From: Rudolf Cejka To: Dag-ErlingSm?rgrav Message-ID: <20031111173112.GA36157@fit.vutbr.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: current@freebsd.org Subject: Re: boot0 and fdisk / disklabel misbehaviour X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2003 17:31:17 -0000 Dag-ErlingSm?rgrav wrote (2003/11/11): > - boot0 off-by-one error: > The OS table in boot0.s is as follows: > .byte os_misc-. # Unknown > ... > .byte os_bsd-. # NetBSD > Now, boot0 identifies my FreeBSD partitions as "BSD" instead of > "FreeBSD". It also identifies my Debian partition (type 0x83) as > "BSD" instead of "Linux" and my Debian swap partition (type 0x82) > as "DOS" instead of "Unknown", and NetBSD gives it the hives. It > seems to me that it's consistently off by one. And almost at the same time, I'm looking at the last change to boot0.s 1.26, if there is forgotten TBL1SZ update, or not :o))) PS: After UNIX removal, it is very hard to find clean place for 0x7 - NTFS with name better than DOS... --- boot0.s.orig Tue Nov 11 18:25:12 2003 +++ boot0.s Tue Nov 11 18:25:21 2003 @@ -25,7 +25,7 @@ .set PRT_OFF,0x1be # Partition table .set TBL0SZ,0x3 # Table 0 size - .set TBL1SZ,0xc # Table 1 size + .set TBL1SZ,0xb # Table 1 size .set MAGIC,0xaa55 # Magic: bootable .set B0MAGIC,0xbb66 # Identification -- Rudolf Cejka http://www.fit.vutbr.cz/~cejkar Brno University of Technology, Faculty of Information Technology Bozetechova 2, 612 66 Brno, Czech Republic