[comp.sys.next] Updated installation note for Fujitsu M2263SA/SB

izumi@mindseye.berkeley.edu (Izumi Ohzawa) (03/13/91)

This is a revised version of the installation note I posted
last year.  Some new information has been added to reflect
NeXT OS upgrade to 2.0.

Izumi

---
*** Installing FUJITSU M2263SA/SB SCSI Disk as Internal NeXTcube Boot Disk

This note was originally posted to a USENET newsgroup comp.sys.next
sometime during the summer 1990.
Updates have been made to include notes for OS Release 2.0.
With the exception of disk capacity related numbers, procedures
described below also apply to M2261SA/SB, and M2266SA/SB (1.2GB) drives.

[0] I assume you know how to handle electro-static sensitive devices.
	If you don't, read Appendix C "Opening the Cube" of User's
	Reference which you should have received with your cube.

[1] Jumper settings on the drive

  (a) SCSI target# can be set by jumber block "CN9" located right
	next to the SCSI bus connector of the drive.  Three jumpers
	closest to the SCSI connector encode the target number in
	binary.

	View from the back of the drive, with the drive UP-SIDE DOWN.

     |-----------|  |----------------------------|       .......
     | power con.|  |   50 pin SCSI connector    |   CN9 .......
     |-----------|  |----------------------------|       \-/
		                                          ID

	For SCSI target# 0, remove the three left-most jumpers on CN9.
	For SCSI target# 1, keep the left-most one, and remove the
		second and third jumper from left.
	Figure out other target ID's yourself using the left-most jumber
		as LSB (least significant bit).
	The recommended target# for internal boot disk is 1.  This
	allows an external SCSI drive with target #0 to become the boot
	device when such a device is connected (without opening the cube).
        (The cube will boot from the SCSI device with the smallest
        target #.  Manual booting from the ROM monitor will always allow
        booting from a SCSI device with any target #.)

  (b) Remove two jumpers at both ends of the jumper block "CNH2".

	Locate the jumper block "CNH2" betweeen two surface-mount VSLI's
	whose labels are obscured by capacitors ( 1cm square blocks
	colored blue on my drive, with two leads).
	There are 8 jumpers in this block.

           On Jumper Block "CNH2" remove:
                        [1-2]      INQUIRY DATA
                        [15-16]    Synchronous Mode Transfer

	If you can't figure out the numbers on the block,
	[1-2] is at one end and indicated by a little triangle mark, and
	[15-16] is at the other end (8-th position from the triangle).

	You will be able to perform BuildDisk with these two jumpers on,
	and will be able to mount and use the drive if it is not used as
	the boot disk.
	However, the cube will not boot when you try to boot from the
	new SCSI drive later in step [8].
	These two jumpers are probably the only ones you have to
	change from the factory configuration.
	On my drive, all other jumpers in block "CNH2" are installed
	except for the two above.  All jumpers in block "CNH1" and
	"CNH4" are also on.

	Both of the jumbers in CNH2 have to be pulled out for the 68030
	CPU board, but the new 68040 upgrade board might work with these
	jumpers ON. I have not tested this.  The drive works fine with the
	above two jumpers OFF with 68040 CPU board too, so I just left
	them that way.  Perhaps someone can experiment with this.

	[  This information was kindly provided by Helene Young-Myers,
	helene@secd.cs.umd.edu, and her husband Eugene D. Myers.
	Thank you! ]


[2] Remove the 40MB swap disk if present, and install M2263S.
	Connect the power cable to the drive, and SCSI flat cable.
	Make sure that pins (50 each on the SCSI drive, and the
	CPU board) are not bent.  Straighten them if any are bent.

	If you are using an internal SCSI cable from a third-party
	vendor, use caution not to insert the connector upside-down.
	The NeXT supplied internal SCSI cable is keyed, so it shouldn't
	be possible to insert it upside-down.
	If, in step [3], "scsimodes" does not give you anything other
	than error messages, you might have connected the cable in the
	wrong way.  There is a little label on the connector of the
	drive indicating which pin is pin-1.  Make sure that the same
	side of the cable goes to pin-1 on the drive and the CPU board.
	
[3] Boot from OD, and login as user "root".
	Use command "scsimodes" as below to get basic formatting
	information, e.g., bytes per sector, etc.
	If "scsimodes" does not work, the most likely cause is
	improper cable connections.
---
For M2263SA
localhost# scsimodes /dev/rsd0a
SCSI information for /dev/rsd0a
Drive type: FUJITSU M2263S-512
512 bytes per sector
53 sectors per track
15 tracks per cylinder
1658 cylinder per volume (including spare cylinders)
3 spare sectors per cylinder
15 alternate tracks per volume
1312343 usable sectors on volume

---
For M2263SB (or SA after running "formatter")
localhost# scsimodes /dev/rsd0a
SCSI information for /dev/rsd0a
Drive type: FUJITSU M2263S-1024
1024 bytes per sector
28 sectors per track
15 tracks per cylinder
1658 cylinder per volume (including spare cylinders)
3 spare sectors per cylinder
15 alternate tracks per volume
690968 usable sectors on volume


[3.5] Low-level Formatting (*** OPTIONAL ***)

If you have a program "formatter" by Rory Bolt (see below),
you can optionally perform a low-level format of M2263SA.
You can also use a NeXT supplied program /usr/etc/sdform for
this purpose although it cannot do many of the things "formatter" can.
Rory's program has been written specifically for Fujitsu M226xS
series drives although it works with many other SCSI drives.
Your drive should work without this step, however.
Therefore, skip it if you are unconfortable doing it.
Low-level formatting is not really required because the drive comes
pre-formatted from factory.
However, running "formatter" will give you additional 35MB of storage
from M2263SA by essentially turning it into an M2263SB, speeds up the
drive slightly, and it will enable automatic error recovery feature
of the Fujitsu drive.

[You get about 632MB for M2263SA, and 667MB for M2263SB after
i-nodes and other Unix overhead are subtracted.  The difference between
SA and SB is that SA has 512 bytes/sector block size while SB has
1024 bytes/sector.  If you can get M2263SB instead of SA from a
vendor, by all means get the SB version.]

Also, remember for future reference that there are certain SCSI disk
errors which can usually be fixed by low-level formatting a drive.
If your drive, after some use, develops "MEDIA ERRORs" which
will be recorded in the system log file /usr/adm/messages, you might be
able to fix the drive by doing a low-level format.  These media errors
cannot be fixed by simply re-doing BuildDisk and reloading the system.
If a low-level format doesn't revive the disk, it's time to ship the
disk back to the manufacturer.

Low-level formatting is different from the intialization process
performed by BuildDisk or by command line "disk -i /dev/rsd0a".
The init process done by BuildDisk or disk program merely lays
down Unix filesystem(s), while a low-level format freshens formatting and
bad-sector substitution table internal to the SCSI disk.  The low-level
formatting process will take 20-30 minutes for 670MB drive, while the
BuildDisk init process (or "disk -i /dev/rsd0a") will take only a few
minutes.

**** How to get "formatter" (v1.2) by Rory Bolt.
This program is available from the standard NeXT archive sites via
anonymous FTP if you are connected to Internet.  If you do not
have FTP access, Purdue University archive also operates an E-mail
based file server.  This is a shareware program ($15), so please
send a check to Rory if the program works for you.  (Once is
all you need to run this program, usually.  It is also a better
deal than the other program TheFormatter for Wren's.)
[I have no connection with Rory Bolt except as a happy user of his
program.]
The current version (1.2) was develped on NeXT OS 1.0, but works fine
on Release 2.0 too (I've done it.)

NeXT FTP archives are as follows:
Host: nova.cc.purdue.edu or sonata.cc.purdue.edu.
Path: /pub/next/1.0-release/binaries/formatter_1.2.tar.Z (binary file)

Host: cs.orst.edu
Path: /pub/next/binaries/formatter_1.2.tar.Z (binary file)

To obtain formatter_1.2.tar.Z via E-mail based file server:
Send mail to: archive-server@cc.purdue.edu
with the subject line,
Subject: send next/1.0-release/binaries formatter_1.2.tar.Z
[                                      ^-- Not a typo. SPACE here.]

Body of the message can be empty.  You will receive the file
uuencoded.  Size of the program after uuencoding is about 34kbytes,
thus there shouldn't be any problem for it to go through various
gateways.  If you have trouble with the e-mail server,
or want to obtain further information on the Purdue e-mail archive
server, send mail to the same address with,
Subject: help


If you cannot obtain "formatter" from these sites, you can still
perform low-level format with a NeXT supplied program "sdform".
However, "sdform" cannot change the block size from 512 to
1024 bytes/sector, and therefore cannot increase the capacity for
M2263SA.  For locking out bad sectors, "sdform" should
be satisfactory.
Use "sdform" as follows (as user "root"):

localhost# /usr/etc/sdform /dev/rsd0a
(This also takes 20-30 minutes.  Do not interrupt once started.)


###### Release 2.0 Note ####################################################
Skip steps [4] and [5] if you have OS Release 2.0, and want to use the
whole disk as one partition.  No modification to /etc/disktab is needed.
Steps [4] and [5] are relevant only if one the following applies:
(a) Your OS release is still 1.0 or 1.0a.
(b) OS is 2.0, but you need to partition the disk into multiple filesystems.
############################################################################

[4] Add the following entry to the end of "/etc/disktab".

	If the parameters shown by "scsimodes" are different
	from those above, you cannot use the entry below.
	If you want the modified disktab to appear also in
	the SCSI disk's /etc/disktab after BuildDisk, copy
	/etc/disktab to /usr/template/client/etc/disktab, too.
	( BuildDisk will copy /usr/template/client/etc/* onto a
	newly built disk as /private/etc/* )

	Be sure to make backup copies of the unmodified disktab
	in each directory.  Write permission may have to be set
	to edit these files.

----- cut here and append to /etc/disktab -----------------------------------
# FUJITSU M2263SA disktab
# FUJITSU M2263S-512 with 3 spare sectors/cylinder and 512 byte sectors
# localhost# scsimodes /dev/rsd0a
# SCSI information for /dev/rsd0a
# Drive type: FUJITSU M2263S-512
# 512 bytes per sector
# 53 sectors per track
# 15 tracks per cylinder
# 1658 cylinder per volume (including spare cylinders)
# 3 spare sectors per cylinder
# 15 alternate tracks per volume
# 1312343 usable sectors on volume
#
# This disktab entry from: majka@cs.ubc.ca (Marc Majka)
# Organization: UBC Department of Computer Science, Vancouver, B.C., Canada
# Fujitsu M2263S 671MB 5.25" drive with 512 byte sectors
# M2263S - One partition
M2263S-512-ALL|Fujitsu 671MB w/512 byte sectors as 1 partition:\
	:ty=fixed_rw_scsi:nc#1658:nt#15:ns#53:ss#1024:rm#3600:\
	:fp#160:bp#0:ng#0:gs#0:ga#0:ao#0:\
	:os=sdmach:z0#32:z1#96:ro=a:\
	:pa#0:sa#655875:ba#8192:fa#1024:ca#32:da#4096:ra#10:oa=time:\
		:ia:ta=4.3BSD:
# M2263S - Two partitions
M2263S-512|FUJITSU M2263S-512|Fujitsu 671MB w/512 byte sectors:\
	:ty=fixed_rw_scsi:nc#1658:nt#15:ns#53:ss#1024:rm#3600:\
	:fp#160:bp#0:ng#0:gs#0:ga#0:ao#0:\
	:os=sdmach:z0#32:z1#96:ro=a:\
	:pa#0:sa#250425:ba#8192:fa#1024:ca#32:da#4096:ra#10:oa=time:\
		:ia:ta=4.3BSD:\
	:pb#250425:sb#405450:bb#8192:fb#1024:cb#32:db#8192:rb#10:ob=time:\
		:ib:tb=4.3BSD:
#
# FUJITSU M2263SB disktab, or for M2263Sx after running "formatter".
# localhost# scsimodes /dev/rsd0a
# SCSI information for /dev/rsd0a
# Drive type: FUJITSU M2263S-1024
# 1024 bytes per sector
# 28 sectors per track
# 15 tracks per cylinder
# 1658 cylinder per volume (including spare cylinders)
# 3 spare sectors per cylinder
# 15 alternate tracks per volume
# 690968 usable sectors on volume
#
# Generated by "formatter v1.2" by Rory Bolt after low-level formatting.
# FUJITSU M2263S-1024
M2263S-1024|FUJITSU M2263S-1024|FUJITSU M2263S-1024 w/1024 byte sectors as 1 partition:\
	:ty=fixed_rw_scsi:nc#1658:nt#15:ns#28:ss#1024:rm#3600:\
	:fp#160:bp#0:ng#0:gs#0:ga#0:ao#0:\
	:os=sdmach:z0#32:z1#96:r0=a:\
	:pa#0:sa#690809:ba#8192:fa#1024:ca#32:da#4096:ra#10:oa=time:\
		:ia:ta=4.3BSD:
#
------ cut here --- end of disktab for M2263S --------------------------------


[5] Check if the modified /etc/disktab is valid by;

localhost# disk /dev/rsd0a
disk name: FUJITSU M2263S-512 (or -1024)
disk type: fixed_rw_scsi
Disk utility
disk> quit		(quit this program)
localhost#

	If the "disk" command does not recognize the drive, you have
	made a mistake in adding the disktab entry in step [4].
	Check /etc/disktab again.
	

[6] Launch "BuildDisk", select HARD DISK and run it.
	This takes upto one hour.  If, for some reason, BuildDisk
	app does not work, try a command line version from Terminal.

	localhost# builddisk sd0

	This command is a shell script.  Look at /usr/etc/builddisk
	if you want to find out exactly what it does.  You can also give
	a customized /etc/BLD.* script as an option to this command.

[7] If you are using the first disktab entry (the whole disk
	as one large partition) or if you didn't put a disktab entry
	because your OS is 2.0, you must edit "/etc/fstab" on the
	SCSI disk before you attempt to boot from it.
	After builddisk, "/etc/fstab" for some reason contains 2
	partitions "sd0a", and "sd0b", the latter of which of course
	does not exist.  Because of this, booting will fail and the
	system will come up in single-user mode in a dumb console
	window.  If you are using the second entry (for two partions),
	you don't have to modify /etc/fstab.  So, skip this step.

	mount /dev/sd0a /mnt
	chmod 644 /mnt/etc/fstab

	... Edit /mnt/etc/fstab, and comment out or remove the line:
	    /dev/sd0b /clients 4.3 rw,noquota 0 2	

	umount /dev/sd0a


[8] Shutdown and boot from the SCSI disk.
	Type 'halt', and you will be left in the ROM Monitor.
	Type 'bsd' at the ROM Monitor prompt.
	If the ROM monitor complains:

	SCSI unexpeced msg:1
	sc: Unexpected msg
	.... repeated many times...

	Then, you must have not set the jumpers correctly in step [1](b).

	Once you confirm that the new disk is working, change the default
	boot device to hard disk using Preferences app (Power button panel).

===========================================================================
Additional information of interest

[9] Transfer Rate

(This was done with 68030 cube under OS Release 1.0a. before low-level
formatting by Rory Bolt's "formatter.")

localhost# disk /dev/rsd0a
disk name: FUJITSU M2263S-512
disk type: fixed_rw_scsi
Disk utility

disk> read
starting block? 0
# sectors per transfer? 16
number of transfers? 1000
sector increment? 16
16384000 bytes in 21243 ms = 771374 bytes/s
disk> read
starting block? 0
# sectors per transfer? 16
number of transfers? 1000
sector increment? 16
16384000 bytes in 21242 ms = 771374 bytes/s


For comparison, according to Ronald Antony & Axel Merk (the authors of
"TheFormatter" for Wren drives), CDC Wren VI (CDC 94191-15) gives

520000 - 560000 bytes/sec for 512 bytes/sector drive without cache, and
900000 - 980000 bytes/sec with on-drive cache.


[10] Seek Noise

The Fujitsu drive is quite a bit noisy during seeks.
It's not as bad as the OD drive as I said in the old note.
You will certainly hear seek noise every time you receive a mail,
when a File Viewer opens a directory or when someone does an rlogin, etc.
By comparison, Maxtor XT-8760S, the NeXT's official 660MB drive,
is dead quiet.  Perhaps, the drive may not be suitable if you need a
really quiet environment.
But the 5-year manufacturer warranty is, for me, quite soothing :-)

I don't know how Fujitsu compares with CDC Wren drives with respect to
seek noise.

[11] As always, use the information above at your own risk.  I am
	not responsible for any damage to the SCSI drive or to the
	NeXT cube itself (voiding the warranty) caused directly 
	or indirectly by the use of the information provided above.

Izumi Ohzawa, izumi@violet.berkeley.edu (standard mail)
	      izumi@pinoko.berkeley.edu (NeXTmail)

Izumi Ohzawa             [ $@Bg_78^=;(J ]
USMail: University of California, 360 Minor Hall, Berkeley, CA 94720
Telephone: (415) 642-6440             Fax:  (415) 642-3323
Internet: izumi@violet.berkeley.edu   NeXTmail: izumi@pinoko.berkeley.edu