Re: Wiping disk vs. initializing container
[email protected] Wed, 7 Jun 2023 12:03:31 +0200
| Newsgroups | dev.linux.lists.cryptsetup |
|---|---|
| Message-ID | <20230607120331.2125480b@moon> |
Am Wed, 7 Jun 2023 05:30:38 +0200 schrieb Arno Wagner <[email protected]>: > If it is crypto-grade randomness, yes. > But note that Section 5.3 may still be faster. I see. Now I have some follow-up questions: 1. Would `cat /dev/urandom > /dev/sdX` give me crypto-grade randomness? 2. Is initializing a LUKS container with zeroes equivalent to filling a whole drive with crypto-grade random data if the LUKS container spans the whole disk? 3. The FAQ says: If the target was in use previously, it is a good idea to wipe it before creating the LUKS container in order to remove any trace of old file systems and data. So, isn't just filling the whole disk with random data before setting up the LUKS container the simplest solution if you want to a) destroy old data reliably, b) put the disk into a clean state, and c) make sure that parts of the LUKS container that have not been written to cannot be distinguished from those that have? 4. Should new hard disks that have not been used previously also be filled with random data in order to achieve c)? Thanks Michael