Return to BSD News archive
Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uniwa!cujo!cc.curtin.edu.au!nmurrayr
From: nmurrayr@cc.curtin.edu.au (Ron Murray)
Subject: HELP.. Disklabel, Disktab, newfs problems
Message-ID: <1992Nov1.195837.1@cc.curtin.edu.au>
Lines: 79
Sender: news@cujo.curtin.edu.au (News Manager)
Organization: Curtin University of Technology
Date: Sun, 1 Nov 1992 10:58:37 GMT
Help! I have ground to a halt with problems in making and mounting
a second SCSI drive. I am a unix newbie so it's probably me.
Here is an extract from disktab
priam1|Priam 738 (204): \
:ns#32:nt#64:nc#311: \
:ty=winchester:dt=SCSI: \
:pa#561152:oa#0:ba#8192:fa#1024:ta=4.2BSD: \
:pb#65536:ob#561152:tb=swap: \
:pc#636928:oc#0: \
:pd#10240:od#626688:bd#8192:fd#1024:td=4.2BSD:
Put the label in place
memtel # disklabel -r -w as1 priam1
# /dev/ras1d:
type: SCSI
disk: priam1
label:
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 311
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # milliseconds
track-to-track seek: 0 # milliseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg]
a: 561152 0 4.2BSD 1024 8192 0 # (Cyl. 0 - 273)
b: 65536 561152 swap # (Cyl. 274 - 305)
c: 636928 0 unused 0 0 # (Cyl. 0 - 310)
d: 10240 626688 4.2BSD 1024 8192 0 # (Cyl. 306 - 310)
memtel # newfs /dev/ras1a
memtel # newfs /dev/ras1d
memtel # df
Filesystem 512-blks used avail capacity Mounted on
/dev/as0a 625246 390924 171796 69% /
memtel # mount /dev/as1a /u
memtel # mount /dev/as1d /v
memtel # df
Filesystem 512-blks used avail capacity Mounted on
/dev/as0a 625246 390924 171796 69% /
/dev/as1a 9214 2 8290 0% /u
/dev/as1d 9214 2 8290 0% /v
See how I always get whatever partition I last newfsed? If I
create a file on /u I can read it on /v. And when I go look for
a file I created on as1d I find it at the beginning of the drive
- not down the back end where it should be.
One more clue. If I change disktab to have 300000 size as1d with
an offset of 626688, newfs completes quite happily whereas it
should run off the end of the drive.
While I have the floor can I put in a plea to anyone writing a
book on 386BSD to put in lots of examples. The formal syntax
of a command might be fine for oldtimers but leaves too much
to guesswork for a newcomer. Thank you.
Any help on the above problem will be much appreciated.
Thanks,
.....Ron
--
***
Ron Murray
Internet: nmurrayr@cc.curtin.edu.au
Are we having fun yet? -- Garfield