[123] in netbsd-help mailing list archive

home help back first fref pref prev next nref lref last post

Re: using disklabel

daemon@ATHENA.MIT.EDU (Greg Hudson)
Mon Mar 27 03:09:31 1995

To: ericding@MIT.EDU
Cc: netbsd-help@MIT.EDU
In-Reply-To: Your message of "Mon, 27 Mar 1995 02:35:56 EST."
             <9503270735.AA26189@unca-donald.MIT.EDU> 
Date: Mon, 27 Mar 1995 03:09:00 EST
From: Greg Hudson <ghudson@MIT.EDU>


> I've got, as some of you know =b, DOS running on wd0 and NetBSD
> running on my second disk, wd1.  Well, I've been told that one (the
> only?) way to set up the DOS drive so that I can mount/read it from
> NetBSD is to create a small partition for NetBSD on it, then create
> a disklabel for the disk.  Is this correct?

That's the "right" way of doing it.  It's also probably possible to
use an in-core disklabel, i.e. have /etc/rc.local read in a disklabel
for the disk from the filesystem.

> If so, here's what I've done so far.. using fips and Linux fdisk,
> I've set up a small (one cylinder) partition on the first drive for
> NetBSD... but don't know what to do next.

From the installation script, it looks like you want to add an entry
to /etc/disklabel:

dosdisk:\
	:dt=ST506:ty=winchester:nc#CYL:nt#TRACKS:ns#SETORS:se#512:\
	:pa#SIZE:oa#OFFSET:ta=4.2BSD:ba#8192:fa#1024:\
	:pc#SIZE:oc#OFFSET

Where CYL, TRACKS, and SECTORS are the (translated) disk geometry
(number of cylinders, number of heads, number of sectors per track),
and SIZE and OFFSET are the size and offset of the NetBSD partition in
sectors.

Then:

	disklabel -w -B /dev/wd0d dosdisk


home help back first fref pref prev next nref lref last post