*BSD News Article 39368


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!uwm.edu!math.ohio-state.edu!howland.reston.ans.net!swrinde!pipex!uknet!cf-cm!isl.cf.ac.uk!paul
From: paul@isl.cf.ac.uk (Paul Richards)
Subject: Re: DOS&FreeBSD2 sharing disk- take care with subsequent DOS format
Message-ID: <1994Dec13.001521.18027@cm.cf.ac.uk>
Sender: paul@isl.cf.ac.uk (Paul Richards)
Nntp-Posting-Host: isl-gate.elsy.cf.ac.uk
Organization: ELSYM, University of Wales, College of Cardiff, UK.
References: <PHILLIP.94Dec8092248@mirriwinni.ee.adfa.oz.au>
Date: Tue, 13 Dec 1994 00:15:19 +0000
Lines: 41

In article <PHILLIP.94Dec8092248@mirriwinni.ee.adfa.oz.au>,
Phillip Musumeci <phillip@ee.adfa.oz.au> wrote:
>I have observed the following bug which might be attributable to DOS.
>
>The DOS 6.x fdisk and the freebsd-2 fdisk can both agree on the size of a
>DOS partition (after freebsd-2's installation disk has been used to
>partition a shared disk using freebsd's fdisk) but the DOS format command
>can ignore the partition information and use the whole disk.  In our case,
>we eventually used the DOS fdisk to delete and then recreate a primary DOS
>partition (of the original size) and then the DOS fdisk and the DOS format
>command agree.
>
>What we did and our work-around:
>
>1) use FreeBSD-2 installation floppies and partition a single disk for DOS
>   and FreeBSD use.  DOS uses partition 1 (ID byte 0x06 by memory), FreeBSD
>   uses partition 2 (ID byte 0xa5 by memory), and the other two partitions
>   remain unallocated.  Install boot manager.
>2) install FreeBSD successfully, and run for a couple of days.
>3) boot DOS from floppy and prepare to format the DOS partition.
>	a) run the DOS fdisk --- this reports that the DOS partition is
>	   recognised and has the correct size.
>	b) run the DOS format utility --- this reports that it is about to
>	   format the whole disk!
>4) run DOS fdisk and delete and then recreate the DOS primary partition.
>   Now the DOS format command only formats a DOS file system occupying the
>   DOS partition and not the whole disk.

Could you send me the output of FreeBSD's fdisk output before and after you
"fix" the disk using DOS's fdisk.

If we can see what's getting changed we can fix it in the installation.

Did you make the DOS partition bootable when you ran DOS's fdisk on it or
was the FreeBSD partition bootable.

-- 
  Paul Richards, FreeBSD core team member. 
  Phone: +44 1222 874000 x5958 (work), +44 1222 457651 (home)
  Dept. Mechanical Engineering, University of Wales, College Cardiff.
  Internet: paul@FreeBSD.org,  JANET(UK): RICHARDSDP@CARDIFF.AC.UK