Ask Your Question

install grub2 to a partition

asked 2013-01-26 11:07:24 -0600

rickpz gravatar image

I was trying to install Fedora 18 in my laptop today. As it appears Fedora 18 no longer gives the option to install Grub2 into a partition. Sadly I can not install Grub2 to the MBR (I have truecrypt boot loader installed there), so I am looking to a solution to install Grub2 to a partition. Since I obviously can not do it during the install process, could someone tell me how to do it post install. I would appreciate it if you could point me to a step by step guide, or give step by step instructions.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-02-02 08:06:21 -0600

rickpz gravatar image

Ok I finally managed to install an encrypted version of Fedora 18 alongside a TrueCrypt encrypted windows installation. Where is how I have done it: First make sure you have the recovery CD from truecrypt for your encrypted volume. Install Fedora 18 as it normally would, and let it install the boot loader and overwrite the existing MBR. After logging in to Fedora, use the command

grub2-install --force /dev/sdaX

(where X is the number of the boot partition) It will display some warnings, but you should see a message stating that the installation occurred without errors at the end. next make a new Grub2 configuration

grub2-mkconfig -o /boot/grub2/grub.cfg

After this restart and use the truecrypt recovery CD to install the TrueCrypt BootLoader, and volume header. Remove the TrueCrypt CD restart and you are all done. Now you should see the Truecrypt boot loader when you start your machine and pressing ESC should load GRUB2.

Thanks to scottro for pointing me in the right direction.

edit flag offensive delete link more

answered 2013-01-27 07:14:14 -0600

scottro gravatar image

grub2-install --force /dev/sda2 (for example).

Supposedly it's dangerous. I've done it many times without issue, but always on a machine where I could afford to lose everything. Use at your own risk.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-01-26 11:07:24 -0600

Seen: 8,727 times

Last updated: Feb 02 '13