From owner-freebsd-current Thu Nov 28 23:38:38 2002 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 3AB9137B401 for ; Thu, 28 Nov 2002 23:38:37 -0800 (PST) Received: from mail.dada.it (mail2.dada.it [195.110.100.2]) by mx1.FreeBSD.org (Postfix) with SMTP id 8E4C243ECF for ; Thu, 28 Nov 2002 23:38:35 -0800 (PST) (envelope-from riccardo@torrini.org) Received: (qmail 23607 invoked from network); 29 Nov 2002 07:38:20 -0000 Received: from unknown (HELO torrini.org) (195.110.114.101) by mail.dada.it with SMTP; 29 Nov 2002 07:38:20 -0000 Received: from trudy.torrini.home (localhost.torrini.home [127.0.0.1]) by torrini.org (8.12.6/8.12.6) with ESMTP id gAT7cHAD003439; Fri, 29 Nov 2002 08:38:17 +0100 (CET) (envelope-from riccardo@trudy.torrini.home) Received: (from riccardo@localhost) by trudy.torrini.home (8.12.6/8.12.6/Submit) id gAT7cBBF003438; Fri, 29 Nov 2002 08:38:11 +0100 (CET) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20021129122955.K15170-100000@gamplex.bde.org> Date: Fri, 29 Nov 2002 08:38:11 +0100 (CET) From: Riccardo Torrini To: Bruce Evans Subject: Re: Trivial patch: fdisk doesn't recognize my partitions Cc: freebsd-current@FreeBSD.ORG, Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 29-Nov-2002 (01:34:27/GMT) Bruce Evans wrote: RT>>> I have 4 primary partitions and I use a boot manager (magic.com) [...] RT>>> As far as I know it use an EXOR 0x10 to hide/unhide but fdisk RT>>> doesn't recognize 0x0B/0x0C fat32 when hidden (0x1B/0x1C) PHK>> I think this is very marginal use really... PHK>> But as I said, this is rather marginal and I really don't feel PHK>> it should go in unless this xor-0x10 convention is more widespread. BE> "Hiding" partitions is a bug IMO, so it should have negative BE> support. This convention would break many OS's conventions. BE> E.g., NextSTEP | 0x10 gives BSDI. Yes, indeed. Anyway 0x10-0x1F range seems to be for hidden partition, this is why I go the wrong way. Sorry for wasting time. :( If you check this you can find symmetric partition type (as written in .../fdisk.c,v 1.66 2002/10/27 10:52:54 phk): real ,{0x01, "Primary DOS with 12 bit FAT"} hidden ,{0x11, "OS/2 BM: hidden DOS with 12-bit FAT"} real ,{0x04, "Primary DOS with 16 bit FAT (< 32MB)"} hidden ,{0x14, "OS/2 BM: hidden DOS with 16-bit FAT (< 32MB)"} real ,{0x06, "Primary 'big' DOS (>= 32MB)"} hidden ,{0x16, "OS/2 BM: hidden DOS with 16-bit FAT (>= 32MB)"} real ,{0x07, "OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX"} hidden ,{0x17, "OS/2 BM: hidden IFS (e.g. HPFS)"} Only for this I added 0x1B/0x1C as hidden version of 0x0B/0x0C. real ,{0x0B, "DOS or Windows 95 with 32 bit FAT"} myidea ,{0x1B, "Hidden DOS or Windows 95 with 32 bit FAT"} real ,{0x0C, "DOS or Windows 95 with 32 bit FAT (LBA)"} myidea ,{0x1C, "Hidden DOS or Windows 95 with 32 bit FAT (LBA)"} Riccardo. PS: maybe XOR-0x10 only if <= 0x1F ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message