LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-21-2017, 05:40 AM   #1
synchlavier
Member
 
Registered: Feb 2013
Location: southern california
Distribution: fedora and debian
Posts: 37

Rep: Reputation: Disabled
Question Grub 2 Installation Issues


I recently attempted to install Debian on a stick from my laptop which runs Windows 7 Professional Edition. During this attempt I decided to install Grub 2 on my native HDD which runs Windows 7. When I rebooted my laptop after installing Grub 2 I was greeted by the Grub rescue prompt. Note - I had a terrible time installing Debian on a stick and gave up on the entire enterprise in the end as it just wouldn't install. I recently installed Linux Mint on a stick and am able to run it on the same laptop after changing BIOS settings to boot from stick. I had great success with Mint as it installed with ease. Mint gives an option to install Grub 2 natively. Can I go ahead and install Grub 2 from Mint to my laptops HDD even though there is a Grub program that has gone into rescue mode on the same laptop ? Will the new installation of Grub 2 bypass my previous installation of Grub 2 which runs in rescue mode and allow me to finally access my laptop ? If not is there a command set I can use in Mint terminal to either fix or remove Grub 2 from my laptop while Mint is running on a stick connected to my laptop. My native HDD is mounted and I can access all my files...I just cannot boot into windows from my native HDD as I'm greeted by the Grub Rescue Prompt. Any solutions ??

Last edited by synchlavier; 02-21-2017 at 05:56 AM.
 
Old 02-21-2017, 06:06 AM   #2
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 3,934

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
Quote:
Can I go ahead and install Grub 2 from Mint to my laptops HDD even though there is a Grub program that has gone into rescue mode on the same laptop ?
Yes, but If you boot without the stick inserted you will still get the grub-rescue prompt.
 
1 members found this post helpful.
Old 02-21-2017, 06:19 AM   #3
petelq
Member
 
Registered: Aug 2008
Location: UK
Distribution: openSUSE(Leap and Tumbleweed) and a regularly changing third
Posts: 436

Rep: Reputation: Disabled
If your hdd is large enough, and you've had success with mint, why don't you install mint on a separate partition on the hdd? You can then set grub to include windows 7 and make windows the default boot system if that's your preference.
 
1 members found this post helpful.
Old 02-21-2017, 06:31 AM   #4
synchlavier
Member
 
Registered: Feb 2013
Location: southern california
Distribution: fedora and debian
Posts: 37

Original Poster
Rep: Reputation: Disabled
To purple it's baffling why that'd be the case since Grub would be installed on the HDD and not Stick -
 
Old 02-21-2017, 06:34 AM   #5
synchlavier
Member
 
Registered: Feb 2013
Location: southern california
Distribution: fedora and debian
Posts: 37

Original Poster
Rep: Reputation: Disabled
To Petelq - I could do that however, I like Windows 7 Pro very much and I'm worried that this kind of configuration may wreak havoc on my Windows OS down the line. Linux and Windows don't get a long...at least not Windows 7 Professional -
 
Old 02-21-2017, 06:47 AM   #6
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 3,934

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
Some of the files that grub needs to load are located in /boot/grub on the stick and not in the MBR of the hd. If it is a uefi system it is possible to have all the grub boot files on the efi partition, but I don't think Debian does that by default.
 
1 members found this post helpful.
Old 02-21-2017, 06:55 AM   #7
synchlavier
Member
 
Registered: Feb 2013
Location: southern california
Distribution: fedora and debian
Posts: 37

Original Poster
Rep: Reputation: Disabled
colorpuple is there a tool I can download in Mint that will allow me to remove Grub from the laptops HDD or repair it
 
Old 02-21-2017, 07:36 AM   #8
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 3,934

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
you will need a windows repair disk or maybe be able to boot into windows repair mode from the bios. Here is a how to:
https://www.howtogeek.com/howto/3252...ader-problems/ It is possible to boot the stick install from windows boot loader with grub4dos/wingrub https://sourceforge.net/projects/grub4dos/
 
1 members found this post helpful.
Old 02-21-2017, 07:54 AM   #9
synchlavier
Member
 
Registered: Feb 2013
Location: southern california
Distribution: fedora and debian
Posts: 37

Original Poster
Rep: Reputation: Disabled
Colorpurple - I believe Ubuntu has a removal tool - I'd read about it not to long ago that can be downloaded - What's more I also believe Kali has it's own unique set of tools for just such a task -
 
Old 02-21-2017, 08:01 AM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,906

