*BSD News Article 35739


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!yoyo.aarnet.edu.au!news.adelaide.edu.au!gateway.dircsa.org.au!cleese.apana.org.au!apanix.apana.org.au!miff
From: miff@apanix.apana.org.au (Michael Smith)
Newsgroups: comp.os.386bsd.questions
Subject: labelling wd0 so as to mount it as PCFS
Date: 12 Sep 94 14:03:29 GMT
Organization: Apanix Public Access Unix, +61 8 373 5485 (5 lines)
Lines: 40
Message-ID: <miff.779378609@apanix.apana.org.au>
NNTP-Posting-Host: seldon.apanix.apana.org.au

Greetings peoples...

I've been watching the questions/answers going past about setting up
wd0 (DOS only) so as to be read from an sd0-booting system.

Having stuck my head into various manpages, I thought I'd give it a go.

Now, I boot from sd0 using boot-easy 1.31 and a slightly modified bootblock
on sd0.  wd0 is just your average DOS format disk, with a tiny FreeBSD
partition at the end (3024 blocks).

wd0 is an ESDI drive (NEC D5655/Adaptec ACB232) running in 63-sector
translation mode.

I've managed to make a FreeBSD partition stick, but I can't get a disklabel
to hold.

I have a disk prototype for the disk with two partitions : a and c. a matches
the DOS layout, and c is the whole disk. 

Writing this prototype, I get the 'label mismatch or checksum is wrong'
error. (something has returned EINVAL)

After this, every attempt to write/read/whatever a disklabel on this
disk gives the message :
can't read master boot record: Undefined errror: 0

Is this a consequence of having set partition 'c' to the entire disk,
rather than 'd'?

Have I missed something obvious in all this?

Thanks for any suggestions.


--
# mike smith : miff@apanix.apana.org.au - Silicon grease monkey        #
# "The question 'why are the fundamental laws of nature mathematical'  #
# then invites the trivial response 'because we define as fundamental  #
# those laws which are mathematical'". Paul Davies, _The_Mind_of_God_. #