Re: disk geometry issues when trying to set up encrypted partition

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joachim Schipper
Date: Wednesday, June 16, 2010 - 12:59 pm

On Wed, Jun 16, 2010 at 08:43:29PM +0100, Harry Palmer wrote:

Why don't you just use softraid(8)? No need for a filesystem, and this
particular use-case (encrypted disk) is in the EXAMPLES section of the
man page.


Again, why don't you work with the disk directly? Doing "dd if=/dev/zero
of=/dev/rsd0a conv=notrunc" would work fine. ("notrunc" is useful to
wipe the last bytes if you use a different blocksize - 512 is the
default, but on the low side.)



This is perfectly fine. newfs reserves, by default, 5% of all available
space for use by the root user only. This is useful in two ways: it
means root can squeeze a bit more data on the filesystem, and it
prevents the performance degradation that comes with completely filling
up a (ffs) filesystem.

What you are seeing is that the *entire* disk has been used, including
reserved space.

		Joachim
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: disk geometry issues when trying to set up encrypted p ..., Joachim Schipper, (Wed Jun 16, 12:59 pm)
Re: disk geometry issues when trying to set up encrypted p ..., Jacob Yocom-Piatt, (Thu Jun 17, 4:28 am)