*BSD News Article 33511


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!ihnp4.ucsd.edu!ames!hookup!yeshua.marcam.com!zip.eecs.umich.edu!newsxfer.itd.umich.edu!gatech!udel!news.sprintlink.net!news.world.net!news.teleport.com!news.teleport.com!not-for-mail
From: bmk@teleport.com (bmk)
Newsgroups: comp.os.386bsd.questions
Subject: Re: FreeBSD - disklabeling sd1 and sd2
Date: 28 Jul 1994 16:56:32 -0700
Organization: Department of Redundancy Department
Lines: 35
Message-ID: <319gjg$gkq@linda.teleport.com>
References: <317bt8$mst@linda.teleport.com> <vanepp.775406918@sfu.ca>
Reply-To: bmk@teleport.com
NNTP-Posting-Host: linda.teleport.com

In article <vanepp.775406918@sfu.ca>,
Peter Van Epp <vanepp@fraser.sfu.ca> wrote:
>bmk@teleport.com (bmk) writes:
>
>...
>
>>What I'd also like to do is make my third drive visible to FreeBSD as
>>a single large DOS partition (I only need to do this so I can tar all
[snip]
>
>	You need to provide a 1 cylinder "a" partition on the third disk to 
>contain the BSD disk label otherwise (as you have discovered) it overwrites
>the partition table when you label the drive. Below is a pfdisk printout
>of the partition table on my first drive (FreeBSD is booted by bootmenu from
>the second IDE) and the disklabel on it:
>
[snip]

I figured this out this morning.  What I did was create a dummy BSD
partition starting at sector 2 of cyl 0 head 0, and ending on the last
sector of the same cyl and head (In other words, AFTER the MBR, and
before the DOS partition).  I was then able to disklabel the disk
safely.

One hint I can give before anyone else tries this.  Print out a copy of
your partition table.  I blew away mine more times than I care to
mention.  With a printout, you can easily repair it, using FreeBSD
fdisk.  DOS FDISK won't, of course.


-- 
bmk@teleport.com  | "You need only reflect that one of the best ways to get 
Portland, OR      | yourself a reputation as a dangerous citizen these days is
                  | to go about repeating the very phrases which our founding
                  | fathers used in the struggle for independence."-C.A. Beard