On Fri, 22 Jan 2010, Otto Moerbeek wrote:

On Thu, Jan 21, 2010 at 11:34:48PM -0800, Johan Beisser wrote:
You could makefs on /dev/sd0c instead. Nothing really forces you to
create other slices (or partitions) on the device.
Bad advice. disklabel does not record some redundant information for
the c partitiion. Which may bite you in case of a superblock
corruption due to power loss, for example. In that case, fsck_ffs is
not able to reconstruct some vital data needed to do its work. Never
use the c partition for a file system.
The other reason for it being a bad advice is that you should newfs(8) on 
a raw device, not a block device. In this otherwise wrong case it should 
be /dev/rsd0c (or /dev/rsd0a, /dev/rsd0d or whatever) rather than 
/dev/sd0c. The same applies to fdisk(8), disklabel(8), fsck(8), etc., but 
never to mount(8), where you should always use a block device (for example 
/dev/sd0a).
Plus, there isn't anything like 'makefs' in OpenBSD, is it?

Regards,
David

Reply via email to