RE: Changing boot partition ACCOMPLISHED, now INIT problem

2007-12-28 Thread Nuno Gonçalves
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:[EMAIL PROTECTED] 
Sent: quinta-feira, 27 de Dezembro de 2007 13:39
To: Nuno Gonçalves
Cc: freebsd-questions@freebsd.org
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:

 #DeviceMountPoint 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

 #DeviceMountPoint 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@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Changing boot partition - ACCOMPLISHED, now INIT problem :(

2007-12-28 Thread Nuno Gonçalves
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) 

Thanks for helping this newbie
Best regards to you all

Nuno 


-Original Message-
From: Aryeh M. Friedman [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 27 de Dezembro de 2007 13:39
To: Nuno Gonçalves
Cc: freebsd-questions@freebsd.org
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:

 #DeviceMountPoint 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

 #DeviceMountPoint 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@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Changing boot partition

2007-12-27 Thread Nuno Gonçalves
Hi all,

 

I Have a FreeBSD booting ok. It’s FSTAB is like this:

#DeviceMountPoint 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 

#DeviceMountPoint 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

 

Thanks once again

Nuno

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Bare Metal Recovery FreeBSD How To

2007-12-19 Thread Nuno Gonçalves
Hi all,

 

I am trying to do a Bare Metal Recovery from a FreeBSD 6.0 system to a
different Hardware.

I have a backup from all partitions of the affected system so I am trying to
install a minimum FreeBSD 6.0 in a different hardware which I already have
up and running.

I created a Swap Partition, a “/” partition where the minimum system is
running, and a third partition “/backup” in which I will restore the backup
through the network.

Next step will be to change the boot manager and make it boot through
“/backup”.

 

Do you guys think this is doable?

I Think I probably must recompile the kernel after the bare metal recovery
because the hardware is different, still do you think it might work?

What is your opinion on this? What should be the best approach ?

Thanks for reading and 

Best regards 

 

Nuno

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Bare Metal Recovery FreeBSD How To

2007-12-19 Thread Nuno Gonçalves
Thank you all on responding this mater.
Well the situation is the hardware is wrecked! So the only thing that I have
is the content of all partitions available. The backup is a tar uncompressed
data.
So I have the contents in a server.

So the objective is to use a completely different hardware but with the same
kernel, same configurations, same partitions, etc. In that way, what I
thought (but I don't know if it is the proper way) was to install a minimum
freeBSD (same version which is 6.0) with the following partitions and
booting with F1 option:
/dev/ad1s1b noneswapsw  0   0
/dev/ad1s1a /  ufs rw  1   1
/dev/ad1s1d /new_rootufs rw  2   2
/dev/ad1s1e  /archive   ufs rw  2   2
/dev/acd0 /cdrom cd9660  ro,noauto   0   0

Then migrate the partions that I have in my backup

/ - to partition /new_root (/dev/ad1s1d)  at the end this should be changed
to /dev/ad1s1a

/archive - to partition /archive (/dev/ad1s1e)

The idea is to make use of the same swap partition, and of course if all
goes OK the partition / of the minimum system is lost when bootManager is
changed to boot on /new_root.

That is what I have in mind but I am not sure if it will work.
I am new to FreeBSD and I am more used to red hat, still I am putting some
effort to change that :)

Best regards and thanks once again

Nuno






-Original Message-
From: Kevin Kinsey [mailto:[EMAIL PROTECTED] 
Sent: quarta-feira, 19 de Dezembro de 2007 16:58
To: Nuno Gonçalves
Cc: freebsd-questions@freebsd.org
Subject: Re: Bare Metal Recovery FreeBSD How To

Nuno Gonçalves wrote:

 I am trying to do a Bare Metal Recovery from a FreeBSD 6.0 system to a
 different Hardware.
 
 I have a backup from all partitions of the affected system so I am trying
to
 install a minimum FreeBSD 6.0 in a different hardware which I already have
 up and running.

What kind of backup?  Is it a dump(8) file?
 
 I created a Swap Partition, a “/” partition where the minimum system is
 running, and a third partition “/backup” in which I will restore the
backup
 through the network.
 
 Next step will be to change the boot manager and make it boot through
 “/backup”.
 
 Do you guys think this is doable?
 
 I Think I probably must recompile the kernel after the bare metal recovery
 because the hardware is different, still do you think it might work?

Did the kernel have a lot of customization?  A GENERIC kernel should
boot on almost anything --- which is why bare metal recovery seems 
a misnomer to me.  If the hard disk survives, I simply stick it in 
another box and rarely have any difficulties.  If it doesn't, I do
a minimal install with the desired final slice/partition scheme on 
the new HDD, and simply restore(8) over the top.

 What is your opinion on this? What should be the best approach ?

Well, I don't know your exact situation, but OOTOMH, the partitioning
scheme you mention seems like wasting a disk unless you want the
final system to have only /, swap, and /backup.  Which could be
OK, I guess, but isn't the traditional BSD Right Way(tm).

Also, I'd consider installing a newer release than 6.0, and only
restoring the important stuff.  Again, it depends on your situation.

My $.02,

Kevin Kinsey
-- 
You have been in Afghanistan, I perceive.
-- Sherlock Holmes, A Study in Scarlet

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]