English
Ask Your Question
0

reinstall grub bootloader to a different partition Fedora 19

asked 2013-08-14 03:46:02 +0000

roruka gravatar image

updated 2013-08-14 10:16:14 +0000

During Fedora 19 install, I couldn't choose where to install grub bootloader, it would only allow to select hda, contrary to Ubuntu/Mint where I could choose a specific partition where to install grub.

Now I want to encrypt my Windows partition (dual boot, yes, shameless) with Truecrypt, thus replacing grub in the MBR with TC bootloader, then chainload the Windows bootloader with EasyBCD, and point to the linux partition for the grub bootloader.

Question: how do I reinstall grub into dev/sda3?

Here is my HDD current configuration:

dev/sda1 NTFS 100MB [Windows boot partition]

dev/sda2 NTFS 100GB [Windows system partition]

dev/sda3 EXT4 500MB [supposedly /boot from where I think grub should be pointing ]

dev/sda4 extended 360GB

----dev/sda6 210GB lvm2 pv [LUKS encrypted fedora LVM group, with /root /home /swap and /data ]

----dev/sda5 120GB NTFS [data, empty stupid partition because it will most likely not be recognized by Windows anyway, I'll probably format it as Ext4 later]


Here is what I've tried in console:

[nup@localhost ~]$ sudo grub2-install /dev/sda3 /usr/sbin/grub2-bios-setup: error: guessing the root device failed, because of `cannot stat ‘/dev/sda6 ’: No such file or directory'.

[nup@localhost ~]$ sudo grub2-install /dev/sda4 Invalid device ‘/dev/sda4’. Usage: /usr/sbin/grub2-bios-setup [OPTION...] DEVICE Try '/usr/sbin/grub2-bios-setup --help' or '/usr/sbin/grub2-bios-setup --usage' for more information.

[nup@localhost ~]$ sudo grub2-install /dev/sda6 /usr/sbin/grub2-bios-setup: error: guessing the root device failed, because of `cannot stat ‘/dev/sda6 ’: No such file or directory'.

edit retag flag offensive close delete

3 Answers

Sort by » oldest newest most voted
0

answered 2013-08-14 10:17:38 +0000

http://fedoraproject.org/wiki/Grub2

Read up ;)

edit flag offensive delete publish link more
0

answered 2013-08-16 07:04:22 +0000

roruka gravatar image

Thanks for your replies.

Thank you FranciscoD_ I can't believe I missed that page the whole time! Looks like the wiki is more helpful than the manual sometimes :)

I'll keep fiddling this issue some more in the upcoming weeks and see what the best solution.

edit flag offensive delete publish link more
0

answered 2013-08-14 09:09:13 +0000

rickhg12hs gravatar image

I ran into the same issue updating from F17 to F19. It seems the newer GRUB2 is too large for partitions now and it is dangerous to install there. You can force it if you want. Search for "install grub2 to a partition" to see how to do it.

For now, I'm sticking with the F17 GRUB2 as it seems to work fine and fit in the partition.

edit flag offensive delete publish link more

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

Add answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers to your questions.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question tools

Follow
1 follower

Stats

Asked: 2013-08-14 03:46:02 +0000

Seen: 4,128 times

Last updated: Aug 16 '13