Subject: Misc FAQ Update: Zip/100 & Sparc
To: None <port-sparc@netbsd.org>
From: Brian A. Seklecki <lavalamp@BurghCom.Com>
List: port-sparc
Date: 11/07/2000 06:39:28
Re: http://www.netbsd.org/Documentation/misc/

To get my Zip disk working in 1.4.2/sparc, I had to do the following:

Appears in DMESG:

lavalamp@regret:/home/lavalamp$ dmesg | grep -i sd1
sd1 at scsibus0 targ 5 lun 0: <IOMEGA, ZIP 100, J.03> SCSI2 0/direct
removable
sd1: 96MB, 96 cyl, 64 head, 32 sec, 512 bytes/sect x 196608 sectors
sd1: no disk label

The initial disklabel looked like so:

# disklabel /dev/rsd1
[...]
type: SCSI
disk: ZIP 100
label: fictitious
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 96
total sectors: 196608
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

3 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  c:   196608        0     unused        0     0         # (Cyl.    0 -
95)

---

This simply needed changed (disklabel -e /dev/rsd1) to:

3 partitions:
#        size   offset     fstype   [fsize bsize   cpg]
  c:   196608        0     4.2BSD     1024  8192    16   # (Cyl.    0 -
95)

---

I did not need to create an "h" partition.  After this, a standard newfs
and the file system was mountable:

root@regret:/# newfs /dev/rsd1c
/dev/rsd1c:     196608 sectors in 96 cylinders of 64 tracks, 32 sectors
        96.0MB in 6 cyl groups (16 c/g, 16.00MB/g, 3968 i/g)
super-block backups (for fsck -b #) at:
 32, 32832, 65632, 98432, 131232, 164032,

root@regret:/# mount /dev/sd1c /mnt
root@regret:/# df -k | grep -i mnt
/dev/sd1c       95215        1    90453     0%    /mnt


Thanks,
-Brian