LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2014, 06:23 AM   #1
seth68
LQ Newbie
 
Registered: Jul 2013
Posts: 8

Rep: Reputation: Disabled
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.

Last edited by seth68; 11-04-2014 at 06:28 AM. Reason: Addendum
 
Old 11-04-2014, 07:02 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,614

Rep: Reputation: 440Reputation: 440Reputation: 440Reputation: 440Reputation: 440
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.

Last edited by malekmustaq; 11-04-2014 at 07:05 AM.
 
Old 11-04-2014, 07:22 AM   #3
seth68
LQ Newbie
 
Registered: Jul 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
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

Last edited by seth68; 11-04-2014 at 07:29 AM. Reason: Additional
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Netrunner Rolling 2014.09 review LXer Syndicated Linux News 0 10-10-2014 02:51 AM
LXer: Netrunner 2014.09.1 LXer Syndicated Linux News 0 09-28-2014 03:01 PM
LXer: Netrunner releases 32bit Rolling Edition 2014.04i LXer Syndicated Linux News 0 04-07-2014 04:40 PM
Clonezilla destroyed grub - cannot boot anymore - Need help!!! zorro_kwh Linux - Newbie 16 01-02-2014 10:31 AM
somehow i destroyed grub -- please help!! alabamaman Linux - Software 14 09-25-2007 03:07 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration