From owner-freebsd-fs Tue Dec 4 3:24:49 2001 Delivered-To: freebsd-fs@freebsd.org Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) by hub.freebsd.org (Postfix) with ESMTP id 5400737B417 for ; Tue, 4 Dec 2001 03:24:44 -0800 (PST) Received: from steiner.cc.vt.edu (IDENT:mirapoint@steiner-lb.cc.vt.edu [10.1.1.14]) by lennier.cc.vt.edu (8.11.4/8.11.4) with ESMTP id fB4BMYj115786; Tue, 4 Dec 2001 06:22:34 -0500 (EST) Received: from zathras (zathras.cc.vt.edu [198.82.162.117]) by steiner.cc.vt.edu (Mirapoint) with ESMTP id AGJ93332; Tue, 4 Dec 2001 06:22:33 -0500 (EST) X-WebMail-UserID: gemorga2 Date: Tue, 4 Dec 2001 06:22:33 -0500 From: gemorga2 To: Eugene Grosbein , Tony Cc: freebsd-fs X-EXP32-SerialNo: 00002964 Subject: RE: [PATCH] msdosfs_vfsops.c: some kind of FAT32 incompatibility? Message-ID: <3C0CDBFD@zathras> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: WebMail (Hydra) SMTP v3.61 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I have tried a lot of partitioning schemes before I came up with my current setup (PC-DOS 7.0, Windows NT, OS2 Warp 4.0, Windows NT Wkst 4.0, Freebsd 4.?, Linux) I have never tried to have more than one Primary partition *visible* in Windows 9x. I don't think that is what Primary partitions are intended for since my boot manager always changes the other Primaries in my setup to Hidden Primary (hidden filesystem?) on my computer. So using an extended partition seems to be the right thing to do in this case. I am not sure why he had to use Norton Utilities to create the partition though, but I probably would have used Partition Magic so I guess I can't comment on that. This partition marking and *linking* is interesting, but I'm not sure what benefit it is. This sounds like a very special case which might deserve a quirk which could be enabled on a per user basis, but I wouldn't enable it by default. BTW, my current setup is: Drive 0: Primary Partition 1: FAT16 (IBM PC-DOS 7.0) Primary Partition 2: NTFS (Windows NT Wkst 4.0) Primary Partition 3: HPFS (OS2 Warp 4.0) Primary Partition 4: FAT32 (Windows 98 -- used to be FAT16b Win95) Drive 1: Primary Partition 1: UFS/FFS FreeBSD 4.? Primary Partition 2: EXT2 Linux Only the two unix like OSes can read any of the other OSes filesystems in this setup (with BootMagic). And, yes, I am nuts.... >On Tue, Dec 04, 2001 at 08:31:30AM +0000, Tony wrote: > >> >Once I decided to use some of this space for Windows95 residing >> >at the beginning of drive but there was no standard tools to make it >> >visible for Win95. So I used Norton Utilities 3.01 for Win95 and >> >its Disk Editor to create new "Extended Partition" residing >> >at the end of drive >> I think you would have been better to create another Primary Partition. >> Windows 9x and NT cannot create more than one Primary Partition on a >> drive, but they are perfectly happy to use them. > >I tried to have another Primary but there are some problems. >First, it is waste of last entry in MBR - this space really just >does not need to be Primary. Second, there were some problems with >disk checking tools I cannot remember now. >Creating new Extended produced less troubles. > >> >and to link it to existing Extended Partition. >> >Disk Editor has feature named 'Recalculate partition' that should >> >guarantee correctness of new partition record. >> This really sounds messy to your extended partition fragmented like >> this. It will certainly cause problems with disk checking tools, as you >> have found. > >At the other hand NDD worked just fine when that FAT32 needed fixes. > >> >The reason is that NDD changes the only byte in FAT32 signature: >> >it changes BOOTSIG2 from 0 to 0x52. The filesystem is still usable >> >by Windows but cannot be mounted by FreeBSD. >> >Well, I can live with this, applying the following patch before each >> >"buildworld". I just think that somebody else can hit this hole too. >> >> I think very few people will do anything similar to you with extended >> partitions. >> >> On the other hand as NDD has a feature for tagging strange partitions >> some other people may also find their FAT32 partitions ignored by >> FreeBSD. I expect NDD is mostly right that the partition information >> should be complained about, but if the user has been made aware and told >> NDD to ignore it FreeBSD should ignore it too. >> >> >So I propose the patch that handles this situation. >> >The patch is for RELENG_4 but that piece of code has not changed for >> >long time so it should apply to CURRENT cleanly in spite of different >> >file locations. >> > >> >diff -ur ./bootsect.h /usr/src/sys/msdosfs/bootsect.h >> >--- ./bootsect.h Sat Aug 28 08:48:06 1999 >> >+++ /usr/src/sys/msdosfs/bootsect.h Mon Dec 3 22:27:13 2001 >> >@@ -69,6 +69,7 @@ >> > #define BOOTSIG0 0x55 >> > #define BOOTSIG1 0xaa >> > #define BOOTSIG2 0 >> >+#define BOOTSIG2_COMPAT 0x52 >> >> Please, please if this is committed comment clearly what this is for. > >I am not a committer but want people to say their pros and contras >so it would be discussed if I find somebody to commit this. > >Eugene Grosbein > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-fs" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message