Subject: Re: newfs
To: Marc Boschma <marcb@bms.itg.telstra.com.au>
From: Tom Javen <tom@instmel.fi>
List: port-pc532
Date: 12/03/1996 11:14:02
On Mon, 2 Dec 1996, Marc Boschma wrote:

> Can you dd to the last block of the disk ? I'm just wondering if you have
> labeled the disk with one to many clynders/blocks etc ?
> 
> I'd try re-disklabeling the disk with one less in either the cylinders etc.
> 
> Another way to know, is are you newfsing at the end of the disk ?
No, it fails on all partitions.

NetBSD 1.2 (DEFAULT) #0: Tue Sep 17 00:07:47 PDT 1996
    phil@steelhead:/usr/src/sys/arch/pc532/compile/DEFAULT
real mem  = 8388608
avail mem = 6959104
using 128 buffers containing 524288 bytes of memory
membus0 (root)
scn0 at membus0 addr 0xffc80000
scn1 at membus0 addr 0xffc80008
scn2 at membus0 addr 0xffc80010
scn3 at membus0 addr 0xffc80018
scn4 at membus0 addr 0xffc80020
scn5 at membus0 addr 0xffc80028
ncr0 at membus0 addr 0xffd00000, irq 4
scsibus0 at ncr0
sd0 at scsibus0 targ 0 lun 0: <NEC, D3861, 0013> SCSI1 0/direct fixed
sd0: 109MB, 915 cyl, 7 head, 35 sec, 512 bytes/sec
sd1 at scsibus0 targ 1 lun 0: <MICROP, 1684-07MB1036511, AS0C> SCSI1 
0/direct fixed
sd1: 323MB, 1780 cyl, 7 head, 53 sec, 512 bytes/sec
zero=fffcd5eb, bio=ffff0010, net=ffff0000, tty=ffff2a00, clock=ffff0004, 
imp=ffff2a10
changing root device to sd0a


My label:

# /dev/rsd1c:
type: SCSI
disk: MicropolisM1684
label: 
flags:
bytes/sector: 512
sectors/track: 53
tracks/cylinder: 7
sectors/cylinder: 371
cylinders: 1780
total sectors: 660380
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

7 partitions:
#        size   offset    fstype   [fsize bsize   cpg]
  a:    99428    37100    4.2BSD     1024  8192     0   # (Cyl.  100 - 367)
  b:    36358      742      swap                        # (Cyl.    2 - 99)
  c:   660380        0    unused        0     0         # (Cyl.    0 - 1779)
  d:      740        2      boot                        # (Cyl.    0*- 1*)
  e:   199598   136528    4.2BSD     1024  8192     0   # (Cyl.  368 - 905)
  f:   199598   336126    4.2BSD     1024  8192     0   # (Cyl.  906 - 1443)
  g:   124656   535724    4.2BSD     1024  8192     0   # (Cyl. 1444 - 1779)
pc532# 
pc532# dd if=/dev/zero of=/dev/sd1a bs=512
dd: /dev/sd1a: end of device
39080+0 records in
39079+0 records out
20008448 bytes transferred in 136 secs (147120 bytes/sec)
pc532# dd if=/dev/sd1a of=/dev/null bs=512
dd: /dev/sd1a: Invalid argument
99440+0 records in
99440+0 records out
50913280 bytes transferred in 95 secs (535929 bytes/sec)
pc532#
pc532# dd if=/dev/rsd1a of=/dev/null bs=512
99428+0 records in
99428+0 records out
50907136 bytes transferred in 346 secs (147130 bytes/sec)
pc532#
pc532# dd if=/dev/zero of=/dev/rsd1a bs=512
dd: /dev/rsd1a: end of device
1+0 records in
0+0 records out
0 bytes transferred in 1 secs (0 bytes/sec)
pc532#
pc532# newfs sd1a
write error: 99427
wtfs: Undefined error: 0
pc532# 


I had no problem adding a second drive (nec 109Mb) when running version
1.1. The drive should be a working one (taken from a dos box)

Tom


-- 
Tom Javen                        phone +358-2-212500
Instmel Oy                       fax   +358-2-4691929
Asianajajankatu 2                email tom@instmel.fi
FIN-20780 Kaarina
Finland