*BSD News Article 8496


Return to BSD News archive

Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!olivea!uunet!mcsun!Germany.EU.net!ira.uka.de!rz.uni-karlsruhe.de!stepsun.uni-kl.de!sun.rhrk.uni-kl.de!sun.rhrk.uni-kl.de!andrick
From: andrick@sun.rhrk.uni-kl.de (Ulf Andrick [Biologie])
Newsgroups: comp.unix.bsd
Subject: Re: HELP! I messed up my boot sector!
Message-ID: <1992Dec2.152753.24988@rhrk.uni-kl.de>
Date: 2 Dec 92 15:27:53 GMT
References: <1992Dec2.005418.27668@tinman.mke.ab.com>
Sender: news@rhrk.uni-kl.de
Organization: University of Kaiserslautern, Germany
Lines: 52
X-Newsreader: Tin 1.1 PL4

tdphette@mke.ab.com (Thad Phetteplace x4461) writes:
: ferrick@acsu.buffalo.edu (Patrick K. Ferrick) writes:
: : While trying to get 386bsd and DOS to coexist peacefully on my 120Mb Rodime
: : drive, I accidentally trashed some very important part of my boot sector.
: : (As in "nothing besides the Norton Utilities can even SEE drive c: :-("
: : 
: : If   a) you are running both 386bsd and DOS,
: :      b) you have a copy of the Norton Utilities
: : 
: : could you please assist me in filling in the right values in the following
: : partition table?  I will be eternally grateful!
: : 
: 
: I don't think you need to use Nortons to fix this.  The disklabel program
: on the fixit disk should be enough.  Boot with the fixit disk and then use
: disklabel to reinstall the boot block.  The usage should be something like
: 
: disklabel  -w [ -r ] disk disktype [ packid [ priboot sec-boot ] ]
: 
: disk = the device name 
: disktype = the appropriate disktab entry name
: packid = the pack identifiaction string (up to 16 chars)
: priboot = block 0 boot code
: sec-boot = secondary bootstrap
: 
: I had a similar problem and fixed it with the following...
: 
: disklabel -w -r /dev/wd0a quantum200 "mydisk" /usr/mdec/wdboot /usr/mdec/bootwd
: 

I think this is not enough to set up a DOS partition as the
original poster intended to do. To my knowledge, disklabel
doesn't maintain the partition table in the master boot sector
of the disc. You can install or recover 386bsd partitions that way, but
they are not recognised by DOS tools. 

Something for the original poster: Norton diskedit has a command
that allows to calculate part of the partition table. E. g.,
you can calculate headtrackcyl if you have put the sizes and
offsets of the partitions into the two rightmost columns.

Track 0 side 0 is left free by DOS partitions. 
Note also, that 386bsd partitions should begin and end at cylinder 
boundaries.

Refer to the online help of diskedit.

--
Ulf R. Andrick                                andrick@rhrk.uni-kl.de
FB Biologie - Tierphysiologie
Universitaet                             Was du nicht selber weiszt, 
D-W 6750 Kaiserslautern       das muszt du dir erklaeren (Tegtmeier)