LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Netrunner (Rolling-2014.09.1) destroyed GRUB (https://www.linuxquestions.org/questions/linux-newbie-8/netrunner-rolling-2014-09-1-destroyed-grub-4175524286/)

seth68 11-04-2014 05:23 AM

Netrunner (Rolling-2014.09.1) destroyed GRUB
 
I recently tried installing Netrunner (Rolling-2014.09.1) after trying out the live version and it completely screwed up GRUB.
I used the following method to try and repair it using my Fedora partition, which had previously worked after killing GRUB when I installed Ubuntu 14.04:
1- Booted into the Live session and created a directory to mount Fedora /mnt/sysimage

2- Mounted / at /mnt/sysimage.

3- Mounted boot partition on /mnt/sysimage/boot.

4- Mount bind the following:
mount --bind /dev /mnt/sysimage/dev
mount --bind /proc /mnt/sysimage/proc
mount --bind /sys /mnt/sysimage/sys

5. Chroot'd - 'chroot /mnt/sysimage'

6. Reinstalled Grub2:
grub2-install /dev/sda
grub2-install --root-directory=/mnt/sysimage /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg

For some reason this totally failed to fix GRUB and only a Rescue disk could boot up Netrunner, in the end I made a fresh install of Ubuntu on a small 10GB partition just to get GRUB fixed, I want to try out Netrunner but at the moment it seems hardly worth it.

Any suggestions or possible fixes??

P.S. the symptom after installing Netrunner was my PC would boot into BIOS then reset and continue to reset.. After trying the above method to fix GRUB it would get through BIOS but then just a prompt on the GRUB screen and no boot options.. I don't know GRUB commands so I was stuck.

malekmustaq 11-04-2014 06:02 AM

Quote:

6. Reinstalled Grub2:
grub2-install /dev/sda
grub2-install --root-directory=/mnt/sysimage /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg

Suggestion:
Step1: Deinstall Netrunner completely first, then re-establish your fedora or ubunto to be up and running booted by grub.
Step2: Then only you shall reinstall Netrunner AND DO NOT INSTALL NETRUNNER'S BOOTLOADER.
Step3: Reboot to your running (re-established fedora or ubuntu) main distro, and run /usr/bin/update-grub, or if you have none you can issue the grub-mkconfig as you have done above or make a sript to that effect as follows--
Quote:

#!/bin/sh
set -e
exec grub-mkconfig -o /boot/grub/grub.cfg "$@"
Reboot and see if your Fedora grub or Ubuntu grub is updating with the Netrunner kernel as choice. If you are on Netrunner and wanted to modify something in the grub loader you can "chroot" into the main distro and run update-grub there in order to take effect the new configuration.

Clue:
Whichever previous distro ran good with Grub loader re-establish that one first and let its Grub handle all the rest kernels, it is capable of handling up to 100+ choices at boot time.

Hope that works.

Good luck.

seth68 11-04-2014 06:22 AM

After all of the drama with Netrunner destroying GRUB I made a second attempt after making the fresh Ubuntu install to fix GRUB..

I installed Netrunner.. the live version I have doesn't give any option to install without including its bootloader.. I then installed another fresh Ubuntu just so I had GRUB..

This time I had a GRUB screen with all of my distro's and all worked except Netrunner.. I was hoping that a different distro's bootloader would solve my problem but NO..

All of my other distro's (Fedora, Mint, Ubuntu & KaOS) booted up with no problems.. Netrunner still was being a b*tch.. Today, in the end, I installed Netrunner 14 Frontier and it installed with it's bootloader and all and no problems..

Perhaps there's something wrong with the Rolling-2014.09.1 version I have..

Thanks for the reply and suggestion malekmustaq, when I have the time I'll give it a go.. There is a noticable difference with Netrunner Rolling and 14 Frontier so I'd still like to get Rolling up and running.

From what I've read, Frontier 14 is Ubuntu based and Rolling is Arch based.. 'Don't quote me, I may be incorrect..', I do try and solve these problems myself before asking for help :)


All times are GMT -5. The time now is 08:09 PM.