Re: how restore an unencrypted dump on an encrypted file system?

2012-09-30 Thread saeedeh motlagh
hi

i have a similar problem too.  can you explain in detail what you have
done step by step? i wanna know if my problem is exactly what you
have.

thanks

On 9/29/12, s m sam.gh1...@gmail.com wrote:
 thanks Fabian for your answer. i don't know what exactly information
 is needed but i tell what i did up to now.

 i have two partition, one is encrypted and the other one is not. the
 unencrypted partition has boot folder. when i copy FreeBSD base system
 files, FreeBSD start up correctly but when i restore dump files,
 FreeBSD doesn't start up correctly.

 i hope this information help to understand what is wrong.
 thanks

 On 9/29/12, Fabian Keil freebsd-lis...@fabiankeil.de wrote:
 s m sam.gh1...@gmail.com wrote:

 I backed up my freeBSD 8.2 box by dump command and now want to restore
 this dump file on an encrypted file system (i used geli to encrypt my
 file system) but do not know how to do that.

 is there any way or command to restore an unencrypted dump on an
 encrypted file system? i tried to restore my dump file as when file
 system is unencrypted.

 Can you read the files after attaching the provider manually?

 this is what i've doe: I decrypted my encrypted file system by geli
 attach command, then mount it and restore dumps. but when i restart
 my system, FreeBSD doesn't start up correctly (PXE boot menu is shown
 and when i select freeBSD, boot.config runs but nothing happend).

 You do not provide enough information to give a meaningful answer.

 One possible mistake would be putting the kernel itself on
 the encrypted file system, but the list of things one can
 do wrong is pretty long.

 Fabian

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

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


Re: how restore an unencrypted dump on an encrypted file system?

2012-09-30 Thread s m
thanks saeedeh

OK i try to explain what i have done more in detail.

i want to restore unencrypted dump files on an encrypted file system.
in order to do that, i encrypted my file system by geli command and
sure that is done correctly because when i install base and kernel on
it, freebsd start up successfully.

problem is here: when i restore my dump files and restart my freebsd,
boot PXE menu is shown and i select my freebsd but after that, the
error message invalid format occurs and i see this message:
  FreeBSD/i386 BOOT
 Default: 0:ad(0,a)/boot/loader
 boot:

it selects the default kernel correctly and after some seconds an
error message is shown which consists of some hardware addresses.

i don't know how to fix it.
any hints that might fix my problem are appreciated.


On 9/30/12, saeedeh motlagh saeedeh.motl...@gmail.com wrote:
 hi

 i have a similar problem too.  can you explain in detail what you have
 done step by step? i wanna know if my problem is exactly what you
 have.

 thanks

 On 9/29/12, s m sam.gh1...@gmail.com wrote:
 thanks Fabian for your answer. i don't know what exactly information
 is needed but i tell what i did up to now.

 i have two partition, one is encrypted and the other one is not. the
 unencrypted partition has boot folder. when i copy FreeBSD base system
 files, FreeBSD start up correctly but when i restore dump files,
 FreeBSD doesn't start up correctly.

 i hope this information help to understand what is wrong.
 thanks

 On 9/29/12, Fabian Keil freebsd-lis...@fabiankeil.de wrote:
 s m sam.gh1...@gmail.com wrote:

 I backed up my freeBSD 8.2 box by dump command and now want to restore
 this dump file on an encrypted file system (i used geli to encrypt my
 file system) but do not know how to do that.

 is there any way or command to restore an unencrypted dump on an
 encrypted file system? i tried to restore my dump file as when file
 system is unencrypted.

 Can you read the files after attaching the provider manually?

 this is what i've doe: I decrypted my encrypted file system by geli
 attach command, then mount it and restore dumps. but when i restart
 my system, FreeBSD doesn't start up correctly (PXE boot menu is shown
 and when i select freeBSD, boot.config runs but nothing happend).

 You do not provide enough information to give a meaningful answer.

 One possible mistake would be putting the kernel itself on
 the encrypted file system, but the list of things one can
 do wrong is pretty long.

 Fabian

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


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


Re: how restore an unencrypted dump on an encrypted file system?

