Date: Fri, 28 Dec 2007 11:55:21 -0000 From: =?iso-8859-1?Q?Nuno_Gon=E7alves?= <nuno@fccn.pt> To: "'Aryeh M. Friedman'" <aryeh.friedman@gmail.com> Cc: freebsd-questions@freebsd.org Subject: RE: Changing boot partition - ACCOMPLISHED, now INIT problem :( Message-ID: <000c01c84948$86d61870$1f2c88c1@corp.fccn.pt> In-Reply-To: <4773AAD9.806@gmail.com> References: <00fe01c84884$93ba1d30$1f2c88c1@corp.fccn.pt> <4773AAD9.806@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi all, Thanks on all your hints; it helped me comprehending my problem. I accomplished the restore of a wrecked machine only with a .tar backup = from it. The recipe is a little tricky. I installed a minimum FreeBSD on a new machine, during sysintall I created 2 slices (one ad1s1 to the minimum = SO and swap and another slice ad1s2 to restore the backup) I set the second slice as bootable (option S in FDISK). Then I created the partitions on = the first slice and installed the minimum SO (ad1s1a and ad1s1b for swap). = After booting to it with F1 I created the new file system with newfs and = mounted in rw mode (ad1s2a). Restored the tar backup to it and changed the FSTAB = to the new reality (used the initial swap created on the minimum SO ad1s1b = and the new partition as / ad1s2a ). Rebooted and voila it was booting the = old FreeBSD SO. Still after probing the hardware (CDROM, FXP0, etc ....) It showed me = this repeated error: 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 ... 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 ... 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 ... ..... .... I though it was something related with the console, so I rebooted to the initial SO with F1, mounted the partition o see /boot and renamed boot.config Did another reboot and booted to F2 but the problem persists. Do you guys have any clue what might this be and how can I solve it? Is = it something related with kernel stuff? I have access to the contents of it if I boot through the minimum SO = (F1)=20 Thanks for helping this newbie Best regards to you all Nuno=20 -----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000c01c84948$86d61870$1f2c88c1>