From owner-freebsd-questions Tue Nov 30 6:25:50 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fw.intechsoft.net (okcds1-blk1-hfc-0251-d1db0faa.rdc1.ok.coxatwork.com [209.219.15.170]) by hub.freebsd.org (Postfix) with ESMTP id 576E0158AE for ; Tue, 30 Nov 1999 06:25:47 -0800 (PST) (envelope-from internal@intechsoft.net) Received: from wkbruce ([192.168.1.12]) by fw.intechsoft.net (8.9.3/8.9.3) with SMTP id IAA04731 for ; Tue, 30 Nov 1999 08:25:46 -0600 (CST) (envelope-from internal@intechsoft.net) Message-ID: <004601bf3b3e$cb024d00$0c01a8c0@wkbruce> From: "Bruce DeVault" To: Subject: re: adding a large hard drive post-install Date: Tue, 30 Nov 1999 08:25:46 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0043_01BF3B0C.7FF3BE70" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_0043_01BF3B0C.7FF3BE70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > What about=20 >=20 > sh /dev/MAKEDEV wd2 > dd if=3D/dev/zero of=3D/dev/rwd2 count=3D1000 > disklabel -e wd2 >=20 > in vi yy p so that=20 > c: 8405712 0 unused 0 0 # (Cyl. 0 - > 1778*) > e: 8405712 0 4.2BSD 0 0 # (Cyl. 0 - > 1778*) >=20 > newfs /dev/rwd2e su-2.03# sh /dev/MAKEDEV wd2 su-2.03# dd if=3D/dev/zero of=3D/dev/rwd2 count=3D1000 1000+0 records in 1000+0 records out 512000 bytes transferred in 0.257836 secs (1985759 bytes/sec) su-2.03# disklabel -e wd2 disklabel: ioctl DIOCGDINFO: Invalid argument su-2.03# fdisk wd2 ******* Working on device /dev/rwd2 ******* parameters extracted from in-core disklabel are: cylinders=3D66305 heads=3D16 sectors/track=3D63 (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=3D66305 heads=3D16 sectors/track=3D63 (1008 blks/cyl) fdisk: invalid fdisk partition table found Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 1, size 66835439 (32634 Meg), flag 80 (active) beg: cyl 0/ sector 2/ head 0; end: cyl 768/ sector 63/ head 15 su-2.03# disklabel wd2 disklabel: ioctl DIOCGDINFO: Invalid argument su-2.03# help... :) ------=_NextPart_000_0043_01BF3B0C.7FF3BE70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
> What about
>
> sh = /dev/MAKEDEV=20 wd2
> dd if=3D/dev/zero of=3D/dev/rwd2 count=3D1000
> = disklabel -e=20 wd2
>
> in vi yy p so that
>  c: =20 8405712        0   =20 unused        = 0    =20 0         # = (Cyl.    0=20 -
> 1778*)
>  e: =20 8405712        0   =20 4.2BSD        = 0    =20 0         # = (Cyl.    0=20 -
> 1778*)
>
> newfs /dev/rwd2e

su-2.03# sh=20 /dev/MAKEDEV wd2
su-2.03# dd if=3D/dev/zero of=3D/dev/rwd2 = count=3D1000
1000+0=20 records in
1000+0 records out
512000 bytes transferred in 0.257836 = secs=20 (1985759 bytes/sec)
su-2.03# disklabel -e wd2
disklabel: ioctl = DIOCGDINFO:=20 Invalid argument
su-2.03# fdisk wd2
******* Working on device = /dev/rwd2=20 *******
parameters extracted from in-core disklabel = are:
cylinders=3D66305=20 heads=3D16 sectors/track=3D63 (1008 blks/cyl)

Figures below won't = work with=20 BIOS for partitions not in cyl 1
parameters to be used for BIOS = calculations=20 are:
cylinders=3D66305 heads=3D16 sectors/track=3D63 (1008 = blks/cyl)

fdisk:=20 invalid fdisk partition table found
Media sector size is = 512
Warning: BIOS=20 sector numbering starts with sector 1
Information from DOS bootblock=20 is:
The data for partition 1 is:
<UNUSED>
The data for = partition=20 2 is:
<UNUSED>
The data for partition 3 = is:
<UNUSED>
The=20 data for partition 4 is:
sysid=20 165,(FreeBSD/NetBSD/386BSD)
    start 1, size 66835439 = (32634=20 Meg), flag 80 (active)
        = beg: cyl 0/=20 sector 2/ head 0;
        end: cyl = 768/=20 sector 63/ head 15
su-2.03# disklabel wd2
disklabel: ioctl = DIOCGDINFO:=20 Invalid argument
su-2.03#

help...=20 :)

------=_NextPart_000_0043_01BF3B0C.7FF3BE70-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message