[comp.os.minix] MACMINIX hard disk guide

archetyp@uxh.cso.uiuc.edu (Joseph R Pickert) (11/04/90)

		10 EASY STEPS TO MACMINIX HARD DISK HAPPINESS

For those who are having problems setting up their hard disks with MacMINIX,
these instructions are intended to help.  They will do the following:
	1) remove the ram disk
	2) set up three minix "partitions": /  (/dev/hd0), /usr (/dev/hd1),
	   and /tmp (/dev/hd2)
	3) Unpack all the floppy disks
	4) Correct some distribution bugs

YOU WILL NEED 12 MEG OF FREE DISK SPACE.  (You can change the sizes of USR
and TMP in the instructions, but USR must be at least 9000 blocks to unpack 
everything)

#1. Insert 00.BOOT and copy Macboot and ROOT to a folder on your hard disk.
    Eject the disk.

#2. Start Macboot by double clicking on the hard disk copy of Macboot.
    Insert the /usr and type return when asked. Login as root.

#3. Create each "partition" as a Mac File (ROOT is already  set up, as it
    came off the diskette). Type at the prompt:
	maccreate 10000 USR
	maccreate 1000  TMP

#4. Make a file system on each. Type at the prompt:
	hdopen TMP /dev/hd1
	mkfs /dev/hd1 1000
	hdclose /dev/hd1
	hdopen USR /dev/hd1
	mkfs /dev/hd1 10000

#5. Unload floppys. Type:
	/etc/setup_usr /dev/hd1
    Follow the instructions, inserting each disk as requested.

#6. If you have enough memory, chmem the compiler (see the chmem man page
    in your documentation). Type:
	chmem =150000 /usr/lib/cem

#7. Fix /usr/include permissions. Type: 
      	chmod 444 /usr/include/*.h /usr/include/*/*.h

#8. Modifiy /etc/rc. However, the RAM disk is running and we want to make
    on the change to the real file system and not the RAM file system. 
    So type:
	mkdir /tmp/x
	hdopen ROOT /dev/hd4
	mount /dev/hd4 /tmp/x
	
    Using vi, mined, or elle, replace the seven lines in 
    /tmp/x/etc/rc that read:

	/etc/hdclose /dev/fd0
	/etc/eject

	# ...
	/bin/getlf "Please insert /usr diskette in drive 0.  Then hit RETURN."
	/etc/hdopen 01.USR1:USR1 /dev/hd0
	/etc/mount /dev/hd0 /usr

    with the following 4 lines:

	/etc/hdopen USR /dev/hd1
	/etc/mount /dev/hd1 /usr
	/etc/hdopen TMP /dev/hd2
	/etc/mount /dev/hd2 /tmp

    Exit the editor, then type:
	umount /dev/hd4
	hdclose /dev/hd4
	rmdir /tmp/x

#9. Get rid of RAM disk. Select "Configuration" under "File" 
    menu, uncheck the "Use RAM disk" box.

#10.Logout, Quit, then restart MacMINIX to make sure everything is ok.

Joe Pickert