*BSD News Article 22250


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!aardvark.ucs.uoknor.edu!ns1.nodak.edu!netnews.nwnet.net!news.clark.edu!spool.mu.edu!howland.reston.ans.net!agate!remarque.berkeley.edu!shipley
Newsgroups: comp.os.386bsd.questions
Subject: Re: Overlap with "disklabel"
Message-ID: <29ckph$nb4@agate.berkeley.edu>
From: shipley@remarque.berkeley.edu (Pete Shipley)
Date: 11 Oct 1993 21:56:01 GMT
Reply-To: shipley@kizmiaz.tcs.com
References: <CEGKH1.EpD@acsu.buffalo.edu>
Organization: Processed People for a Processed America
Keywords: NetBSD
NNTP-Posting-Host: remarque.berkeley.edu
Lines: 47

In article <CEGKH1.EpD@acsu.buffalo.edu> rpk@niagara.edu (Richard P. Kernin) wri
tes:


> Greetings,


> It looks like cyl. 823 is allocated for both root and swap, but I'm new
>to BSD (but like it a lot ;) and cannot be sure.  Looking at the output
>from a "disklabel /dev/rwd0c" can anybody give me any suggestions?
> Thanks! for any/all input.

your size and offset do not happen on cylinder boundaries.

relevant info:

>sectors/cylinder: 255
> cylinders: 927

>#        size   offset    fstype   [fsize bsize   cpg]
>  a:   210000        0    4.2BSD     1024  8192    16 	# (Cyl.    0 - 823*)
>  b:    26385   210000      swap                    	# (Cyl.  823*- 926*)
>  c:   236385        0    unused        0     0       	# (Cyl.    0 - 926)
>  d:   236385        0    unused        0     0       	# (Cyl.    0 - 926)

 size % (sectors_cylinder) != 0

 21000 / 255 = 82.35294

mey I suggest a sizing of 209865 thus you disklabel will look somewhat like:

#        size   offset    fstype   [fsize bsize   cpg]
  a:   209865        0    4.2BSD     1024  8192    16   # (Cyl.    0 - 823)
  b:    26520   209865      swap                        # (Cyl.  824 - 926)

where:
   sizeof part a: = #Cyl * (sec/cyl) = 823 * 255 = 209865
and
   full_disk = cylinders * (sec/cyl) = 236385
   full_disk - sizeof part a: = remaining disk = 236385 - 209865 = 26520



-- 
Pete Shipley: 
email: shipley@berkeley.edu		Flames:  cimarron@miro.com
Spelling corections: /dev/null          Quote: "Anger is an energy"