Results 1 to 3 of 3
I'm playing around with a script to verify that no changes have been made to my MBR/boot-section.
I'm using dd to create files, and TrueCrypt to encrypt my entire system.
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-06-2010 #1Just Joined!
- Join Date
- Mar 2010
- Posts
- 8
[SOLVED] [dd] Skip sector with dd
I'm playing around with a script to verify that no changes have been made to my MBR/boot-section.
I'm using dd to create files, and TrueCrypt to encrypt my entire system.
First I make a copy of my MBR+partition table with the command:
Well, that was the easy part. I'm reading an article about the "Evil Maid" attack on system encryption, that tells me that the Truecrypt unencrypted boot-sector is located at the first 63 sectors of /dev/sda/.Code:dd if=/dev/sda of=/tmp/mbr bs=512 count=1
Since I have just copied (and checked) the MBR, I'd want to exclude the first sector of 512 bytes from the next command.
Will this command skip the first 512 bytes?Code:dd if=dev/sda of=tmp/boot bs=512 count=62 skip=1
- 06-06-2010 #2Linux User
- Join Date
- Dec 2007
- Location
- Idaho USA
- Posts
- 358
Linux Command Directory: dd
The answer is yes. 'bs=512' * 'skip=1' = 512 bytes or first sector.
You did leave off the '/' after if=/.
If 'bs=1024' with 'skip=1' then first 2 sectors would be skipped.
- 06-06-2010 #3Just Joined!
- Join Date
- Mar 2010
- Posts
- 8
Oh yeah, I did.
Thank you very much



