Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Apr 1995 18:23:48 -0700 (PDT)
From:      "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
To:        roberto@blaise.ibp.fr
Cc:        freebsd-current@FreeBSD.org, bde@zeta.org.au
Subject:   Re: Label/slices : how to add a disk ?
Message-ID:  <199504060123.SAA01996@gndrsh.aac.dev.com>
In-Reply-To: <199504060112.DAA00365@keltia.frmug.fr.net> from "Ollivier Robert" at Apr 6, 95 03:12:48 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Hello,
> 
> I have another problem with the slicing code...
> 
> I just got a brand new disk, Conner CFP1080S, geometry reported by boot -v
> is (3659/6/96). The standard translation would give me 1030/64/32.
> 
> I've been unable to even put a label on it :-(
> 
> Probe messages :
> 
> Apr  6 02:44:26 keltia /kernel: (bt0:2:0): "CONNER CFP1080S 3939" is a type 0 fixed SCSI 2
> Apr  6 02:44:26 keltia /kernel: sd2(bt0:2:0): Direct-Access 1030MB (2110812 512 byte sectors)
> 
> fdisk cannot get the correct geometry for it :
> 
> fdisk /dev/sd2
> ******* Working on device /dev/sd2 *******
> parameters extracted from in-core disklabel are:
> cylinders=3658 heads=64 sectors/track=32 (2048 blks/cyl)
>           ^^^^      ^^^^             ^^^
>           good      wrong            wrong

Nope, use the override what the BIOS thinks and tell it
cyliders=1030, heads=64, sectors/track=32.

>  Figures below won't work with BIOS for partitions not in cyl 1
> parameters to be used for BIOS calculations are:
> cylinders=3658 heads=64 sectors/track=32 (2048 blks/cyl)
> 
> Warning: BIOS sector numbering starts with sector 1
> Information from DOS bootblock is:
> The data for partition 0 is:
> <UNUSED>
> The data for partition 1 is:
> <UNUSED>
> The data for partition 2 is:
> <UNUSED>
> The data for partition 3 is:
> sysid 165,(FreeBSD/NetBSD/386BSD)
>     start 0, size 2097152 (1024 Meg), flag 80
> 	beg: cyl 0/ sector 0/ head 0;
                    ^^^^^^^^^

Redo the fdisk -u, override the calculation of beg/end.  Use
cyl 0, sect 1, head 0 for the beg.  The default caclulations screw
up and put 0 in for the starting sector :-(.

> 	end: cyl 1023/ sector 32/ head 63
> 
> fdisk /dev/rsd2c
...
rest is irrelevant until the above is fixed.


-- 
Rod Grimes                                      rgrimes@gndrsh.aac.dev.com
Accurate Automation Company                   Custom computers for FreeBSD



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