Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jan 2006 17:22:45 +0530
From:      Shantanoo Mahajan <shantanoo@gmail.com>
To:        serge <websnaker@newmail.ru>
Cc:        questions@freebsd.org
Subject:   Re: grub+freebsd
Message-ID:  <20060128115245.GA1786@ghar.dhoomketu.net.in>
In-Reply-To: <17243495.20060128155348@newmail.ru>
References:  <17243495.20060128155348@newmail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--KsGdsel6WgEHnImy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

+++ serge [freebsd] [28-01-06 15:53 +0300]:
| Hi
|=20
| Help to install please grub-0.95 on FreeBSD-5.4.
| At attempt to install grub the following message is deduced: Error 29: Di=
sk write error
|=20
|=20
| Part              Mount           Size              Newfs
| -----             -----           -----             -----
| ad0s1            <none>           30003MB           DOS
| ad0s2a           /                256MB             UFS2         Y
| ad0s2b           SWAP             1006MB            SWAP
| ad0s2d           /var             256MB             UFS2+S       Y
| ad0s2e           /tmp             256MB             UFS2+S       Y
| ad0s2f           /usr             6383MB            UFS2+S       Y
|=20
|=20
| offset     Size        End        Name      PType    Desc      Sutype
| ------     ----        ---        ----      -----    ----      ------
| 0          63          62         -         12       unused    0
| 63         61447617    61447679   ad0s1     7        fat       12
| 61447680   16707600    78155279   ad0s2     165      freebsd   165
| 78155280   10080       78165359   -         12       unused    0
|=20
|=20
| # grub
| grub> root (hd0,1,a)
| File system type is ufs2, partition type 0xa5
| grub> kernel /boot/loader
| [FreeBSD-a .out, loadaddr=3D0x20000,text=3D0x1000, data=3D0x32000, bss=3D=
0x0,
| entry=3D0x200000]
| grub>boot
| #
|=20
| And another:
|=20
| #grub-install /dev/hd0
| grub> root (hd0,1,a)
| File system type is ufs2, partition type 0xa5
| grub>setup --stage2=3D/boot/grub/stage2 --prefix=3D/boot/grub (hd0)
| Checking if "/boot/grub/stage1"exists.....yes
| Checking if "/boot/grub/stage2"exists.....yes
| Checking if "/boot/grub/ufs2_stage1_5"..exists.....yes
| Running "embed /boot/grub/ufs2_stage1_5 (hd0)...failed (this is not fatal)
| Running "embed /boot/grub/ufs2_stage1_5 (hd0,1,a)...failed (this is not f=
atal)
| Running "install --stage2=3D/boot/grub/stage2 /boot/grub/stage1 (hd0)
| /boot/grub/stage2 p /boot/grub.lst"...failed
|=20
| ***Error 29: Disk write error
|=20
| grub>quite
| #
|=20
| In what here a problem, prompt please.

IIRC, you need to change sysctl setting of 'kern.geom.debugflags' from
0 to 16.

Shantanoo

--KsGdsel6WgEHnImy
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFD21sNMKFWhQemqksRAptwAJ96nFsC8jBTEaGE5sLfv66j2Mc+3gCcDGMu
+O+7TlpfbmWSNwnJmXxfEkY=
=tc/r
-----END PGP SIGNATURE-----

--KsGdsel6WgEHnImy--



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