Rep: Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859
The best way to put windows code in the MBR (if you do have an MBR system?) is with the windows installation DVD. If you don't have that, use the suggestions in the post above.

If you were trying to install Debian on a stick, I'm not sure why you chose to install Grub code to the MBR of the harddrive on which you have windows. Would have been better to install to the MBR of the stick which would have kept them separate. If your install of Debian to the stick would have been successful, you would need to have it attached to boot anything since the code in the MBR of the harddrive would be looking for Grub files on the stick since the code in the MBR is tiny and simply points to the necessary boot files on the Debian partition.

If you have a working install of Mint on a stick, you could boot the laptop with windows 7 on it from the Mint stick and run: sudo update-grub which should add the windows install to the Mint boot menu. This would be a temporary solution which should allow you to boot windows to replace the code in the MBR with windows code.
 
1 members found this post helpful.
Old 02-21-2017, 09:36 AM   #11
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, fedora,Xubuntu, others
Posts: 3,934

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
Another thing you can do is install grub to stick and boot from bios by pressing esc or something similar when first turning on computer.
 
1 members found this post helpful.
Old 03-12-2017, 12:08 AM   #12
synchlavier
Member
 
Registered: Feb 2013
Location: southern california
Distribution: fedora and debian
Posts: 37

Original Poster
Rep: Reputation: Disabled
Post

Thank you all for your input - yancek you're quite correct in that Grub would have to be installed stand alone and not as a part of any Linux distribution. I resolved the issue in step # 6 of the supplied hyperlink -

http://askubuntu.com/questions/32653...-for-windows-7


I downloaded and installed the Ubuntu boot repair disk utility to a USB stick and inserted the stick to a USB port on my laptop. In BIOS settings on my laptop I set the machine to boot from USB. I started my laptop & fortunately for me the boot repair disk loaded without flaw. I then selected restore MBR on boot repair. The utility then went to work for a few seconds before prompting me that MBR had been successfully restored. I removed the stick, rebooted my laptop & low and behold after 4 weeks of tireless effort windows successfully loaded and I got my life back. A note to add here - My experience was that in this particular scenario this feat could not be achieved on Linux. Instead it was necessary to download the boot repair disk and install it using a windows machine - in my case I used Win-10 Professional for the task-

Last edited by synchlavier; 03-12-2017 at 12:37 AM.
 
Old 03-12-2017, 02:45 PM   #13
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,906

Rep: Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859
Quote:
A note to add here - My experience was that in this particular scenario this feat could not be achieved on Linux. Instead it was necessary to download the boot repair disk and install it using a windows machine - in my case I used Win-10 Professional for the task-
Not true at all and in fact, if you actually still had a bootable Mint install, that would have been easier. If Mint was bootable, you would not need to download it and burn it to a CD or put it on a flash drive, you could just add the pa in Mint and run it from inside Mint.

The important thing is you got it working and learned a little from the experience.
 
1 members found this post helpful.
Old 03-12-2017, 03:42 PM   #14
synchlavier
Member
 
Registered: Feb 2013
Location: southern california
Distribution: fedora and debian
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
if you actually still had a bootable Mint install, that would have been easier. If Mint was bootable, you would not need to download it and burn it to a CD or put it on a flash drive, you could just add the pa in Mint and run it from inside Mint.

Oh but I did...and it failed miserably although it did give a comprehensive report on the MBR issue - no I had to boot the repair utility separately from from a usb stick
 
Old 03-12-2017, 06:12 PM   #15
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,906

Rep: Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859Reputation: 1859
Quote:
Oh but I did...and it failed miserably although it did give a comprehensive report on the MBR issue - no I had to boot the repair utility separately from from a usb stick
I don't know why it didn't work for you but many people use the ppa from an installed system as described at the boot repair site below, the '2nd option Install Boot Repair in Ubuntu'. You should have all the options you have on the usb/CD.

https://help.ubuntu.com/community/Boot-Repair
 
1 members found this post helpful.
  


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
Debian Squeeze grub 2 issues boots from my installation USB SOLVED toli Linux - Newbie 1 02-07-2013 08:17 PM
Grub issues tommytomato Ubuntu 7 05-15-2012 06:52 AM
Sabayon 8 Installation issues - Sata Raid unable to boot (via grub) leo_mancini Linux - Software 1 05-02-2012 10:32 PM
Perl installation issues mod /cpan issues knockout_artist Linux - Newbie 2 05-14-2008 07:55 PM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 02:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:22 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