Subject: Re: [Q] newfs problem: Device not configured
To: None <migi@zuo.dec.com>
From: Luke Mewburn <lukem@supp.cpr.itg.telecom.com.au>
List: port-alpha
Date: 02/28/1996 10:44:10
> Hello,
> 
> I'm trying to setup a rz26l disk, so that I can dump/restore the actual
> root and usr filesystem there and then boot from this disk.
> My system disk now is sd1, the new system disk will be sd2...
> 
> the disktab entry for the rz26l looks like this:
> rz26l|RZ26L|DEC RZ26L Winchester:\
>         :ty=winchester:dt=SCSI:ns#57:nt#14:nc#2570:\
>         :oa#0:pa#131072:ba#8192:fa#1024:\
>         :ob#131072:pb#262144:bb#8192:fb#1024:\
>         :oc#0:pc#2050860:bc#8192:fc#1024:\
>         :od#393216:pd#552548:bd#8192:fd#1024:\
>         :oe#945764:pe#552548:be#8192:fe#1024:\
>         :of#1498312:pf#552548:bf#8192:ff#1024:\
>         :og#393216:pg#819200:bg#8192:fg#1024:\
>         :oh#1212416:ph#838444:bh#8192:fh#1024:
> 
> 
> the disklabel for sd2:
> # /dev/rsd2c:
> type: SCSI
> disk: rz26l
> label: 
> flags:
> bytes/sector: 512
> sectors/track: 57
> tracks/cylinder: 14
> sectors/cylinder: 798
> cylinders: 2570
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0           # milliseconds
> track-to-track seek: 0  # milliseconds
> drivedata: 0 
> 
> 8 partitions:
> #        size   offset    fstype   [fsize bsize   cpg]
>   a:   131072        0    unused     1024  8192         # (Cyl.    0 - 164*)
>   b:   262144   131072    unused     1024  8192         # (Cyl.  164*- 492*)
>   c:  2050860        0    unused     1024  8192         # (Cyl.    0 - 2569)
>   d:   552548   393216    unused     1024  8192         # (Cyl.  492*- 1185*)
>   e:   552548   945764    unused     1024  8192         # (Cyl. 1185*- 1877*)
>   f:   552548  1498312    unused     1024  8192         # (Cyl. 1877*- 2569*)
>   g:  1657644   393216    unused     1024  8192         # (Cyl.  492*- 2569*)
>   h:   838444  1212416    unused     1024  8192         # (Cyl. 1519*- 2569*)
> 
> 
> Now, each time I try to newfs /dev/rsd2a I get "Device not configured"
> 
> What is it, I'm doing wrong ?


Two things:
- you need to set the fstype as '4.2BSD', and set the cpg field to '16'
  (the latter can be overridden by the -c option to newfs)

- The '*' after the cylinder start/end values in the comment is
  because your partitions aren't on cylinder boundaries. I suggest
  that you make your partition sizes multiples of '798' (sec/cyl).
  My usual method of doing this is:
	round(part_size_in_MB * 2048 / sec_per_cyl) * sec_cyl
  So, sd0a would be either 130872 long
  The reason for doing this is for a) performance, and b) some systems
  don't like swapping onto swap partitions that aren't on cylinder
  boundaries.

Luke.

--
Luke Mewburn <luke.mewburn@itg.telstra.com.au>

    Don't steal. The Government (and the Banks) hate competition.  - (anon)