From: salehi@gaia.cs.umass.edu (James Salehi)
Newsgroups: comp.os.mach
Subject: Booting 3.0 on a DECstation
Date: 18 Aug 92 22:16:23 GMT
Organization: Dept. of Computer Science, UMass/Amherst

Here's a fun problem.  (Read: A desperate plea for help). 

To boot 3.0 on our DECstation which normally runs Ultrix 4.2a, I followed
the CMU setup document and copied all files (vmunix, mach.boot, and so on) 
to "/" and "/mach_servers" on our /dev/rz0a partition. 
For mach.boot, I used the STD+ANY configuration; for vmunix, STDVICE+WS.
[ Our 5000 has three partitions, "a", "b" and "g", the last of which is 
normally mounted on /usr. ]  I then created a paging file on "g", with 
a soft link from /mach_servers/paging_file.  

The next step was getting CMU's mount and fsck binaries, which I copied 
to /bin.  /etc/fstab was modified to only reference partitions 
on the local disk: 
	/dev/rz0a:/:rw:1:1:ufs
	/dev/rz0g:/usr:rw:1:2:ufs

I then modified /etc/rc to run only "fsck -p" and "mount -a -t ufs", 
and rebooted the machine. 

For those of you who have actually read this far, I commend you. 
Now we get to the good stuff.  When Mach boots, it prints the 
error message "ufs_mount: file system not cleaned -- mounting anyways", 
*before* the /etc/rc script is executed; i.e., before /etc/fsck is 
executed.  When /etc/fsck is invoked from /etc/rc, the horrifying 
error messages appear: 

	Can't open /dev/rrz0a: Device not configured
	/dev/rrz0a: CAN'T CHECK FILE SYSTEM 
	/dev/rrz0a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY

Finally, at the shell prompt, "mount" prints nothing, "ls /usr" 
prints nothing (which makes sense, as nothing is mounted), and 
"mount /dev/rz0g /usr" gives 

	/dev/rz0g on /usr: No such device or address

Of course, /etc/fsck gives the same error messages as the when it was
invoked from /etc/rc. 

If I owned anything valuable, I'd give it to the first person to 
suggest a solution.  I've just been working on this 3.0 build/boot 
process for an obscene amount of time.   Anyway, for those who have the time, 
I've included the boot transcript below in case some sharp eyes can 
uncover clues that I've missed. 

JIM

----------------------------------------------------------------------------

# This is the boot sequence transcript.  All lines starting with "#" are
# comments I've added. 
#
# The system is a DECstation 5000, with a single SCSI drive.
# /dev/rz0a is the root partition, which is visible when Mach 
# boots.  /dev/rz0g should be mounted on /usr (but isn't) when Mach's 
# single-user prompt appears. 
#
# We are using the CMU version of /etc/fsck and /etc/mount.  
#
# /etc/rc only sets the PATH, does "/etc/fsck -p" (CMU's version) and does a
# "mount -a".  /etc/fstab contains two lines: 
#	/dev/rz0a:/:rw:1:1:ufs
#	/dev/rz0g:/usr:rw:1:2:ufs

Mips boot: memory from 0x189000 to 0x2000000
Kernel virtual space from 0xc0000000 to 0xc8000000
Mach 3.0 VERSION(MK78): Wed Aug 5 18:54:54 EDT 1992 kernel/STD+ANY
Cache: 64+64 kilobytes
Memory: 32.00 megabytes
vm_page_bootstrap: 7567 free pages
cpu: MIPS R3000 Processor Chip, Version 2 Revision 2.0
fpu: MIPS R3010 VLSI Floating Point Chip, Version 3 REvision 2.0
box: DEC 5000/200, Revision 2.0, Firmware revision 1, Hardware revision 32
dz0: at tc7
 sl0: (lk201 id 1.0, self-test okay)
 sl1: (mouse revision 0.1)
 sl2: 
 sl3: (rconsole)
[mappable] se0: at tc6: 8-0-2b-17-8c-4c
[mappable] asc0: SCSI id7, target() at 0
asc0: at tc5
 rz0: at asc0 slave 0 (disk DEC RZ55(C) DEC 0900)
 sc7: at asc0 slave 7 (cpu ) [this cpu]
[mappable] ga0: at tc0: 2D color display
The prom has clobbered the clock
Estimating CPU clock at 25Mhz
(default pager): Adding paging file /dev/rz0a/mach_servers/paging_file
(bootstrap): loading unix symbols from /dev/rz0a/mach_servers/startup
[ preserving 0x38218 bytes of unix symbol table ]
(bootstrap): loading emulator symbols from /dev/rz0a/mach_servers/emulator
[ preserving 0x16a1c bytes of emulator symbol table ]
Mach 3.0 VERSION(UX38): Wed August 5 21:54:05 EDT 1992; server/STDVICE+WS
Available memory = 29.3 megabytes
Using up to 48 buffers
ufs_mount: file system not cleaned -- mounting anyways
Base is Tue Aug 18 14:52:51 1992
Current Time is Fri Dec 31 19:00:19 1971
This is strange--CHECK AND RESET THE DATE!
Time is set to Tue Aug 18 14:52:51 1992
WARNING: no remote file system (missing /RFS/.LOCALROOT)
Can't open /dev/rrz0a: Device not configured
/dev/rrz0a: CAN'T CHECK FILE SYSTEM 
/dev/rrz0a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
Automatic reboot failed-help!
erase ^?, kill ^U, intr ^C
stty: not a typewriter

# ls finds nothing under /usr.  /dev/rz0g hasn't been mounted
> cd /usr
> ls
>

# mount indicates no file systems are mounted. 
> cd / ; /etc/mount
> 

# Trying to mount /dev/rz0g on /usr fails 
> /etc/mount /dev/rz0g /usr
/dev/rz0g on /usr: No such device or address

# fsck gives same error as when it was invoked by /etc/rc
> /etc/fsck -p /dev/rrz0a
Can't open /dev/rrz0a: Device not configured
/dev/rrz0a: CAN'T CHECK FILE SYSTEM 
/dev/rrz0a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY
--

James D. Salehi                                      phone: 413-549-7935
Department of Computer Science                         fax: 413-545-1249  
University of Massachusetts                       internet: salehi@cs.umass.edu
Amherst, MA 01003


Newsgroups: comp.os.mach