Date: Mon, 14 Nov 2005 08:48:53 -0500 From: Scott Ullrich <sullrich@gmail.com> To: Deomid Ryabkov <myself@rojer.pp.ru> Cc: Chris Pressey <cpressey@catseye.mine.nu>, geom@freebsd.org, Dario Freni <saturnero@freesbie.org>, current@freebsd.org, "Simon L. Nielsen" <simon@freebsd.org> Subject: Re: fdisk(8) no longer capable of altering geometry Message-ID: <d5992baf0511140548s366c0c04pb8035c1e8785b3c1@mail.gmail.com> In-Reply-To: <43785A97.3010204@rojer.pp.ru> References: <20051027200448.1ba236fe.cpressey@catseye.mine.nu> <43753528.7030802@freesbie.org> <20051114091911.GD64196@eddie.nitro.dk> <43785A97.3010204@rojer.pp.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
We are not using sysinstall. We are in the process of porting BSD Installer which uses fdisk. On 11/14/05, Deomid Ryabkov <myself@rojer.pp.ru> wrote: > Simon L. Nielsen wrote: > > On 2005.11.12 01:19:52 +0100, Dario Freni wrote: > > > >> My little follow-up to this issue. This bug is quite critical on > >> products using bsdinstaller such as FreeSBIE or pfSense. I heard rumou= rs > >> that PC-BSD also encounter this problem and had to workaround it by > >> sysinstall. > >> > >> Can somebody please take a look at it? > >> > > > > Just curious... why do you need to alter the geometry? I never once > > had a problem just ignoring the fact that fdisk/sysinstall warned > > about geometry... > > > sysinstall warns and fixes it for you. i had to duplicate sysinstall's > behavior in my home-made quick'n'dirty installer > or otherwise disks larger than (some size, like 60G, i don't remember > exactly) are not bootable after install. > the fixup, rewritten in perl, looks like this: > > print "geom: cyl=3D$cyl, hd=3D$hd, sect=3D$sect\n"; > if ($cyl > 1024 or $hd > 16 or $sect > 63) { > $hd =3D 16; $sect =3D 63; > $cyl =3D int ($size / ($hd * $sect)); > if ($cyl > 1024) { > $hd =3D 255; > $cyl =3D int ($size / ($hd * $sect)); > } > print "new geom: cyl=3D$cyl, hd=3D$hd, sect=3D$sect\n"; > @ret =3D ($cyl, $hd, $sect); > } > > i don't know the exact meaning of ths, but it is indeed required to be > able to boot off the disk. > > -- > Deomid Ryabkov aka Rojer > myself@rojer.pp.ru > rojer@sysadmins.ru > ICQ: 8025844 > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d5992baf0511140548s366c0c04pb8035c1e8785b3c1>