Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 477  / 2 Years ago, fri, september 30, 2022, 5:18:55

I have an encrypted dual boot Windows 7/Ubuntu System and upgraded my Ubuntu today.



Everything went smooth but my Windows is not shown in the Grub2-List anymore.
Starting up I have the Truecrypt Bootloader and after entering the Password I get to Grub (now Grub2). There my Windows 7 entry is missing now.



Here is my report:

http://paste.ubuntu.com/7569182/



Updating Grub did nothing to it. My guess is that within Ubuntu it does not recognize my Windows Installation on sda1 anymore. I can't mount it aswell.



I can only mount it via Truecrypt itself. I think I might have to manually insert the menu item for Windows into that Grub config file. I guess that after entering the password in the truecrypt bootloader it would be possible to start Windows if the item was there - just a guess though.



Edit:

I basically followed these steps to set up my system:

Dual Booting Windows 7 with Ubuntu 12.04LTS with Truecrypt


More From » grub2

 Answers
6

So the solution was rather simple and my initial guess was right.
I just added the following via

sudo gedit /etc/grub.d/40_custom



menuentry "Windows 7" {
set root=(hd0,msdos1)
chainloader +1
}


where hd0 represents my disk and msdos1 my Windows OS on the first partition of my SSD sda1. To find out which partition number you need you can use



sudo fdisk -l


which gave me



   Device Boot      Start         End      Blocks   Id  System
/dev/sda1 2048 134219775 67108864 7 HPFS/NTFS/exFAT
/dev/sda2 201328640 250066943 24369152 7 HPFS/NTFS/exFAT
/dev/sda3 * 134219776 134610943 195584 83 Linux
/dev/sda4 134610944 201328639 33358848 83 Linux


I then ran the following to update my /boot/grub/grub.cfg



sudo update-grub2


To verify the entry is in your config file just check by



cat /boot/grub/grub.cfg


Done.



The Problem I think is, that only at the time of bootloading into Grub2, TrueCrypt decrypted the Windows Partition to enable booting from it. Don't forget in my setup the first thing showing up is the TrueCrypt bootloader chaining into Grub2. Running ubuntu though, the partition is encrypted again and sudo update-grub2 just finds raw binary data.



For related problems I suggest to just try different entries in your 40_custom file before you do major changes to your system itself! Thus will be much safer - I did not have to do an image of my disc and did not have to fear data loss. Good luck!


[#24859] Sunday, October 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jectedrin

Total Points: 491
Total Questions: 105
Total Answers: 111

Location: Netherlands
Member since Mon, Jun 7, 2021
3 Years ago
;