Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1724  / 2 Years ago, sun, november 21, 2021, 1:17:00

I have a Triple-Boot-System, with Windows 7, Ubuntu 12.10 and Crunchbang (a Debian derivative - unstable Debian at that).



I am trying to get all encrypted: Windows with TrueCrypt FDE, chaining grub on an extra boot partition with the Windows Bootloader on MBR.
Since Ubuntu cut out the encryption option (none in ubiquity and no alternate install), Ubuntu is not encrypted.
Crunchbang though is.



My Partition map looks thus as follows:



sda1: Win7
sda2: win7-boot junk (installed it by default - what is that anyway?!)
sda3: /boot
sda4: ubuntu
sda5: encrypted -> sda8(?): crunchbang
sda6: encrypted -> sda9(?): swap
sda7: another ext4


Thing is, after installation, I could boot Windows and Crunchbang fine. update-grub however printed out that he found Ubuntu, no Crunchbang but after reboot he just gave me Crunchbang.



Reinstalled Ubuntu, including grub on sda3. Now he only finds Ubuntu.



The latter I think is quite obvious, how should grub find an encrypted os? But could someone explain to me how I can Dual-Boot two (in theory encrypted) Linux's with grub2?


More From » grub2

 Answers
6

When you do an update-grub, it scans all the partitions it can see for OSs that it knows what to do with. If your encrypted partition is not mounted when it scans, it will not find the OSs that are encrypted.



So your first step is to decrypt the encrypted partitions and mount them to a block device. You can do this with cryptsetup:



cryptsetup luksOpen <device> <name>


So if your encrypted device is /dev/sda5 (your partition structure isn't clear), use something like



cryptsetup luksOpen /dev/sda5 crunch


to decrypt /dev/sda5 and mount the decrypted block device (not the filesystem!) on /dev/mapper/crunch. Then you can go ahead and mount /dev/mapper/crunch <some mountpoint> as normal.


[#34134] Monday, November 22, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
erettor

Total Points: 303
Total Questions: 121
Total Answers: 103

Location: Colombia
Member since Mon, May 2, 2022
2 Years ago
;