Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 1999 08:25:46 -0600
From:      "Bruce DeVault" <internal@intechsoft.net>
To:        <freebsd-questions@freebsd.org>
Subject:   re: adding a large hard drive post-install
Message-ID:  <004601bf3b3e$cb024d00$0c01a8c0@wkbruce>

next in thread | raw e-mail | index | archive | help
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:
<UNUSED>
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>&gt; What about <BR>&gt; <BR>&gt; sh =
/dev/MAKEDEV=20
wd2<BR>&gt; dd if=3D/dev/zero of=3D/dev/rwd2 count=3D1000<BR>&gt; =
disklabel -e=20
wd2<BR>&gt; <BR>&gt; in vi yy p so that <BR>&gt;&nbsp; c:&nbsp;=20
8405712&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;=20
unused&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
0&nbsp;&nbsp;&nbsp;&nbsp;=20
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # =
(Cyl.&nbsp;&nbsp;&nbsp; 0=20
-<BR>&gt; 1778*)<BR>&gt;&nbsp; e:&nbsp;=20
8405712&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;=20
4.2BSD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
0&nbsp;&nbsp;&nbsp;&nbsp;=20
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # =
(Cyl.&nbsp;&nbsp;&nbsp; 0=20
-<BR>&gt; 1778*)<BR>&gt; <BR>&gt; newfs /dev/rwd2e<BR><BR>su-2.03# sh=20
/dev/MAKEDEV wd2<BR>su-2.03# dd if=3D/dev/zero of=3D/dev/rwd2 =
count=3D1000<BR>1000+0=20
records in<BR>1000+0 records out<BR>512000 bytes transferred in 0.257836 =
secs=20
(1985759 bytes/sec)<BR>su-2.03# disklabel -e wd2<BR>disklabel: ioctl =
DIOCGDINFO:=20
Invalid argument<BR>su-2.03# fdisk wd2<BR>******* Working on device =
/dev/rwd2=20
*******<BR>parameters extracted from in-core disklabel =
are:<BR>cylinders=3D66305=20
heads=3D16 sectors/track=3D63 (1008 blks/cyl)<BR><BR>Figures below won't =
work with=20
BIOS for partitions not in cyl 1<BR>parameters to be used for BIOS =
calculations=20
are:<BR>cylinders=3D66305 heads=3D16 sectors/track=3D63 (1008 =
blks/cyl)<BR><BR>fdisk:=20
invalid fdisk partition table found<BR>Media sector size is =
512<BR>Warning: BIOS=20
sector numbering starts with sector 1<BR>Information from DOS bootblock=20
is:<BR>The data for partition 1 is:<BR>&lt;UNUSED&gt;<BR>The data for =
partition=20
2 is:<BR>&lt;UNUSED&gt;<BR>The data for partition 3 =
is:<BR>&lt;UNUSED&gt;<BR>The=20
data for partition 4 is:<BR>sysid=20
165,(FreeBSD/NetBSD/386BSD)<BR>&nbsp;&nbsp;&nbsp; start 1, size 66835439 =
(32634=20
Meg), flag 80 (active)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
beg: cyl 0/=20
sector 2/ head 0;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end: cyl =
768/=20
sector 63/ head 15<BR>su-2.03# disklabel wd2<BR>disklabel: ioctl =
DIOCGDINFO:=20
Invalid argument<BR>su-2.03#<BR><BR>help...=20
:)<BR><BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_0043_01BF3B0C.7FF3BE70--



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004601bf3b3e$cb024d00$0c01a8c0>