Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Feb 1996 14:29:56 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        rgrimes@gndrsh.aac.dev.com, stesin@elvisti.kiev.ua
Cc:        ccd@forgery.CS.Berkeley.EDU, hackers@FreeBSD.org
Subject:   Re: Am I root?! or How to mirror an 'a' partition?
Message-ID:  <199602020329.OAA24711@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>	sd (4) doesn't clearly state that first 16b are R/O even
>	if the disk is _not_ mounted at all, BTW.
>	One need to read IOCTLS section carefully to figure the idea.
>	Can this fact be added to the sd (4) manpage?

No.

It is wrong.
(a) Only slices with a label are write protected.  The whole disk
    device isn't write protected (although MBRs and SBRs should be).
(b) Only the label block (the second one) is write protected.  The
    rest of the bootstrap isn't write protected.

It has little to do with the sd driver.  All labeled disks have this
behaviour.  It should be documented in a general disk or label manpage.
sd(4) has been cleaned up in -current and refers to disklabel(8),
fdisk(8), wd(4) and disklabel(5) for general documentation on
partitioning.  The reference to wd(4) is a bug - wd(4) is little more
than a stub and has no information on partitioning.

sd(4) documents a silly list of ioctls - those that happened to be 
implemented in sd.c driver when the man page was written.  It doesn't
explicitly mention any of the new label/slice ioctls or any of the
SCSI ioctls that it supports.  sd.c doesn't implement any ioctls
directly any more.

Bruce



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