Re: GEOM gets whole disk geometry for slice (instead of slice geometry)

2002-11-02 Thread Andrey A. Chernov
On Sun, Oct 27, 2002 at 03:37:47 +0300, Andrey A. Chernov wrote:
 I have disk shared between FreeBSD and M$ Win, two slices, and got 
 incorrect disklabel with GEOM kernel. Namely cylinders and 
 sectors/unit fields are from _whole_ disk, not from just requested 
 slice. 

Just found more brokeness: 'disklabel -r ad0s1' and 'disklabel ad0s1'
shows different results, for -r case 63 added to offset field of all a,
b and c partitions.

BTW, is there is a way to turn GEOM off, something like NOGEOM kernel 
option? I want my old good disklabel back.

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: GEOM gets whole disk geometry for slice (instead of slice geometry)

2002-11-02 Thread Hiten Pandya
On Sat, Nov 02, 2002 at 04:37:16PM +0300, Andrey A. Chernov wrote the words in effect 
of:
 On Sun, Oct 27, 2002 at 03:37:47 +0300, Andrey A. Chernov wrote:
  I have disk shared between FreeBSD and M$ Win, two slices, and got 
  incorrect disklabel with GEOM kernel. Namely cylinders and 
  sectors/unit fields are from _whole_ disk, not from just requested 
  slice. 
 
 Just found more brokeness: 'disklabel -r ad0s1' and 'disklabel ad0s1'
 shows different results, for -r case 63 added to offset field of all a,
 b and c partitions.
 
 BTW, is there is a way to turn GEOM off, something like NOGEOM kernel 
 option? I want my old good disklabel back.
 

I think it is NO_GEOM, but I am not sure, grep'ing for NO_GEOM does not
come up with anything though, but give it a try.

Cheers.

-- 
Hiten Pandya
[EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



Re: GEOM gets whole disk geometry for slice (instead of slice geometry)

2002-10-27 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Andrey A. Chernov writes:
I have disk shared between FreeBSD and M$ Win, two slices, and got 
incorrect disklabel with GEOM kernel. Namely cylinders and 
sectors/unit fields are from _whole_ disk, not from just requested 
slice. 

Please send me output of:

dd if=/dev/ad0 bs=1k count=64 | uuencode ache.ad0

-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message



GEOM gets whole disk geometry for slice (instead of slice geometry)

2002-10-26 Thread Andrey A. Chernov
I have disk shared between FreeBSD and M$ Win, two slices, and got 
incorrect disklabel with GEOM kernel. Namely cylinders and 
sectors/unit fields are from _whole_ disk, not from just requested 
slice. 

It invalidates previously correct 'c' BSD partition too, 'disklabel' 
outputs several warnings about it. I am not familiar with GEOM. In which 
place it senses cylinders and secs/unit? Does anyone saw the same problem 
too?

Specific info attached below. Look at the wrong fields in disklabel. They
even can't be corrected using 'disklabel -e'.

--
fdisk: can't get disk parameters on /dev/ad0; supplying dummy ones
*** Working on device /dev/ad0 ***
parameters extracted from in-core disklabel are:
cylinders=89355 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=89355 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 63, size 12514572 (6110 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 778/ head 254/ sector 63
The data for partition 2 is:
sysid 7 (0x07),(OS/2 HPFS, NTFS, QNX-2 (16 bit) or Advanced UNIX)
start 12514698, size 77545692 (37864 Meg), flag 0
beg: cyl 779/ head 1/ sector 1;
end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
UNUSED
The data for partition 4 is:
UNUSED
--
# /dev/ad0s1c:
type: ESDI
disk: ad0s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 5606
^^^ must be 778 (or 779?)
sectors/unit: 90069840
^^^ must be 12514572
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a: 11900172   6144004.2BSD 2048 1638464   # (Cyl.   38*- 
778*)
  b:   6144000  swap# (Cyl.0 - 
38*)
  c: 125145720unused0 0 # (Cyl.0 - 
778*)

-- 
Andrey A. Chernov
http://ache.pp.ru/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-current in the body of the message