From owner-freebsd-questions@FreeBSD.ORG Sun Jun 6 05:04:34 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D95DF16A4CE for ; Sun, 6 Jun 2004 05:04:34 -0700 (PDT) Received: from mail816.megamailservers.com (mail816.carrierinternetsolutions.com [69.49.106.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71A3743D2F for ; Sun, 6 Jun 2004 05:04:32 -0700 (PDT) (envelope-from strick@covad.net) X-POP-User: strick.covad.net Received: from mist.nodomain (h-68-164-175-2.snfccasy.dynamic.covad.net [68.164.175.2])i56C4PiD013064; Sun, 6 Jun 2004 08:04:26 -0400 Received: from mist.nodomain (localhost [127.0.0.1]) by mist.nodomain (8.12.11/8.12.11) with ESMTP id i56C4PUO001152; Sun, 6 Jun 2004 05:04:25 -0700 (PDT) (envelope-from dan@mist.nodomain) Received: (from dan@localhost) by mist.nodomain (8.12.11/8.12.11/Submit) id i56C4OAQ001151; Sun, 6 Jun 2004 05:04:24 -0700 (PDT) (envelope-from dan) Date: Sun, 6 Jun 2004 05:04:24 -0700 (PDT) From: Dan Strick Message-Id: <200406061204.i56C4OAQ001151@mist.nodomain> To: ben@spooty.net cc: freebsd-questions@freebsd.org Subject: Re: Dangerous file system / disk problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2004 12:04:35 -0000 On Sun, 6 Jun 2004 12:13:17 +0100, Ben Paley wrote: >> > I wanted to have FreeBSD on my first drive and Win98 on the second, but > of course windows doesn't like being on the second disk, and began > "preparing" my first drive which already had FreeBSD on it! Well, I > swapped the drives over, put W98 on the first one, they both boot fine > and I didn't lose any data. > > BUT - Windows now sees my BSD disk (which has never happened before) and > keeps offering to format it for me. Partition Magic gives its filesystem > type as 'BAD' rather than 'FreeBSD/i386', as it used to. Weirdly, > Boot Magic (bundled with Partition Magic) found both operating systems > with no difficulty. >> Perhaps something changed the partition type code in the MBR partition table on your FreeBSD disk. Do "fdisk ad1" to display the MBR partition table. The FreeBSD slice should say: sysid 165,(FreeBSD/NetBSD/386BSD) If it says anything else, you can use the command "fdisk -u ad1" to change the MBR partition type code back to 165 (decimal). (Which release of FreeBSD do you run? You used the "bsdlabel" command to display the FreeBSD disk label on /dev/ad1s1. That suggests you are running FreeBSD 5.x. In my experience, release 5.x won't recognize FreeBSD disk labels in non FreeBSD slices and won't create special files for the partitions in /dev. This suggests that your MBR partition type code is actually correct. I dunno ... but it should be worth checking anyway.) Dan Strick