*BSD News Article 8427


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!agate!usenet.ins.cwru.edu!icd.ab.com!tinman.mke.ab.com!tdphette
From: tdphette@mke.ab.com (Thad Phetteplace x4461)
Subject: Re: HELP! I messed up my boot sector!
Message-ID: <1992Dec2.005418.27668@tinman.mke.ab.com>
Sender: usenet@tinman.mke.ab.com (NetNews server account)
Nntp-Posting-Host: toejam
Organization: Allen-Bradley Co.
X-Newsreader: Tin 1.1 PL4
References: <ByKFGK.AHw@acsu.buffalo.edu>
Date: Wed, 2 Dec 1992 00:54:18 GMT
Lines: 46

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

This is from memory and I am not sure if it is correct.  Heres a helpful
tip though.  Try mounting your hard disk partions after booting with
the fixit floppy.  This will allow you access to man pages and such.
You should be able to access them even though the boot track is gone.

mount /dev/wd0a /mnt

Hope this helps,

--
Thad Phetteplace
Network Systems Analyst, Allen-Bradley Co.
Phone: (414)382-4461
Email: tdphette@mke.ab.com

The opinions expressed here are entirely my own and not that of my employer.
I am not a slob, I am simply doing an experiment in domestic entropy!