9fans archive / 1995 / 10 / 64 /    prev next

From: Jim Davis jdavis@cs....
Subject: Standalone SPARC.
Date: Fri, 6 Oct 1995 20:30:05 -0400

This is probably maximally inelegant, but this appears to work. I'm
starting with a Sun IPX with internal disk, Sun CDROM attached at ID 6
with the distribution CD in it. 

Get 9fs going on a UNIX box; do a global chmod on your plan 9 tree to set
everything to be owned by 'none'.  (Ie, if /plan9/etc/passwd has 'none' as
uid 900, do a find /plan9 -print | xargs chown 900.) Net-boot 9ss on the
IPX, login as 'none'.  You should see a clock and a little window saying
installation complete, welcome to plan 9, this is rc.

Now set up the local disk and CD rom player, like so: 

bind -a '#'w3 /dev  (I assume the disk is at SCSI 3, as usual)
bind -a '#'R6 /dev  (this gets the CD player)

(Don't forget the '-a'... /dev gets really small if you do.)

disk/prep /dev/sd3disk

answer 'a' to the question to get the default partitions.

disk/kfs -rb4096 -f/dev/sd3fs  (kinda like newfs)

mkdir /n/kfs; mount -c /srv/kfs /n/kfs

Now you have a local filesystem on /n/kfs.  Try

disk/kfscmd sync

as a sanity check.

9660srv  (sets up CD player service)

mkdir /n/cdrom; mount -c /srv/9660 /n/cdrom /dev/cd6

Now you have the local disk and CD player ready to go.

disk/kfscmd allow  (Not sure if this is really needed, but turning off
	            permissions sounded cool.)

Now you want to unpack the CD onto the local disk:

disk/mkfs -a -u /adm/users -s /n/cdrom /lib/proto/allproto |
	disk/mkext -u -v -d/n/kfs -z4096

(This gets a "usage" grumble from mkext but it seems to work.  Didn't
work without the -d/n/kfs, though the manpage implies it should.)

The -v will generate a 

x /n/kfs/some/file/name

message as the files are extracted.