Score:1

how to read raw data from disk

cn flag

I want to use LVM over LUKS. I just filled large disk with semi-random data: I've put LUKS on the new drive (with a password I have already forgotten) Then

dd if=/dev/zero of=<the whole encrypted PV>

Process has taken a long time... is almost ready... but now I am wondering if I made a mistake or not? So how do I check the disk to see if it is filled with zero's, or with random data?

Ideally I would like to grab a block of 1000-or-so bytes from a specific spot on the disk and see if it zero's or something else in there.

Thanks!

Score:2
in flag
dd if=DISKDEVICE bs=1000 count=1 | hexdump -C

or more traditionally, replace hexdump with od

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.