On Wed, Nov 20, 2002 at 09:19:01PM +0100, Poul-Henning Kamp
<[EMAIL PROTECTED]> wrote:

> This should fix a large part of the disklabel -e bogosity people
> have been seeing.
> 
> In message <[EMAIL PROTECTED]>, Poul-Henning Kamp
>  writes:
> >phk         2002/11/20 12:12:52 PST
> >
> >  Modified files:
> >    sys/geom             geom_slice.c 
> >  Log:
> >  Remember to update the providers idea of its size when we reconfigure
> >  a slice child.
> >  
> >  Approved by:    re
> >  
> >  Revision  Changes    Path
> >  1.27      +1 -0      src/sys/geom/geom_slice.c

root:vallo# ident /usr/src/sys/geom/geom_slice.c 
/usr/src/sys/geom/geom_slice.c:
     $FreeBSD: src/sys/geom/geom_slice.c,v 1.27 2002/11/20 20:12:52 phk Exp $
root:vallo# fdisk ad0
******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=39703 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=39703 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 16382961 (7999 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 1023/ head 15/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 16383024, size 16383024 (7999 Meg), flag 0
        beg: cyl 1023/ head 255/ sector 63;
        end: cyl 1023/ head 15/ sector 63
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
root:vallo# disklabel ad0s1
# /dev/ad0s1c:
type: ESDI
disk: ad0s1
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 39703
sectors/unit: 40020624
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 bps/cpg]
  a:   524288        0    4.2BSD     2048 16384 32776   # (Cyl.    0 - 520*)
  b:   524288   524288    unused        0     0         # (Cyl.  520*- 1040*)
  c: 16382961        0    unused        0     0         # (Cyl.    0 - 16252*)
  d: 15334385  1048576    4.2BSD     2048 16384 28552   # (Cyl. 1040*- 16252*)
Warning, partition c doesn't cover the whole unit!
Warning, An incorrect partition c may cause problems for standard system utilities
root:vallo# disklabel -r ad0s1
# /dev/ad0s1c:
type: ESDI
disk: ad0s1
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 39703
sectors/unit: 40020624
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 bps/cpg]
  a:   524288       63    4.2BSD     2048 16384 32776   # (Cyl.    0*- 520*)
  b:   524288   524351    unused        0     0         # (Cyl.  520*- 1040*)
  c: 16382961       63    unused        0     0         # (Cyl.    0*- 16252*)
  d: 15334385  1048639    4.2BSD     2048 16384 28552   # (Cyl. 1040*- 16252*)
Warning, partition c doesn't start at 0!
Warning, partition c doesn't cover the whole unit!
Warning, An incorrect partition c may cause problems for standard system utilities
root:vallo# 
-- 

Vallo Kallaste
[EMAIL PROTECTED]

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

Reply via email to