Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2002 08:38:11 +0100 (CET)
From:      Riccardo Torrini <riccardo@torrini.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        freebsd-current@FreeBSD.ORG, Poul-Henning Kamp <phk@critter.freebsd.dk>
Subject:   Re: Trivial patch: fdisk doesn't recognize my partitions
Message-ID:  <XFMail.20021129083811.riccardo@torrini.org>
In-Reply-To: <20021129122955.K15170-100000@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20021129083811.riccardo>