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: Kernel asks only for the first GELI passphrase

2012-09-29 Thread Fabian Keil
Martin Laabs mailingli...@martinlaabs.de wrote:

 I have two partitions encrypted with GELI: ada0s2 and ada0s3. The loader 
 (located at an unencrypted part of the harddisk) loads the kernel and the 
 kernel asks me for the passphrase for ada0s2 to attach it afterwards.
 However - my root file system is not at ada0s2.elia but on ada0s3.elia. 
 Since the kernel did no attach ada0s3 (but the ada0s2 partition) it is also 
 unable to mount the root filesystem which is somewhat bad.
 So - is there a way (i.e. a loader.conf entry) how I can tell the loader 
 which partition I wanna have attached with a passphrase?

Whether or not the kernel requests the passphrase depends
on whether or not the BOOT flag (0x2) on the provider is set.

You can check with geli dump if the flag is already set,
and if it isn't, set it with geli configure -b.

For details see geli(8).

 I tried to look at the code from the loader but did not find the source 
 file where the attaching is done.

The passphrase is requested by g_eli_taste() in sys/geom/eli/g_eli.c.

Fabian


signature.asc
Description: PGP signature


older version of programs in freebsd

2012-09-29 Thread Istvan Gabor
Hello:

I am a freebsd beginner.

As I understood correctly there is only one ports tree which contains
the most up to date (and stable) versions of programs.
And there are compiled packages for the different releases, which 
reflect the version at the time of the release.

For example the ports tree currently has libreoffice 3.5.6 version.
I guess when FreeBSD RELEASE-9.1 will be final it will also
have libreoffice 3.5.x (or 3.6). 

But I would like to use/keep with libreoffice 3.4 (since I don't like the
interface changes they made in version 3.5 and 3.6).

How can I do it in FreeBSD?
Do I have to build it independently from the ports tree?
Or is there an older package that can be installed on newer system?

Thanks,

Istvan 

___
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: older version of programs in freebsd

2012-09-29 Thread Polytropon
On Sat, 29 Sep 2012 12:48:49 +0200, Istvan Gabor wrote:
 Hello:
 
 I am a freebsd beginner.
 
 As I understood correctly there is only one ports tree which contains
 the most up to date (and stable) versions of programs.
 And there are compiled packages for the different releases, which 
 reflect the version at the time of the release.

Yes. There are both the RELEASE packages (as found on the
installation CDs and DVDs) as well as the STABLE packages,
regularly created from a snapshot of the continuously
developing ports tree.


 But I would like to use/keep with libreoffice 3.4 (since I don't like the
 interface changes they made in version 3.5 and 3.6).
 
 How can I do it in FreeBSD?

Easily. :-)



 Do I have to build it independently from the ports tree?

Use portdowngrade.

This tool is excellent in obtaining older versions of a
specific port, for example to make it functional again
(like the xzgv image viewer where the last usable version
has been xzgv-0.8_9).



 Or is there an older package that can be installed on newer system?

If you find the version you want has been distributed with
RELEASE, you can use that ports tree or binary packages.
You can set PACKAGEROOT (see man pkg_add) in order to
install from the RELEASE precompiled package collection
instead of from the one updated to reflect the current
ports tree.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: svn checkout head or stable

2012-09-29 Thread Warren Block

On Fri, 28 Sep 2012, David Noel wrote:


Apologies for the spam and the hastily written closing paragraph. I
was hoping to end with a heartwarming anecdote that would leave the
reader with no choice but to agree that anonymous ssh+svn access would
benefit us all.

AnonCVS is still of course an option, but with its eventual retirement
the addition of an anonymous svn+ssh account would seem fitting, or at
least consistent.


http://www.freebsd.org/doc/handbook/mirrors-svn.html shows https 
mirrors.


Check out from the https site instead of svn, and you'll be asked to 
verify the certificate fingerprint the first time:


  svn co https://svn0.us-west.freebsd.org/ports/head /usr/ports
