From owner-freebsd-questions@FreeBSD.ORG Tue Jan 15 13:45:20 2008 Return-Path: Delivered-To: FreeBSD-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EF6D16A41B for ; Tue, 15 Jan 2008 13:45:20 +0000 (UTC) (envelope-from nikola.lecic@anthesphoria.net) Received: from anthesphoria.net (anthesphoria.net [200.46.204.219]) by mx1.freebsd.org (Postfix) with ESMTP id 597A413C45B for ; Tue, 15 Jan 2008 13:45:20 +0000 (UTC) (envelope-from nikola.lecic@anthesphoria.net) X-Bogosity: No, tests=bogofilter X-DKIM: Sendmail DKIM Filter v2.4.1 anthesphoria.net m0FDj81O063791 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=anthesphoria.net; s=phero; t=1200404719; bh=Nbo9x1vl0PedSg3eQxMr9L9jZqUtHgtDhl8FhXGRA 5Y=; l=2099; h=X-Bogosity:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:X-Mailer:X-Face:X-Operating-System: Mime-Version:Content-Type:Content-Transfer-Encoding; b=tCnHxGknYt4 g0LGlhP+U7hvW9oR54l+3FDKSdD6IoeJlolEfUyItHvnr1qOhSDws4XbBzBdgYLrTIN WR9smKhUCx9Q1ulpzbc7Mf/LVs/UmPGg0eDrFsCeDGcxGtJlX8wc1tFntMnfyahD2rX NOUrEkx1OjtzdMDOjtC3CeGZuA= Received: from anthesphoria.net (adsl-198-212.eunet.yu [213.198.198.212]) (authenticated bits=0) by anthesphoria.net (8.14.2/8.14.2) with ESMTP id m0FDj81O063791 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Jan 2008 14:45:13 +0100 (CET) (envelope-from nikola.lecic@anthesphoria.net) Date: Tue, 15 Jan 2008 14:45:08 +0100 From: Nikola =?UTF-8?B?TGXEjWnEhw==?= To: "Nerius Landys" Message-ID: <20080115144508.204f0c77@anthesphoria.net> In-Reply-To: <560f92640801142157n7194be23u8c4eac084ed474c9@mail.gmail.com> References: <560f92640801142157n7194be23u8c4eac084ed474c9@mail.gmail.com> X-Mailer: Claws Mail 3.1.0 (GTK+ 2.12.4; i386-portbld-freebsd6.2) X-Face: pbl6-.[$G'Fi(Ogs2xlXP-V6{3||$Y[LOYs&~GJoikj'cVjcFC[V7du;;0~6nO= [Vi2?uU1Pq~,=Adj@,T:|"`$AF~il]J.Nz#2pU',Y7.{B;m/?{#sO^Dvo$rnmY6] X-Operating-System: FreeBSD 6.2-RELEASE-p8 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: FreeBSD-questions@FreeBSD.org Subject: Re: sysinstall and bsdlabel/boot 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: Tue, 15 Jan 2008 13:45:20 -0000 On Mon, 14 Jan 2008 21:57:49 -0800 "Nerius Landys" wrote: > I was trying to install 7.0RC1 (hope it's OK to post this here, > because I believe that older versions of FreeBSD have this same > limitation) and came across a gotcha. I had an MBR on disk that I > wanted to keep. It was Lilo and all it did was boot a selected > slice, it was configured to function the same as FreeBSD's `boot0'. > So, the install of FreeBSD came to the area where it asks what to do > with the MBR. There are three choices: 1) boot manager, 2) simple > MBR, and 3) do nothing. I chose to do nothing because I wanted to > keep Lilo in the MBR. But, by choosing this option, I expected > sysinstall to install the /boot/boot code to the beginning of the > FreeBSD slice. Well, no such boot code was installed, apparently, > unless I totally missed something. Basically, after the install, > when I delegated Lilo to boot the chosen [FreeBSD] slice, it did not > find any boot code on that slice. Have you configured lilo properly? In the past, I used to use something like this: other=/dev/hda2 table=/dev/hda loader=/boot/chain.b label=FreeBSD (Actually, you can delete "loader=/boot/chain.b" since FreeBSD and Linux share the same disk in your case -- and I assume you use lilo to dual-boot Linux and FreeBSD.) > My workaround for this was to choose option 1) boot manager. I ended > up using boot0 (the boot manager) which I feel is superior to Lilo > because it is more modular, simpler. However, some users may not > want this. I didn't find any option in sysinstall to install just > the /boot/boot code to the beginning of the FreeBSD slice. Am I > missing something? You don't have to go through sysinstall. Just for the case, reinstall bootstrap code of your FreeBSD slice (say, ad0s1): # bsdlabel -B /dev/ad0s1 (the code will come from /boot/boot by default), and then reinstall lilo from Linux, with the aforementioned configuration. Best regards. -- Nikola Lečić :: Никола Лечић