*BSD News Article 40419


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!otis.apana.org.au!serval.net.wsu.edu!netnews.nwnet.net!oracle.pnl.gov!osi-east2.es.net!lll-winken.llnl.gov!sol.ctr.columbia.edu!howland.reston.ans.net!vixen.cso.uiuc.edu!uwm.edu!news.mr.med.ge.com!news.mr.med.ge.com!laufen
From: laufen@merak.med.ge.com (Derek Laufenberg  x7-4534)
Subject: disklabel probelms?
Message-ID: <LAUFEN.95Jan4133101@merak.med.ge.com>
Followup-To: comp.os.386bsd.questions
Sender: news@mr.med.ge.com
Nntp-Posting-Host: merak
Organization: GE Medical Systems, Magnetic Resonance
Date: 04 Jan 1995 19:30:55 GMT
Lines: 65

Hello,

I'm having trouble changing the boot record to boot from wd1(1,a).
I've read the FAQ on the subject and I don't think I'm doing any thing
too stupid.  Every time I try the disklabel command it wastes my boot 
record  and partition table entries.

I'm using the following:
	386 40Hhz
	20 M ram
	IDE -0 200M - dos disk with boot selector on it 
	IDE -1 407M - Full disk for BSD 4.2
	
	FreeBSD 2.0 - (Walnut Creek)

	Disklabel disk-1
	a:   /       27 M
	b:   swap    40 M
 	e:   /var    10 M
	f:   /usr   350 M

The process I used:

 1) Edit the file  /usr/src/sys/i386/boot/biosboot/boot.c 

	I replaced "/kernel" to read "wd1(1,a)/kernel" 

 2) backed up /usr/mdec  :)

 3) make; make beforeinstall

    New bootsd and sdboot files were created.  The were about the same
size as the old ones.

 4) cd /usr/mdec; cp sdboot wdboot; cp bootsd bootwd

 5) disklabel -B  wd1

    After the disklabel my partition table on disk 1 is trashed. The
entry in slice 1 which was the bsd slice is gone and now there is a
really confused entry in slice 4.

I realize I may not have edited the boot.c file right, but I didn't
expect to trash the partition/slice table.  Is there a bug in
disklabel?  I also tried installing the bootwd and wdboot files which 
were created during the installation process.  This also trashed the
slice table.


Thanks for any help.

Derek Laufenberg








--
Derek Laufenberg 
GE - Medical Systems 
laufen@sol.med.ge.com 
ph:(414)-647-4534