From owner-freebsd-questions@FreeBSD.ORG Fri Dec 28 11:37:36 2007 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 D5C4F16A421 for ; Fri, 28 Dec 2007 11:37:36 +0000 (UTC) (envelope-from nuno@fccn.pt) Received: from app03.fccn.pt (app02.fccn.pt [193.137.198.37]) by mx1.freebsd.org (Postfix) with ESMTP id 4E51D13C457 for ; Fri, 28 Dec 2007 11:37:35 +0000 (UTC) (envelope-from nuno@fccn.pt) Received: from mx.anubis.local (ste [10.1.2.2]) by ste.anubis.internal (Postfix) with ESMTP id 9729D19FC4A; Fri, 28 Dec 2007 11:37:30 +0000 (WET) Received: from janus (janus.corp.fccn.pt [193.136.44.31]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx.anubis.local (Postfix) with ESMTP id 812521B4450; Fri, 28 Dec 2007 11:37:30 +0000 (WET) From: =?iso-8859-1?Q?Nuno_Gon=E7alves?= To: "'Aryeh M. Friedman'" References: <00fe01c84884$93ba1d30$1f2c88c1@corp.fccn.pt> <4773AAD9.806@gmail.com> Date: Fri, 28 Dec 2007 11:37:28 -0000 Message-ID: <016401c84946$07795670$1f2c88c1@corp.fccn.pt> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 Thread-index: AchIjctkkWpcfHuwRbaQ49abIrc9ywAt400g In-Reply-To: <4773AAD9.806@gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Warning-Anubis: User opted out of Anti-Virus checks X-Warning-Anubis: User opted out of Anti-Spam checks X-Content-Checker: AnubisNetworks MPS Cc: freebsd-questions@freebsd.org Subject: RE: Changing boot partition ACCOMPLISHED, now INIT problem 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, 28 Dec 2007 11:37:37 -0000 Hi all, Thanks on all your hints. I accomplished booting to another partition = with a backup from the machine that was all wrecked. It was a little tricky. I installed a minimum FreeBSD and created a second slice to restore the other FreeBSD SO and make it bootable. Then I created the filesystem, mounted it and restored the backup to that partition. Afterwards I changed the FSTAB file to reflect the new reality (the partitions are now different) and did a reboot! And voil=E1, when I = pressed F2 key on boot manager It started to boot the FreeBSD of the wrecked = machine :) Still after probing all the hardware (CDROM, Ethernet boards fxp0, etc) = It showed me the following message: 23:29:19 init: can't exec getty '/usr/libexec/getty' for port ... 23:29:19 init: can't exec getty '/usr/libexec/getty' for port ... -----Original Message----- From: Aryeh M. Friedman [mailto:aryeh.friedman@gmail.com]=20 Sent: quinta-feira, 27 de Dezembro de 2007 13:39 To: Nuno Gon=E7alves Cc: freebsd-questions@freebsd.org Subject: Re: Changing boot partition -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nuno Gon=E7alves wrote: > Hi all, > >=20 > > I Have a FreeBSD booting ok. It?s FSTAB is like this: > > #Device MountPoint FStype Options > > /dev/ad1s1b none swap sw > > /dev/ad1s1a / ufs rw > > /dev/acd0 /cdrom cd9660 ro,noauto > > /dev/ad1s2d /backup ufs rw > >=20 > > When I boot the machine the boot manager shows me F1 and F2 to boot = for. > > F1 brings me /dev/ad1s1a OK > > Still I want the machine to boot to /dev/ad1s2d > > This partition has a backup from another FreeBSD which I want to boot. > >=20 > > To accomplish this, I need only to change FSTAB ? > > What changes should I do ? changing /dev/ad1s2d to /dev/ad1s2a ? I = read that > a means boot root partition > >=20 > > I tried to change FSTAB to > > #Device MountPoint FStype Options > > /dev/ad1s1b none swap sw > > #/dev/ad1s1a / ufs rw > > /dev/acd0 /cdrom cd9660 ro,noauto > > /dev/ad1s2a /backup ufs rw > >=20 > > And it hanged when I pressed F1 (could not mount the root partition :P = ) > >=20 > > Could you guys give any hint ? > > Sorry about this questions but I am a newbie to FreeBSD I forget the exact semantics but do a search for "installing freebsd in a usb stick" on google the reason for referring to this site is it shows how to duplicate what sysinstall does from the command line - -- Aryeh M. Friedman FloSoft Systems http://www.flosoft-systems.com Developer, not business, friendly -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHc6rZzIOMjAek4JIRAoevAJ0WZzlRNgLiZeMzgS7RV2SS96kEBgCfe9PI tsmEoCTLlXPqg/FWYSEcukc=3D =3Doamg -----END PGP SIGNATURE-----