Handbook - Typo in Pre-Installation
Mathieu Arnold
mat at FreeBSD.org
Wed Sep 9 07:29:59 UTC 2015
+--On 5 septembre 2015 20:37:41 -0600 Warren Block <wblock at wonkity.com>
wrote:
| On Sat, 5 Sep 2015, Allan Jude wrote:
|
|> On 2015-09-05 20:11, Ali Ghahraei wrote:
|>> Good afternoon.
|>>
|>> I just wanted to inform you about an error in the handbook (or at least
|>> I think it is one). In "Pre-Installation Tasks" there is a command for
|>> burning disk images, but it currently is:
|>>
|>> # dd if=*FreeBSD-10.0-RELEASE-amd64-memstick.img* of=/dev/*da0* bs=1m
|>> # conv=sync
|>>
|>> And I think it should be:
|>>
|>> # dd if=*FreeBSD-10.0-RELEASE-amd64-memstick.img* of=/dev/*da0* bs=1M
|>> # conv=sync
|>>
|>> With a capital m in bs. This is because I tried to use the command and
|>> it returned dd: invalid number: '1m'.
|>>
|>> I apologize if my English is not too good, but I'm not from an
|>> English-speaking country. I send you this message because I wanted to
|>> help you. I hope it is useful :)
|>
|> Only the Linux utilities are sensitive to the case of the unit, but yes,
|> we should change it in the documentation.
|
| The device name will not be correct on Linux, either. That is a
| FreeBSD-specific command. We could add a Linux variation, but it ought
| to explain how to determine the correct device to write.
|
| Incidentally, we should test using conv=sync,noerror,sparse. The last
| one in particular could make writing memory sticks faster.
I'm really not sure the sparse would do any good, the memsticks img are
filesystems created with makefs, which packs files in a filesystem image
without leaving any holes. (I mean, of course there will be sectors that
are not full, but you always have to write to a nand cell in one go, and
cells are much bigger than sectors.)
What helps is the bs=1m, because it doesn't go and write 512 bytes at a
time (when the cell size is, say, 512kB, it means the same cell is
overwritten 1024 times before it's full, which *is* the part that makes it
slow.)
--
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-doc/attachments/20150909/889adb3e/attachment.bin>
More information about the freebsd-doc
mailing list