Installation and boot loader [Solved]

General support questions
Post Reply
eddiener
Posts: 121
Joined: 2009/08/18 18:50:42

Installation and boot loader [Solved]

Post by eddiener » 2014/07/15 21:58:27

How do I tell the CentOS7 installation that I want the boot loader installed in my /boot partition and not in the MBR of my boot disk ?
Last edited by eddiener on 2014/07/17 13:02:00, edited 1 time in total.

centguy
Posts: 265
Joined: 2008/08/11 16:03:29

Re: Installation and boot loader

Post by centguy » 2014/07/17 07:36:57

I have the similar problem.

Actually I want to install the CentOS 7 bootloader to the first section of /dev/sda7 [ in the old
grub language, (hd0,6) ]. Then I hope to chainloader to CentOS 7 from an existing bootloader.

I saw a tiny line at the left bottom that says "Full disk summary and bootloader". Clicking
on this link reveals that there is no
comphresive option to choose. All I can see is either the MBR option or not to install a bootloader.

I am hoping the future release can fix this problem (if there is) to allow people to do a test installation
before committing to the new OS.

Fil9
Posts: 8
Joined: 2012/08/03 09:14:10

Re: Installation and boot loader

Post by Fil9 » 2014/07/17 09:09:18

Hi,
I was looking for the same for a soon-to be install (still testing in VM) and came across the following:
http://forums.fedoraforum.org/showthread.php?t=291612

Either use method by user ManfredB (after choosing to not install bootloader)
or
by chepioq user:
"After complete installation, don't reboot.
Quit the installer with CTRL+ALT+F2 and :
Code: chroot /mnt/sysimage
Code: grub2-install --force /dev/sdxx,
where sdxx is the location you want install bootloader, for me it's sda2
Code: grub2-mkconfig -o /boot/grub2/grub.cfg
after quit chroot with "exit" command and reboot.".

Regards,

Fil9

eddiener
Posts: 121
Joined: 2009/08/18 18:50:42

Re: Installation and boot loader

Post by eddiener » 2014/07/17 11:31:49

Fil9 wrote:Hi,
I was looking for the same for a soon-to be install (still testing in VM) and came across the following:
http://forums.fedoraforum.org/showthread.php?t=291612

Either use method by user ManfredB (after choosing to not install bootloader)
or
by chepioq user:
"After complete installation, don't reboot.
Quit the installer with CTRL+ALT+F2 and :
Code: chroot /mnt/sysimage
Code: grub2-install --force /dev/sdxx,
where sdxx is the location you want install bootloader, for me it's sda2
Code: grub2-mkconfig -o /boot/grub2/grub.cfg
after quit chroot with "exit" command and reboot.".

Regards,

Fil9
Thanks ! I should have realized I could force the install of grub2.

Fedora's reason for removing this option from the Anaconda installer is stupid because if you are afraid of the end-user doing something wrong you should just stop creating software. Every other Linux distro I use allows the end-user the ability to specify where they want the bootloader to be installed, whether in the MBR of a disk or in a particular partition. What is especially stupid is that the default, without an end-user even being aware of it because of the new Anaconda design which hides the bootloader option almost completely, is for the bootloader to be installed into the MBR of the first disk chosen from the Installation Destination screen. This is even worse for most people than installing the bootloader into a partition since they almost certainly have a bootloader already installed in their MBR and by installing using the "new" Anaconda you are removing it. Essentially you are taking over the end-user's machine, which is something Linux users used to always criticize Windows installations for doing.

I am a professional programmer myself and while I respect the technical know-how of other programmers I also know that many programmers are really dumb when it comes to understanding what end-users want in a product. This is yet another obvious case of that. But the ego trip of dictating to end-users is too much for many programmers. I am not blaming the CentOS people here but rather the Fedora fools who propagated this nonsense in their installer.

Fil9
Posts: 8
Joined: 2012/08/03 09:14:10

Re: Installation and boot loader

Post by Fil9 » 2014/07/17 11:43:20

Hi,

You have made very good points there, I just suppose the devs upstream (Redhat) chose that option figuring that whoever wants/installs their entreprise level linux distro will also find out the needed workarounds! :roll:

Fil9

PS: I think this post should me marked as "Solved".

anderson_thomas
Posts: 96
Joined: 2011/11/21 10:19:41

Re: Installation and boot loader [Solved]

Post by anderson_thomas » 2015/01/14 15:17:01

Hi,

I've tried the following:

HDD1: Windows7 (sda1), Windows7(2) (sda2)
HDD2: CentOS-7 (/boot = sdb3)

1. After choosing to not install bootloader!
2. "After complete installation, don't reboot.
Quit the installer with CTRL+ALT+F2 and :
Code: chroot /mnt/sysimage
Code: grub2-install --force /dev/sdb3,
where sdab is the location you want install bootloader
Code: grub2-mkconfig -o /boot/grub2/grub.cfg
after quit chroot with "exit" command and reboot.".
then I tried to copy the first 512 Byte form my /boot to a USB-Stick with

Code: Select all

dd if=/dev/sda3 of=/mnt/usb-stick/linuxmbr.bin bs=512 count=1
and inserted with a few bcdedit commands the linuxmbr.bin into Windows7
boot loader.

But after select the CentOS-7 boot menu entry in Windows7 a error was
occurred
GEOM Error
INSERT DISK...
Can anybody help...?

Thank you!

cbucher
Posts: 1
Joined: 2015/01/16 17:51:04

Re: Installation and boot loader [Solved]

Post by cbucher » 2015/01/16 20:16:01

1. After choosing to not install bootloader!

you didn't install the boot loader, thus MBR wasn't updated

Post Reply

Return to “CentOS 7 - General Support”