*BSD News Article 99993


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!msunews!agate!howland.erols.net!infeed2.internetmci.com!newsfeed.internetmci.com!jump.net!grunt.dejanews.com!not-for-mail
Date: Sat, 19 Jul 1997 18:28:32 -0600
From: bbluhm@minn.net
Subject: OpenBSD 2.1 Mac68k Install Tricks...
Newsgroups: comp.unix.bsd.openbsd.misc
Message-ID: <869353369.16225@dejanews.com>
Organization: Deja News Usenet Posting Service
To: dugsong@umich.edu
X-Article-Creation-Date: Sat Jul 19 23:02:50 1997 GMT
X-Originating-IP-Addr: 204.157.201.192 (dialup-192.Minn.Net)
X-Http-User-Agent: Mozilla/4.01 (Macintosh; I; 68K)
X-Authenticated-Sender: bbluhm@minn.net
Lines: 98
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.openbsd.misc:200

  There are some nasty hurdles to overcome when installing the
Mac/68k version of OpenBSD 2.1 - here are some hints:

1)    When using the installer program ( Installer 1.1d ), the kernel
   will not load along with everything else, even though the
   installer lists it during the load sequence.  I understand this
   is because the kernel is a binary image, and Installer wants
   tar.gz archive format files. If you try to boot after just using
   Installer, you will get a "kernel not found" type message.
   You must move the kernel ( bsd-generic or bsd-genericsbc ) over
   to your Unix root manually. Here's how:

   Start up the mini-shell in Installer. Use the handy Mac/HFS file
   to Unix file transfer command cpin to move the kernel over:

   cpin "INTERNAL:bsd-generic" "/bsd-generic"

   This will copy the kernel from the INTERNAL drive root over to
   the Unix root - use the format above with whatever path you
   need to allow cpin to locate your copy of bsd-generic/sbc.
   You now have a binary image of the BSD kernal on your Unix drive,
   and you should be able to boot, if you installed everything else
   correctly.

   An alternative method to the above is to convert the bsd-generic
   binary file to a compressed archive in the tar.gz format. You
   will need something like "Dropstuff" or some other archive utility.
   You're on your own here, but if you get the kernel in the right
   format, Installer should load it.

2)**  Due to a another bug (feature?) in the Installer 1.1d program,
   you will probably notice a bunch of "Read Only Filesystem"
   errors generated during the boot process.  This is due to a
   subtle error Installer introduces to the /etc/fstab file it
   creates when you run the Build Devices option (don't forget!).
   The /etc/fstab generated lists the root filesystem type as ufs,
   but it should be type ffs ( ffs = local unix filesystem, I think ).
   Basically, you must edit the /etc/fstab file and simply change
   the "ufs" to a "ffs" in the root filesystem entry:

   Run the BSD/Mac68k Booter program. Go into the boot options screen.
   Select single user mode. Make sure your kernal name is correct
   while you are in this screen. Do the OK, then command-b to boot.

   You should get a message like "... RETURN for sh". Hit return to enter
   the shell. You will then be asked for a terminal type: vt220 works
   for me.

   Now you can make your root writable by using a mount root:

    mount /dev/sd0a /

   The sd0a is your root partition, the following slash specifies the root
   directory. If your root partion is not on sd0a, substitute your drive
   designator.

   You can view the /etc/fstab file, if you wish:

    more /etc/fstab

   The first line that prints out should look something like:

     /dev/sd0a	  /	    ufs 	rw 1 1

   The ufs above is the bug. Use vi or ed to change the ufs to ffs. I
won't explain how to use the editors, but I will caution you that /etc/
fstab is a critical system file, and you may have Big Trouble if you put
any garbage in this file.

    That's the heart of it. You can now do a shutdown -h now to quit unix,
reboot your Mac, probably switch to B/W mode, and run the BSD-Mac68k
Booter. Change the boot option to multi-user (deselect single user) and
boot Unix. Hopefully, all those pesky Read Only Filesystem errors will be
gone, and the system will now be able set up the files it needs to run
properly.

  ** A very BIG THANKS to Dug Song for giving me the Clue on this one.

      I hope this is of some help. If anyone else has other solutions they
have found to ease the Mac Open/2.1 install procedure, please add them to
this thread.I suspect we could get the OpenBSD.org folks to add this info
to the rather sketchy INSTALL.mac68k document, or better yet, fix the
installer.

   Regards,

   Bryan Bluhm
   7/19/97
   "NOT a Unix Guru"







-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet