From owner-freebsd-questions@FreeBSD.ORG Fri Jul 29 15:26:27 2005 Return-Path: X-Original-To: freebsd-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 6F97D16A41F for ; Fri, 29 Jul 2005 15:26:27 +0000 (GMT) (envelope-from vdm.fbsd@virgilio.it) Received: from vsmtp3.tin.it (vsmtp3alice.tin.it [212.216.176.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1156E43D45 for ; Fri, 29 Jul 2005 15:26:26 +0000 (GMT) (envelope-from vdm.fbsd@virgilio.it) Received: from [192.168.10.8] (80.117.237.253) by vsmtp3.tin.it (7.2.060.1) id 42E5E1E2001B00D3 for freebsd-questions@freebsd.org; Fri, 29 Jul 2005 17:26:24 +0200 From: Vittorio De Martino To: freebsd-questions@freebsd.org Date: Fri, 29 Jul 2005 17:25:33 +0200 User-Agent: KMail/1.8.1 References: <42DC14FE0003EB30@ims1d.cp.tin.it> In-Reply-To: <42DC14FE0003EB30@ims1d.cp.tin.it> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200507291725.33854.vdm.fbsd@virgilio.it> Subject: Re: Problems with booting & MBR 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: Fri, 29 Jul 2005 15:26:27 -0000 Alle 11:16, gioved=EC 28 luglio 2005, vdm.fbsd@virgilio.it ha scritto: > In the first disk ad0 (master) of a computer at office I had installed > linux to be used as a postgresql server. Later I installed FreeBSD 5.4 > (just to have a go at it) on a partition of the second disk ad1 (slave) = to > be a postgrresql server too. > Linux lilo was the boot loader, booting linux by default and freebsd. > Now, convinced of the high quality of the latter I eliminated linux from > the first disk unfortunately without modifying lilo, and reshuffled the > FreeBSD filesystem as in my latest /etc/fstab using also the first disk: > > # Device Mountpoint FStype Options Dump =20 > Pass# /dev/ad1s2b none swap sw 0 = =20 > 0 /dev/ad1s2a / ufs rw 1 = =20 > 1 /dev/ad0s1a /usr/local ufs rw 0 = 0 > /dev/ad0s1d /var ufs rw 0 0 > /dev/ad0s1e /tmp ufs rw 0 0 > /dev/acd0 /cdrom cd9660 ro,noauto 0 0 > > Now, even though I read the booting procedure in the handbook and somewhe= re > else in the internet, issuing the various "fdisk -b B", "disklabel -b ..", > "boot0cfg ..", I was completely unable to modify the MBR and make this > FreeBSD only computer boot directly into this OS. > > What should I do with the configuration I have? > A straightforward and step by step explanation is highly appreciated. > > P.S. Is it possible that some problems can arise by the fact that I used > an "a" slice (ad0s1a)for mounting /usr/local and freebsd starts from > ad1s1a? > > =20 =46riends,=20 as suggested in the docs in the internet I tried both with = =20 # fdisk -B -b /boot/boot0 ad0 fdisk: cannot open disk /dev/ad0: No such file or directory and with = =20 # fdisk -B -b /boot/boot0 ad1 fdisk: cannot open disk /dev/ad1: No such file or directory WHILST my working /etc/fstab is, as I mentioned before: # Device Mountpoint FStype Options Dump Pas= s# /dev/ad1s2b none swap sw 0 0 /dev/ad1s2a / ufs rw 1 1 /dev/ad0s1a /usr/local ufs rw 0 0 /dev/ad0s1d /var ufs rw 0 0 /dev/ad0s1e /tmp ufs rw 0 0 Why FreeBSD 5.4 cannot find /dev/ad0 and ad1? What should I do? =20 A baffled and frustated Vittorio again