Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Jan 2006 00:39:01 +0100
From:      Kees =?ISO-8859-15?Q?Plon=DF?= <freebsd@jeremino.homeunix.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Encrypted volume - how?
Message-ID:  <20060122233901.2D21D43D46@mx1.FreeBSD.org>
References:  <list.freebsd.questions#43D409B8.6070704@meijome.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Norberto Meijome wrote on Sunday 22 January 2006 23:39:

> Hi all,
> I'm looking for a way to recreate the functionality of PGP Disk (under
> Win32). Basically, create an encrypted file, which contains a filesystem
> which can then be mounted in any mount point.
> 
Why don't you use gbde. It is in your distro at /sbin/gbde
Make a file with dd and format is with gbde and newfs:

dd if=/dev/random of=file bs=1k count=1000
gbde init /dev/md0
mdconfig -a -t vnode -f file
gbde init /dev/md0
gbde attach /dev/md0
newfs /dev/md0.bde
mount /dev/md0.bde /mnt

#and you are ready to use the filesystem at /mnt
#watch out for the sequence of umounting:

umount /dev/md0.bde
gbde detach /dev/md0

#for mounting you do:

gbde attach /dev/md0
mount /dev/md0.bde /mnt

-- 
Key-ID = 0xA6581435            E-mail address is valid but ipv6 only




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060122233901.2D21D43D46>