Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Aug 2002 17:10:02 +0900
From:      Kazutoshi Kubota <yakk@willbe6.org>
To:        current@freebsd.org
Subject:   newfs is probably a bit strange
Message-ID:  <86d6saq9lx.wl@marlone.willbe6.org>

next in thread | raw e-mail | index | archive | help
Hello all,

My harddisk has four slices, and FreeBSD uses ad0s[234] on that disk.
The following is a partition layout on /dev/ad0s3:

# /dev/ad0s3c:
type: ESDI
disk: ad0s3
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 509
sectors/unit: 8177085
(snip)

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   262144        0    4.2BSD     1024  8192    16 	# (Cyl.    0 - 16*)
  c:  8177085        0    unused        0     0       	# (Cyl.    0 - 508)
  e:  1048576   262144    4.2BSD     1024  8192    16 	# (Cyl.   16*- 81*)
  f:  1048576  1310720    4.2BSD     1024  8192    16 	# (Cyl.   81*- 146*)
  g:  5817789  2359296    4.2BSD     1024  8192    16 	# (Cyl.  146*- 508*)


So, run 'newfs /dev/ad0s3e', then I get following results.

yakk@schia[02-08-23 16:36]% sudo newfs /dev/ad0s3e

/dev/ad0s3e: 512.0MB (1048576 sectors) block size 8192, fragment size 1024
	using 12 cylinder groups of 45.12MB, 5776 blks, 11584 inodes.
super-block backups (for fsck -b #) at:
 32, 92448, 184864, 277280, 369696, 462112, 554528, 646944, 739360, 831776,
 924192, 1016608

yakk@schia[02-08-23 16:36]% sudo disklabel ad0s3

# /dev/ad0s3c:
(snip)

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   262144        0    4.2BSD     1024  8192    16 	# (Cyl.    0 - 16*)
  c:  8177085        0    unused        0     0       	# (Cyl.    0 - 508)
  e:  1048576   262144    4.2BSD     1024  8192 46208 	# (Cyl.   16*- 81*)
  f:  1048576  1310720    4.2BSD     1024  8192    16 	# (Cyl.   81*- 146*)
  g:  5817789  2359296    4.2BSD     1024  8192    16 	# (Cyl.  146*- 508*)


It is a strange...  And I try 'newfs -c xx /dev/ad0s3e'.  Then
disklabel says:

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:   262144        0    4.2BSD     1024  8192    16 	# (Cyl.    0 - 16*)
  c:  8177085        0    unused        0     0       	# (Cyl.    0 - 508)
  e:  1048576   262144    4.2BSD     1024  8192   256 	# (Cyl.   16*- 81*)
  f:  1048576  1310720    4.2BSD     1024  8192    16 	# (Cyl.   81*- 146*)
  g:  5817789  2359296    4.2BSD     1024  8192    16 	# (Cyl.  146*- 508*)


It is taken same results that xx is between 1 and 256.  What is
happening?  Or what am I wrong?

Regards,
-----
Kazutoshi Kubota <yakk@willbe6.org>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86d6saq9lx.wl>