From owner-freebsd-questions@FreeBSD.ORG Sat Jan 28 11:52:47 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F8D516A420 for ; Sat, 28 Jan 2006 11:52:47 +0000 (GMT) (envelope-from shantanoo@ghar.dhoomketu.net.in) Received: from iqara.net (sendmail.iqara.net [203.187.192.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECCDF43D48 for ; Sat, 28 Jan 2006 11:52:45 +0000 (GMT) (envelope-from shantanoo@ghar.dhoomketu.net.in) Received: (qmail 29149 invoked from network); 28 Jan 2006 11:52:52 -0000 Received: from unknown (HELO ghar.dhoomketu.net.in) ([203.109.125.206]) (envelope-sender ) by iqara.net (qmail-ldap-1.03) with SMTP for ; 28 Jan 2006 11:52:52 -0000 Received: by ghar.dhoomketu.net.in (Postfix, from userid 1001) id F1E9C5C45; Sat, 28 Jan 2006 17:22:45 +0530 (IST) Date: Sat, 28 Jan 2006 17:22:45 +0530 From: Shantanoo Mahajan To: serge Message-ID: <20060128115245.GA1786@ghar.dhoomketu.net.in> References: <17243495.20060128155348@newmail.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <17243495.20060128155348@newmail.ru> Organization: Hmmm... I dunno X-OS: FreeBSD 6.0-SECURITY i386 X-UPTIME: 5:20PM up 1:20, 0 users, load averages: 0.22, 0.05, 0.06 X-Mailer-Website: http://www.mutt.org X-GPG-Fingerprint: 614C 591B D401 98ED 1EF1 8BCF 30A1 5685 07A6 AA4B User-Agent: mutt-ng/devel-r581 (FreeBSD) Cc: questions@freebsd.org Subject: Re: grub+freebsd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jan 2006 11:52:47 -0000 --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 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--