___
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


Considering purchase off SSD!

2012-09-29 Thread Leslie Jensen


Hello list.

I'm considering to purchase a SSD.

The one I have in mind for the moment is this one.

Samsung 830 Series MZ-7PC512D 512GB

I'm not going for a top of the line disk but I would like to ask if 
anyone has experience with SSD's and FreeBSD (9.1 is my plan).



Just to complicate things a little, I'll make a dual boot install with 
W7. I have this set up today on an ordinary SATA disk.


I just your view on if it's a good idea ;-)

Thanks

/Leslie

___
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 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


Re: Considering purchase off SSD!

2012-09-29 Thread Warren Block

On Sat, 29 Sep 2012, Leslie Jensen wrote:


I'm considering to purchase a SSD.

The one I have in mind for the moment is this one.

Samsung 830 Series MZ-7PC512D 512GB

I'm not going for a top of the line disk but I would like to ask if anyone 
has experience with SSD's and FreeBSD (9.1 is my plan).


SSDs work.  Be sure to align partitions to 4K, and enable TRIM support 
on the filesystems.  Use AHCI if available.


Just to complicate things a little, I'll make a dual boot install with W7. I 
have this set up today on an ordinary SATA disk.


In that case, the same as above, but if Windows was installed without 
AHCI enabled in the BIOS, it may not work if AHCI is enabled for 
FreeBSD.


Two of those Samsungs in 256G actually cost less than one 512G, and 
would make partitioning and multibooting simpler.

___
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: File permissions - how to lock a directory

2012-09-29 Thread Adam Vande More
On Sat, Sep 29, 2012 at 4:41 PM, Paul Schmehl pschmehl_li...@tx.rr.comwrote:

 I have a particularly thorny problem I'm trying to solve, but I'll bet
 FreeBSD has a solution.

 I'm running a webserver using suphp.  It's very picky about permissions.
 It wants the web server user (www) to be the owner of all directories and
 files.

 Meanwhile, the site owners want to be able to update and add files to the
 site.  When they update files everything is fine.  When they upload new
 files, the ownership of the file is user:user instead of www:user, so
 apache can't display them.

 Is there a way to lock a directory such that all files created in that
 directory are owned by the directory owner?  If not, I'll have to script
 something to change perms after uploads.


There is the suiddir option, see mount(8) and chmod(2).

-- 
Adam Vande More
___
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: 8.3-R cannot mount non-BSD burned DVD

2012-09-29 Thread Erich Dollansky
Hi,

On Sat, 29 Sep 2012 22:44:24 -0700 (PDT)
Jin Guojun jguo...@sbcglobal.net wrote:

 Searched bug report, but did not find related report.
 Does anyone have seen this problem? If so, is any working around for
 this problem?

I ran 8.3 but did not have this problem. But I must admit that the
number of media coming from Windows machines is very limited on my side.

Erich
___
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


system hangs during dump + compress usb2-drive

2012-09-29 Thread Jin Guojun
In FreeBSD 8.3 release (possibly in earlier release),  dump a file system has 
2-3GB or more
 content can cause system hang in a  specific  case (pipe to compression):

dump FS-on-SATA-drive   usb-drive OK
dump FS-on-SATA-drive | anyCompress   sata-drive OK
mv a-large-dump-file from STAT drive to a USB drive OK
dump small-FS-on-SATA-drive | anyCompress   usb-drive OK
small -- 1.8GB or less
dump large-FS-on-SATA-drive | anyCompress   usb-drive hang
content is 3GB or larger (did not try around 2GB yet)

When system hangs, no sub system, such video, network, etc, will function.
Typically, the unfinished compressed dump file is around 1.5-2.7GB, so
guessing dumped file content is close to
or over 2GB when failure occurred.

Has anyone encountered the same problem?
 
Because this usually takes a few hours to occur, this is hard to watch
how/when it happens.
Is any way to debug or determine what status the system is?

-Jin
___
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