tag:blogger.com,1999:blog-3500917063499850097.post3829342769267013160..comments2023-04-17T15:20:23.244+02:00Comments on Mathy Vanhoef: Backtrack 5 and Windows Dual Boot with Full Disk EncryptionMathyhttp://www.blogger.com/profile/12266874794108836514noreply@blogger.comBlogger35125tag:blogger.com,1999:blog-3500917063499850097.post-80598909230496288142013-03-08T06:07:16.542+01:002013-03-08T06:07:16.542+01:00Side note:
During the first test of the encrypte...Side note: <br /><br />During the first test of the encrypted system, make sure when editing your menu.lst in grub you do the CORRECT/CURRENT kernel version<br /><br />title Cryptotest<br />root (hd0,4)<br />kernel /vmlinuz-2.6.38 root=UUID= ro<br />initrd /initrd.img-2.6.38<br />boot<br /><br />## for backtrack 5r3 it would be -3.2.6<br /><br />-BamAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-28563951414486126842013-02-27T22:31:40.663+01:002013-02-27T22:31:40.663+01:00This guide is gold. Every single step worked to th...This guide is gold. Every single step worked to the T. I'm running windows 8 pro 64 with bt5r3.. a virtually duplicate setup to the guide on a 160gb hdd. Everything is well explained, not a single problem encountered/no workarounds needed. This is right on the money.<br /><br />Thanks for this Mathy.<br /><br />-BamAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-76478262247359188202012-12-20T04:25:48.119+01:002012-12-20T04:25:48.119+01:00hey i wanted to say this guide is very useful even...hey i wanted to say this guide is very useful even though its 2012 i use it and i was gone mention that now you don't have to do the grub downgrade. I am dual booting Windows 8 Pro and Backtrack 5r3 both 64bit. I had Windows 8 Pro already installed and so it filled the /dev/sda1 and /dev/sda2 spot. I did follow your linux partition advice and did that. However if you have windows installed already you don't need to create a new partition table or else it will delete all your partitions and windows and here was my partition setup<br /><br /> /dev/sda1: Windows system reserved<br /> /dev/sda2: Windows 8 Pro<br /> /dev/sda5: /boot<br /> /dev/sda6: swap<br /> /dev/sda7: ext4<br /> /dev/sda8: / <--since windows occupy sda1 i used it on sda8<br /><br />next i didnt need to downgrade grub i continued using the regular grub so i skipped that part and followed everything else sides i found the cryptotest entry you wanted to test i couldnt get it to work but my partition is encrypted since it wont allow access until i enter the password <br /><br />last at the final grub config since im using the regular grub instead of downgrading it u edit it under /boot/grub/grub.cfg <br /><br />and if you keep grub 2 and you encrypt the partition after you boot and you get to the BackTrack 5 screen an it sits there hit the delete button to see the access to enter your encryption password<br /><br />-Paul <br /><br /><br /><br /><br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-48484572521850943012012-10-26T18:33:42.178+02:002012-10-26T18:33:42.178+02:00same problem, also used cascade encryption and can...same problem, also used cascade encryption and cant get it to work with finaliying GRUBAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-9983324826096664092012-07-31T04:30:43.535+02:002012-07-31T04:30:43.535+02:00This is a most excellent tutorial and it wirked wu...This is a most excellent tutorial and it wirked wull up to the "restoring GRUB" portion.<br /><br />I used cascade encryption and this may be part of the problem as the boot leader is different. but, I still cannot figure out why copying the mbr does not work.<br /><br />I get the following: Loader damaged, get rescue disk....<br /><br />In that case, grub works for loading BT5 but I need to use the rescue disk to load my Windows partition. <br /><br />Any idea what I do wrong?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-85008842289986993092012-07-14T03:50:34.205+02:002012-07-14T03:50:34.205+02:00Having a weird issue. Ive found similar issues but...Having a weird issue. Ive found similar issues but nothing exact.. I have it set up on a USB hdd and it works great in VM, but when i hook it into a computer with an existing hdd i get grub menu and choose the backtrack option and it fails after not being able to mount /dev/sda7. This is due to the fact that the external drive on this pc is sdb not sda. But i have double checked menu.lst and fstab to only use UUID rather than path. But i cant seem to find where it is getting sda7 hardcoded. Have also re-run update-grub several times.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-19287573496063802622012-06-29T18:04:15.556+02:002012-06-29T18:04:15.556+02:00Hi,
I'm using bt5 r2 kde in virtual box inside...Hi,<br />I'm using bt5 r2 kde in virtual box inside my win7. But every time i start the virtual box i have to use it like live cd not as os. I already installed it in virtual box. Do i have any cure for this problem. Plz help me out.<br />thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-16657302103951652782012-06-06T00:58:22.583+02:002012-06-06T00:58:22.583+02:00This is absolutely spot on, it works like a charm!...This is absolutely spot on, it works like a charm!<br />I have one tiny question though.....is there any way to make the font size used by grub any smaller? On my Dell laptop the characters are HUGE.<br />ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-33014293241132603012012-04-13T14:44:06.421+02:002012-04-13T14:44:06.421+02:00thats really is strange :-)
maybe mathy can help y...thats really is strange :-)<br />maybe mathy can help youmvhttps://www.blogger.com/profile/11649286082942315163noreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-3394757905277967672012-04-13T13:03:59.699+02:002012-04-13T13:03:59.699+02:00this is what i do :D
but it doesn't work.
stra...this is what i do :D<br />but it doesn't work.<br />strangely it always loads the old unedited bootloader.<br />I've already deleted the old file but it always loads <br />the old, already deleted and overwritten one.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-1851506599343554402012-04-13T11:35:41.725+02:002012-04-13T11:35:41.725+02:00whatever is in /boot/truecrypt.mbr gets chainloade...whatever is in /boot/truecrypt.mbr gets chainloaded by grub. <br />to change it boot into windows adjust your settings in the truecrypt program, boot a live cd and redo the steps from "Restoring GRUB" in this tutorial.<br /><br />since i never did this, it is just theory. dont mess up your system :-)<br />-michaelmvhttps://www.blogger.com/profile/11649286082942315163noreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-49337609559367298352012-04-13T02:02:30.965+02:002012-04-13T02:02:30.965+02:00This Guide is realy good an it largely works for m...This Guide is realy good an it largely works for me.<br /><br />I have an aesthetic question.<br />It relates to the last commands to save the mbr into a file.<br />I've changed the appearance of the Truecrypt Bootloader after I have copied the file. (Userdefined password prompt)<br />So i've restored the original Truecrypt Bootloader with the Truecrypt rescue disk.<br />After this i've modified the bootloader with truecrypt again. Now I've booted my liveusb and deleted the Truecrypt.bmr and the truecrypt.backup and after this i've tried to copy the modified bootloader back into the truecrypt.* files with the same commands.<br />But now every time i try to boot the new mbr file from grub it loads the old ones witch i thought that i've already deleted and replaced.<br /><br />Where is my flaw?<br />(sorry for the simple language and grammar mistakes...)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-82074181335736184162012-04-12T19:12:30.579+02:002012-04-12T19:12:30.579+02:00Absolutly! Thx Mathy! Thx Mv!Absolutly! Thx Mathy! Thx Mv!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-62346280769761826672012-04-12T19:02:51.789+02:002012-04-12T19:02:51.789+02:00happy it works :-)
i'll pass some of the thx ...happy it works :-)<br /><br />i'll pass some of the thx on to mathy for creating this guide. its the setup i work with every day :-)<br /><br />-michael v.mvhttps://www.blogger.com/profile/11649286082942315163noreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-83915395699770183622012-04-12T18:58:34.636+02:002012-04-12T18:58:34.636+02:00OK! This clearly is a EPIC FAIL on my side. Bootin...OK! This clearly is a EPIC FAIL on my side. Booting in to a swap partion should be penalized. Oooops.<br />THANK YOU SO MUCH MAN!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-66852589482074352462012-04-12T16:11:54.071+02:002012-04-12T16:11:54.071+02:00sure buddy no problem :-)
your kopt and groot sett...sure buddy no problem :-)<br />your kopt and groot settings seem fine.<br />but i think you entered the wrong uuid in your bt boot entry:<br /><br />title BT5R2, kernel 3.2.6<br />uuid d6138c21-d8ea-4cf2-a805-e7da3ecc933f<br />kernel /vmlinuz-3.2.6 root=UUID=b1e4b4c7-122b-4b67-8e8e-a0f0ca669807 ro <br />initrd /initrd.img-3.2.6<br />quiet<br /><br />root@bt:~# blkid<br />/dev/loop0: TYPE="squashfs"<br />/dev/sda1: LABEL="System Reserved" UUID="9C16253316251036" TYPE="ntfs"<br />/dev/sda5: UUID="d6138c21-d8ea-4cf2-a805-e7da3ecc933f" TYPE="ext4"<br />/dev/sda7: UUID="b1e4b4c7-122b-4b67-8e8e-a0f0ca669807" TYPE="crypto_LUKS"<br />/dev/sdb1: LABEL="PENDRIVE" UUID="190A-066E" TYPE="vfat"<br />/dev/mapper/udisks-luks-uuid-b1e4b4c7-122b-4b67-8e8e-a0f0ca669807-uid0: UUID="b65381e9-783c-498c-8c9c-823c15e6ae49" TYPE="ext4" <br /><br /><br />try changing your boot entry to this:<br /><br />title BT5R2, kernel 3.2.6<br />uuid d6138c21-d8ea-4cf2-a805-e7da3ecc933f<br />kernel /vmlinuz-3.2.6 root=UUID=b65381e9-783c-498c-8c9c-823c15e6ae49 ro <br />initrd /initrd.img-3.2.6<br />quiet<br /><br /><br />notice the different root=UUID= setting<br /><br />lets see if this works :-)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-68339527068834137932012-04-12T14:49:44.186+02:002012-04-12T14:49:44.186+02:00thx michael, I decided to take the time and redo a...thx michael, I decided to take the time and redo all from beginning. But: same result. Another lost night, well I am learning. <br />I power on, see the grub menue where I can choose BT5 or win7. Win7 gets me to the truecrypt loader and than boots fine. When entering to BT5 it asks for my Luks password as it should, after unlocking it trys to boot but stops with Error:<br />"No init found. Try passing init= bootarg". <br /><br />Image: http://imageshack.us/photo/my-images/140/imag0248o.jpg/<br />I provided you with full menu.lst and boot.log information on http://pastebin.com/rT70WKjY <br /><br /><br />I carefully followed the guide. But... I really want this setup to work. <br />I have absolutly no idea what is wrong. I tried fsck dev/sda5 and also updated grub, from the liveUSBsystem. Your help is highly appreciated!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-14223138291117742572012-04-11T10:18:08.422+02:002012-04-11T10:18:08.422+02:00hi
i think you have errors, but i cant tell you wh...hi<br />i think you have errors, but i cant tell you what you did wrong.<br />pls compare my files to yours:<br /><br />root@bt:~# blkid <br />/dev/sda5: UUID="06763f66-1d97-4dc3-9893-2e84304bbf04" TYPE="ext4" <br />/dev/sda7: UUID="afbf1413-fe64-4ab8-889b-b742d4f55182" TYPE="crypto_LUKS" <br />/dev/mapper/cryptroot: UUID="39a75883-182d-44b0-8e7f-4eeeb2f66fea" TYPE="ext4" <br />/dev/mapper/cryptoswap: UUID="0cb92094-d87d-46fb-b859-6382c7f9b8dd" TYPE="swap" <br /><br />----------------------<br /><br />/boot/grub/menu.lst<br />....<br />## ## Start Default Options ##<br />## default kernel options<br />## default kernel options for automagic boot options<br />## If you want special options for specific kernels use kopt_x_y_z<br />## where x.y.z is kernel version. Minor versions can be omitted.<br />## e.g. kopt=root=/dev/hda1 ro<br />## kopt_2_6_8=root=/dev/hdc1 ro<br />## kopt_2_6_8_2_686=root=/dev/hdc2 ro<br /># kopt=root=UUID=39a75883-182d-44b0-8e7f-4eeeb2f66fea ro<br /><br />## default grub root device<br />## e.g. groot=(hd0,0)<br /># groot=06763f66-1d97-4dc3-9893-2e84304bbf04<br />.....<br />title Ubuntu 10.04.2 LTS, kernel 3.2.6<br />uuid 06763f66-1d97-4dc3-9893-2e84304bbf04<br />kernel /vmlinuz-3.2.6 root=UUID=39a75883-182d-44b0-8e7f-4eeeb2f66fea ro <br />initrd /initrd.img-3.2.6<br />quiet<br /><br /><br />see? i would say you did something wrong in the process because you ended up with a wrong config.<br /><br />then again a "update-grub" may solve some problems :-)<br /><br />try running it and post the results. <br />pls provide the entire files next time using pastebin or something<br /><br />michaelAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-46345806133342659342012-04-09T17:37:02.092+02:002012-04-09T17:37:02.092+02:00Hey, thank you Mathy for this great guide!
Everyth...Hey, thank you Mathy for this great guide!<br />Everything worked fine, after encrypting Backtrack5R2 it booted fine. After installing win7 and finalizing grub, I get:<br /><br />"No init found. Try passing init= bootarg." <br /><br /> after Luks authentication. I can still boot in to encrypted win7.<br />I "trippel" checked all my inputs but after 5 hours of testing I don't know what went wrong. I used the exact same partitioning as you did.<br /><br />When mounting the encrypted BT5R2 partition (sda7) the links: "initrd.img" and "vmlinux" appear as broken.?<br /><br />Sorry for my noobish Question, I tried to read all google gave me but I am kind of lost.<br /><br />Any help appreciated!<br /><br />--------------------------------<br />root@bt:~# blkid<br />/dev/loop0: TYPE="squashfs" <br />/dev/sda5: UUID="cc2212a4-0694-491f-9a5f-600e82324f9b" TYPE="ext4" <br />/dev/sda7: UUID="eb6983d1-20ba-47d8-bce0-fb950484f3ad" TYPE="crypto_LUKS" <br />/dev/mapper/udisks-luks-uuid-eb6983d1-20ba-47d8-bce0-fb950484f3ad-uid0: UUID="fd550a6e-953c-4024-b006-2bee16e208e4" TYPE="ext4" <br /><br />--------------------------------<br />boot/grub/menu.lst (only changed entrys)<br />(...) <br /><br />## hiddenmenu<br /># Hides the menu by default (press ESC to see the menu)<br /># hiddenmenu<br /><br />(...)<br /><br />## e.g. kopt=root=/dev/hda1 ro<br />## kopt_2_6_8=root=/dev/hdc1 ro<br />## kopt_2_6_8_2_686=root=/dev/hdc2 ro<br /># kopt=root=UUID=eb6983d1-20ba-47d8-bce0-fb950484f3ad ro<br /><br />...<br /><br />## ## End Default Options ##<br /><br />title BT5R2, kernel 3.2.6<br />uuid cc2212a4-0694-491f-9a5f-600e82324f9b<br />kernel /vmlinuz-3.2.6 root=UUID=cc2212a4-0694-491f-9a5f-600e82324f9b ro <br />initrd /initrd.img-3.2.6<br />quiet<br /><br />title BT5R2, kernel 3.2.6 (recovery mode)<br />uuid cc2212a4-0694-491f-9a5f-600e82324f9b<br />kernel /vmlinuz-3.2.6 root=UUID=cc2212a4-0694-491f-9a5f-600e82324f9b ro single<br />initrd /initrd.img-3.2.6<br /><br />title BT5R2, memtest86+<br />uuid cc2212a4-0694-491f-9a5f-600e82324f9b<br />kernel /memtest86+.bin<br />quiet<br /><br />### END DEBIAN AUTOMAGIC KERNELS LIST<br /><br />title Windows 7<br />rootnoverify (hd0,0)<br />makeactive<br />chainloader (hd0,4)/truecrypt.mbr<br />bootAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-46202344031052362392012-03-31T16:24:51.771+02:002012-03-31T16:24:51.771+02:00hi mathy,
i'm still using this setup every day...hi mathy,<br />i'm still using this setup every day :-)<br /><br />just wanted to let you (and everyone else too) know, that if you update you system using this guide (http://www.backtrack-linux.org/backtrack/upgrading-to-backtrack-5-r2/) you end up not being able to boot into the new kernel (after step 1). you need to boot into the old kernel again, log in and execute "update-grub". then you can boot into the new kernel and continue upgrading.<br /><br />thx again for this guide mathymvhttps://www.blogger.com/profile/11649286082942315163noreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-47323266372238591742012-03-11T10:12:50.257+01:002012-03-11T10:12:50.257+01:00Great howto guide - good job.
Followed through w...Great howto guide - good job. <br /><br />Followed through with no issues (other than my own inability to type from time to time).<br /><br />Will be recommending to the community at www.in2security.org.nz<br /><br />One quick thing - if there is a way to highlight the commands from the prose that would be fab. Can be easy to miss things :)<br /><br />Thanks for your work on thisladynerdhttp://www.in2security.org.nznoreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-62265367827233715102012-03-10T13:20:31.740+01:002012-03-10T13:20:31.740+01:00Backtrack won't upgrade to r2 is this possible...Backtrack won't upgrade to r2 is this possible related to encrypting ?Unknownhttps://www.blogger.com/profile/00258017789652673759noreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-65466350011356263772012-03-09T22:33:05.984+01:002012-03-09T22:33:05.984+01:00And I was correct, accidentally referred to truecr...And I was correct, accidentally referred to truecrypt.mbt in my menu.lst as opposed to truecrypt.mbr!James P.noreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-44849213233265042992012-03-09T02:23:43.804+01:002012-03-09T02:23:43.804+01:00Hi there! Awesome guide! Thanks!
I followed your ...Hi there! Awesome guide! Thanks!<br /><br />I followed your instructions to the letter and I never ran into any problems until the very end. When I attempt to boot into Windows 7 it says "Error 15: File not found" I'm sure i've made a stupid typo somewhere and i'm still investigating.James P.noreply@blogger.comtag:blogger.com,1999:blog-3500917063499850097.post-21760235841327607372012-02-16T19:54:55.126+01:002012-02-16T19:54:55.126+01:00Good to see that you fixed the problem *and* poste...Good to see that you fixed the problem *and* posted the solution here! Will hopefully help others who are stuck in the same situation :)Mathyhttps://www.blogger.com/profile/12266874794108836514noreply@blogger.com