RE: Changing boot partition ACCOMPLISHED, now INIT problem



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á, 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@xxxxxxxxx]
Sent: quinta-feira, 27 de Dezembro de 2007 13:39
To: Nuno Gonçalves
Cc: freebsd-questions@xxxxxxxxxxx
Subject: Re: Changing boot partition

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nuno Gonçalves wrote:
Hi all,



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



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.



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



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



And it hanged when I pressed F1 (could not mount the root partition :P )



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=
=oamg
-----END PGP SIGNATURE-----


_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • boot0 screen output with dual-boot of FreeBSD / WinXP
    ... I used FreeBSD to partition the 120Gb drive into roughly "half". ... Of course XP clobbered the boot manager, ... it appears that partition type "7" just isn't a "known" type. ...
    (freebsd-hackers)
  • Re: "disklabel: Class not found" when editing USB disk
    ... Canonical way to boot FreeBSD by hand, ... This should boot -- however is pretty pointless without anything else. ... newfs will set the proper fstype in the bsdlabel if it's partition is 'a' ...
    (freebsd-questions)
  • Re: FIXMBR
    ... I don't really know anything about nor have I tried Partition Magic's copy ... Michael Solomon MS-MVP ... Backup is a PC User's Best Friend ... > master does not let the presumably identical OS boot. ...
    (microsoft.public.windowsxp.basics)
  • RE: Changing boot partition - ACCOMPLISHED, now INIT problem :(
    ... I accomplished the restore of a wrecked machine only with a .tar backup from ... I installed a minimum FreeBSD on a new ... the new partition as / ad1s2a). ... I have access to the contents of it if I boot through the minimum SO ...
    (freebsd-questions)
  • Re: Looking for suggestions for bootcamp sessions
    ... > there is a way to have backup do this so that a new GUID isn't created. ... The EFI tools are certainly fodder for a bootcamp session. ... EFI$CP is used to manage the boot partition. ...
    (comp.os.vms)