I am trying to install grub boot loader on a partition /dev/sda3 (ext3 formatted), but it is not showing as an option when I run dpkg-reconfigure grub-pc.
My details are: I have a dual boot system set up with windows fully encrypted on sda1. It is encrypted using truecrypt, so truecrypt is required on the mbr of sda. I will briefly outline the steps I have taken (NB- This is dangerous, backup your boot sector first, or even better your whole HDD):
- Encrypted windows on sda1 using truecrypt
- Ubuntu 12.04 installed on extended partition sda5 (within sda2) I need a logical partition to install grub, it will not work on extended) - so I shrunk sda5 by 20 MiB and then shrunk sda2 by the same
- This allowed me to create a new logical partition sda3. I formatted it as ext3 and gave it the boot flag
- I started up a live boot disk, mounted /dev/sda5 to /mnt, and installed grub using
grub-install --force --root-directory=/mnt /dev/sda3
- This allowed me to restart and boot into ubuntu normally, happy days.
At this point, after I boot into ubuntu normally, I usually run
dpkg-reconfigure grub-pc. If I don't do this, any update to grub, or a new kernel, will overwrite the main mbr of sda. In ubuntu 10.04 this is fine, I go through the menu, and it usually gives me the option to install grub onto whatever partition I want, but now, when I run it, it only gives me two options: /dev/sda or /dev/sda5 (/dev/sda3 is missing).
Have I taken a step which stops /dev/sda3 showing up in this menu? Is there a way to fix this, or could you tell me how I can manually change the debconfig properties to get grub to install to /dev/sda3 by default.
--edit I think this is what I am looking for: http://feeding.cloud.geek.nz/2010/10/manipulating-debconf-settings-on.html