Subject: Re: Mounting, compiling, & driver writing
To: Daniel R. Killoran, Ph.D. <drk@shore.net>
From: Bill Studenmund <wrstuden@loki.stanford.edu>
List: port-mac68k
Date: 07/01/1997 12:23:49
> >> Please bear with me - I'm an old hand at programming, but new to UNIX:
> >>
> >> 1) My HD is partitioned
> >> 0 UNIX root & usr 200 Meg
> >> 1 UNIX usr 200 Meg
> >> 2 Mac boot vol 200 Meg
> >> 3 Mac vol 200 Meg
> >> 4 Mac v0l <200 Meg
> >>
> >> I can boot netBSD fine, but how do I get the other UNIX partition to mount?
> >
> >First you need to know which partition is which. Your partition 0 is most
> >likely going to be /dev/sd?a, where ? is the number which gets mapped to
> >your hard drive at boot time. To see where the other partitions get
> >mapped to, do a:
> >
> >disklabel sd?
> >
>
> When I do this, I get:
>
> disklabel: /dev/rsd?: No such file or directory
>
> (When I boot netBSD, the boot volume is sd0a)
You really did disklabel /dev/sd0c, didn't you?
> >(you need to be root to do this). Then you can either do a:
> >
> >mount /dev/sd?? /path/to/mount_point/here
> >
> >or else add the appropriate line to /etc/fstab.
> >
>
> cat /etc/fstab
> gives:
>
> /dev/sd0a / ufs rw 1 1
> /dev/sd0b none swap sw 0 0
> kern /kern kernfs rw 0 0
> proc /proc procfs rw 0 0
>
> so I forgot, in the list above, about the swap partition. The map is actually:
>
> 0 UNIX root & usr 200 Meg
> 1 UNIX boot 80 Meg
> 2 UNIX usr 200 Meg
> 3 Mac boot vol 200 Meg
> 4 Mac vol 200 Meg
> 5 Mac v0l <200 Meg
UNIX boot? Is that the swap partition?
> >> 3) Is there any body of information about writing drivers?
> >
> >Unfortunately, that's pretty much RTSL (Read the Source, Luke ;-)
>
> (Sigh!)
It is a bit frustrating, isn't it. But after a while, and copious use of
nenscript (to print text files 2-to-a-page), I've managed to get by.
> >Although there might be a few books out there that are helpful.
>
> I'll look around.
Check out the Red Book, the Design & Implimentataion of BSD 4.4. Note,
I'm paraphrasing the title. It gives a good overview, and helps make
sens of some of the things going on. But you'll still need the source.
Take care,
Bill