2012-09-30 Thread C. P. Ghost
On Sun, Sep 30, 2012 at 10:09 AM, s m sam.gh1...@gmail.com wrote:
 thanks saeedeh

 OK i try to explain what i have done more in detail.

 i want to restore unencrypted dump files on an encrypted file system.
 in order to do that, i encrypted my file system by geli command and
 sure that is done correctly because when i install base and kernel on
 it, freebsd start up successfully.

 problem is here: when i restore my dump files and restart my freebsd,
 boot PXE menu is shown and i select my freebsd but after that, the
 error message invalid format occurs and i see this message:
   FreeBSD/i386 BOOT
  Default: 0:ad(0,a)/boot/loader
  boot:

 it selects the default kernel correctly and after some seconds an
 error message is shown which consists of some hardware addresses.

 i don't know how to fix it.
 any hints that might fix my problem are appreciated.

You could try to let us know what kind of error message you
get (i.e. the exact wording). ;-)

My guess (out of the blue) is that kernel and modules are
now out of sync. This happens when you restore the modules
from backup but use a newer kernel (or vice-versa).

If you restore stuff from backup, make sure you don't restore
anything under your freshly (re-)installed /boot. Or make sure
you restore *everything* into /boot, and not just some parts
of it. /boot has to be consistent; either everything from the new
install, or everything from the backup up install, but not a
mix of both.

As others pointed out, you need to provide more detailed
infos about your backup and restore procedure. It it impossible
to guess correctly what you have done otherwise.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


how restore an unencrypted dump on an encrypted file system?

2012-09-29 Thread s m
hello guys,

I backed up my freeBSD 8.2 box by dump command and now want to restore
this dump file on an encrypted file system (i used geli to encrypt my
file system) but do not know how to do that.

is there any way or command to restore an unencrypted dump on an
encrypted file system? i tried to restore my dump file as when file
system is unencrypted.

this is what i've doe: I decrypted my encrypted file system by geli
attach command, then mount it and restore dumps. but when i restart
my system, FreeBSD doesn't start up correctly (PXE boot menu is shown
and when i select freeBSD, boot.config runs but nothing happend).


please let me know how i can fix it or if i do something wrong.
yours,
sam
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how restore an unencrypted dump on an encrypted file system?

2012-09-29 Thread Fabian Keil
s m sam.gh1...@gmail.com wrote:

 I backed up my freeBSD 8.2 box by dump command and now want to restore
 this dump file on an encrypted file system (i used geli to encrypt my
 file system) but do not know how to do that.
 
 is there any way or command to restore an unencrypted dump on an
 encrypted file system? i tried to restore my dump file as when file
 system is unencrypted.

Can you read the files after attaching the provider manually?

 this is what i've doe: I decrypted my encrypted file system by geli
 attach command, then mount it and restore dumps. but when i restart
 my system, FreeBSD doesn't start up correctly (PXE boot menu is shown
 and when i select freeBSD, boot.config runs but nothing happend).

You do not provide enough information to give a meaningful answer.

One possible mistake would be putting the kernel itself on
the encrypted file system, but the list of things one can
do wrong is pretty long.

Fabian


signature.asc
Description: PGP signature


Re: how restore an unencrypted dump on an encrypted file system?

2012-09-29 Thread s m
thanks Fabian for your answer. i don't know what exactly information
is needed but i tell what i did up to now.

i have two partition, one is encrypted and the other one is not. the
unencrypted partition has boot folder. when i copy FreeBSD base system
files, FreeBSD start up correctly but when i restore dump files,
FreeBSD doesn't start up correctly.

i hope this information help to understand what is wrong.
thanks

On 9/29/12, Fabian Keil freebsd-lis...@fabiankeil.de wrote:
 s m sam.gh1...@gmail.com wrote:

 I backed up my freeBSD 8.2 box by dump command and now want to restore
 this dump file on an encrypted file system (i used geli to encrypt my
 file system) but do not know how to do that.

 is there any way or command to restore an unencrypted dump on an
 encrypted file system? i tried to restore my dump file as when file
 system is unencrypted.

 Can you read the files after attaching the provider manually?

 this is what i've doe: I decrypted my encrypted file system by geli
 attach command, then mount it and restore dumps. but when i restart
 my system, FreeBSD doesn't start up correctly (PXE boot menu is shown
 and when i select freeBSD, boot.config runs but nothing happend).

 You do not provide enough information to give a meaningful answer.

 One possible mistake would be putting the kernel itself on
 the encrypted file system, but the list of things one can
 do wrong is pretty long.

 Fabian

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