From owner-svn-doc-all@freebsd.org Sat Jul 11 16:18:23 2020 Return-Path: Delivered-To: svn-doc-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 05BE83681B0; Sat, 11 Jul 2020 16:18:23 +0000 (UTC) (envelope-from allanjude@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B3w7f6MvRz48ZR; Sat, 11 Jul 2020 16:18:22 +0000 (UTC) (envelope-from allanjude@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id BDEE515CD0; Sat, 11 Jul 2020 16:18:22 +0000 (UTC) (envelope-from allanjude@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 06BGIM9P067230; Sat, 11 Jul 2020 16:18:22 GMT (envelope-from allanjude@FreeBSD.org) Received: (from allanjude@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 06BGIM9f067229; Sat, 11 Jul 2020 16:18:22 GMT (envelope-from allanjude@FreeBSD.org) Message-Id: <202007111618.06BGIM9f067229@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: allanjude set sender to allanjude@FreeBSD.org using -f From: Allan Jude Date: Sat, 11 Jul 2020 16:18:22 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r54328 - head/en_US.ISO8859-1/books/handbook/disks X-SVN-Group: doc-head X-SVN-Commit-Author: allanjude X-SVN-Commit-Paths: head/en_US.ISO8859-1/books/handbook/disks X-SVN-Commit-Revision: 54328 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Jul 2020 16:18:23 -0000 Author: allanjude Date: Sat Jul 11 16:18:22 2020 New Revision: 54328 URL: https://svnweb.freebsd.org/changeset/doc/54328 Log: Update the GELI handbook to be more accurate The description of the key file incorrectly identified it as the master key PR: 208578 Submitted by: Wout Decre (original version) Reviewed by: bcr, oshogbo Sponsored by: Klara Inc. Event: July 2020 Bugathon Differential Revision: https://reviews.freebsd.org/D15866 Modified: head/en_US.ISO8859-1/books/handbook/disks/chapter.xml Modified: head/en_US.ISO8859-1/books/handbook/disks/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/disks/chapter.xml Sat Jul 11 15:48:48 2020 (r54327) +++ head/en_US.ISO8859-1/books/handbook/disks/chapter.xml Sat Jul 11 16:18:22 2020 (r54328) @@ -2823,15 +2823,20 @@ device crypto Generate the Master Key - The following commands generate a master key - (/root/da2.key) that is protected - with a passphrase. The data source for the key file is - /dev/random and the sector size of - the provider (/dev/da2.eli) is 4kB as - a bigger sector size provides better performance: + The following commands generate a master key that all + data will be encrypted with. This key can never be changed. + Rather than using it directly, it is encrypted with one + or more user keys. The user keys are made up of an + optional combination of random bytes from a file, + /root/da2.key, and/or a passphrase. + In this case, the data source for the key file is + /dev/random. This command also + configures the sector size of the provider + (/dev/da2.eli) as 4kB, for better + performance: &prompt.root; dd if=/dev/random of=/root/da2.key bs=64 count=1 -&prompt.root; geli init -s 4096 -K /root/da2.key /dev/da2 +&prompt.root; geli init -K /root/da2.key -s 4096 /dev/da2 Enter new passphrase: Reenter new passphrase: