Help needed for uninstalling old Grub bootloader.

In this thread https://forums.opensuse.org/showthread.php/498310-Noob-noob-noob!!!-Help-please/page4 I talked about a problem I have with the Grub boot loader but that thread is too vague and jumps from one issue to another. So, I am creating this thread just for the Grub bootloader issue.

The issue:

I had uninstalled Opensuse but the Grub was still there. Upon start up I somehow chose Grub rather than Window 7. Some error came and boom system crashed. After that the Window bootloader got corrupted. I tried everything. Visited many Win forums but it just didn’t work. I could not even install a fresh copy as nothing would boot. I remember most of it now. Took the HD out. Used a external case and wiped it clean. NTFS formatting and then I was able to install it.

So, I had two entries. One for Win7 and another for Grub bootloader and one day by mistake I clicked on Grub and the above happened. The problem is it is still there along with my Win7 entry. I will soon install Suse permanently on my Laptop and get rid of Win7 but with the old bootloader already there I think I am going to run into more problems which can be avoided by uninstalling the old messed up one.

I quoting robin_listas here

But not complete! You removed the files that grub needed for booting,
stored on the openSUSE partition. Once a complex boot manager, such as
grub, controls booting, you can not simply erase the partition where it
resides. First you have to remove grub, and ensure the remaining
operating system can boot.

According to him I must remove the files that grub needed for booting. How should I go about it coz I am running Win7 right now. Live CD? VM box? or can it be done using Win7.

This is a bit confusing. But, most likely, one of the two following problems exists:

(a) “grub” (or “grub2”) was installed in a partition. That partition is still marked as active.

In this case, you must change the active partition to the Windows partition.

(b) “grub” is installed in the MBR. In this case, you must put back generic boot code into the MBR.

I can’t tell which is the problem.

If you have a Windows 7 install CD/DVD, or a recovery CD/DVD, you should be able to boot that, and have Windows repair the booting setup. Otherwise, we will have to find an alternative solution.

Let’s start with (a). Boot the computer to opensuse live media, or boot to the install DVD media and select “rescue system”. Either way, get to a root command line, and run the command


# fdisk -l

Post the output here. You should be able to mount a USB somewhere, and copy/paste the output to a file on the USB. Or you could handwrite it. But, in that case, be sure to include the “*” near the beginning of one line, which indicates the active partition.

Thanks for the reply. Much appreciated.
I will do this in a couple of days as soon as I get my HD from my friend back. I want to back up some data before even touching this. Will post the results as soon as possible if Win7 method does not work.

Sorry I made a mistake.

I had disabled time wait for my boot menu to avoid anymore accidents and thought that it was a Grub bootloader but now changed the settings to see what it really is and it actually is an installer.

It say:

Window 7
Opensuse 12.3 installer (local)

There is actually an Opensuse file in my C drive. It’s Opensuse_hitme.txt.

Again my bad for posting hastily without checking first.

That’s a little unclear.

If you are seeing the Windows boot manager, then all you need to do is remove an entry from the Windows boot manager with BCDEDIT or EasyBCD.

If this is a grub boot prompt, then some part of grub is still there and probably needs to be removed if you are giving up on linux for that box).

Okay … :?

So, do you still have a problem?

If so, could you please restate it so I am not confused, then we can all continue?

This is what happened 9-10 months ago. I tried to install Opensuse(I think it was double boot) and after just a couple of days it just stopped working i.e. stopped booting(this is why I thought it was a grub problem). But I must stress everything stopped working. All I say was a black screen with Opensuse 12.3 installer on the top and thats that. If I pressed enter it would just restart all over again and then the same black screen. After that I installed Win 7 and after installation and everything that Opensuse entry was still in the boot menu. Now I am trying to remember the events as well as possible but I still have two different versions of what happened next.

Version 1. A couple of days later I pressed the Opensuse installer entry by mistake and boom everything went to that previous black screen state all over again. After this I installed Win 7 again and just unclicked the time to display boot menu options to make it 0 seconds so that this never happened and the entry is still there.

Version 2. After trying to install Opensuse in dual boot and failing or getting some error I just restarted the machine after forcing shutdown. After that I deleted the Opensuse folder in the C drive and continued the use of Win 7. But a couple of days later on bootup, I clicked on Opensuse 12.3 insaller (local) boot option by mistake the above mentioned “black screen with Opensuse 12.3 installer on the top” happened. After that I had to install Win 7 again but the option was still there so I unclicked the time to display boot menu options to make it 0 seconds so that this never happened and the entry is still there.

I am 65-75% sure that it was Version 2.

Now there is just a boot entry along with Win 7 which say “Opensuse 12.3 installer (local)” and a txt file in C drive.

Okay. Still need the output for (from an openSUSE rescue disk, or ?)

fdisk -l

Note that is a lower case “L”, not a numeral one.

Downloaded rescue disk torrent from official site to avoid any problems.
Used a USB to boot it.
It did boot with message “Booting for …”
But just a second of two later I got this message

“Remove disks or other media.
Press any key to restart.”

Well used the opensuse tool this time and it worked but upon bootup different message

“secure booting in not enabled” or something. But I pressed enter and boot up started. It loaded a lot of files but then got stuck. I had to reboot into windows to report the issue but atheros 9285 stopped working. LOL

Posted on SevenForums and when I solve the issue then I get back to this.

On 2014-05-27 10:36, satnav08 wrote:

> According to him I must remove the files that grub needed for booting.

No. I said that you removed already the files that grub needed, when you
removed openSUSE, but the system was still setup to boot with grub,
which was thus incomplete and failed.

More or less, there are many possible variants.

The procedure for removing openSUSE is first to remove grub, and at the
same time restore Windows own booting, and only then remove openSUSE.

There is no grub uninstaller. You simply install another booter on top.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

http://i1150.photobucket.com/albums/o605/Mavs201/Capture_zpsfef790d8.jpg

I also made Opensuse rescue USB using the opensuse tool. I ran it but it said secure boot not enabled but my bios does not have such an option!

What would happen if I use the EasyBCD’s BCD Deployment tool to move Window 7 bootloader to MBR and just delete grldr.mbr?

As I have stated my plan is to either dual boot or run Win 7 when needed on virtual machine so I can’t really install without dealing with this bootloader ****. I have backed up my data and am ready to take risks so any crazy method will be given my full attention.

I would also say that I AM going to install Opensuse. I AM NOT one of those who just leave after a week or two back to Windows because I don’t really have a choice considering my Web Dev training coach does not even accept students with Windows. So I am not one of those who waste your time and go back to windows a week or two later. I have to learn Linux or Mac. I just bought a second laptop Asus’ high end laptop worth 1700 so I won’t be getting a mac. I will have to learn it on Linux.

So I genuinely want your help. Please don’t kill this thread.

Like I said in previous posts. I created a rescue usb using Opensuse’s tool and booted. It first said “secure boot not enabled”. I went into bios and there was not such entry so I booted it again and then just pressed enter two three times and it booted but this time it got stuck loading some files like the ones you see when a linux OS boots up with those green [OK] signs. So I rebooted into Win7 to come here and report this issue but my Atheros 9285 stopped working. I don’t know if the rescue disk caused this but I don’t really care coz I just bought a usb high gain wifi adapter which I needed for my desktop anyway so now we move back to this issue. I posted a pic in my previous post to show the bootloader file that exists there.

That should only happen on a UEFI system, with the USB booted in UEFI mode.

And if you have a UEFI system, a boot entry made with EasyBCD probably won’t work.

On 2014-05-30 16:16, nrickert wrote:
>
> satnav08;2646299 Wrote:
>> I also made Opensuse rescue USB using the opensuse tool. I ran it but it
>> said secure boot not enabled but my bios does not have such an option!
>
> That should only happen on a UEFI system, with the USB booted in UEFI
> mode.
>
> And if you have a UEFI system, a boot entry made with EasyBCD probably
> won’t work.

And then there should be a GPT partition table with an specific UEFI
boot partition.

In any case, the problem is not Grub at all, it is installing again a
Windows native booter, without harming the existing Windows.

Perhaps we could know what is happening by looking at the output of
these two commands, on Linux:


fdisk -l
gdisk -l

Or, alternatively, and way more complete, run this script:

bootinfoscript

which could be simply downloaded and run on the usb stick with the
openSUSE 13.1 xfce rescue image.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

The “secure boot not enabled” was a bios update problem and so was the wifi problem. Something wrong with the bios version I had. Now solved.

Ran rescue disk this time using Opensuse 13.1 instead of rescue disk and had this strong urge to just bloody install it but gotta solve this problem first so here is the output to fdisk -l that you asked

http://i1150.photobucket.com/albums/o605/Mavs201/IMG_20140604_212553_zps2f09d4a2.jpg

On 2014-06-04 18:26, satnav08 wrote:
>
> The “secure boot not enabled” was a bios update problem and so was the
> wifi problem. Something wrong with the bios version I had. Now solved.
>
> Ran rescue disk this time using Opensuse 13.1 instead of rescue disk and
> had this strong urge to just bloody install it but gotta solve this
> problem first so here is the output to fdisk -l that you asked
>
> [image:
> http://i1150.photobucket.com/albums/o605/Mavs201/IMG_20140604_212553_zps2f09d4a2.jpg]

Ok, so you now can boot an external usb stick, that part of the problem
is solved. Although I think the suggestion was to use the XFCE rescue
CD, burnt to an USB stick, which gets you a full graphical session for
rescue operations. You can set up internet using it and post in the
forum. No need for photos with camera :slight_smile:

The partition table looks a plain standard MBR table, with only Windows
type partitions. Your problem is that it doesn’t boot, right?

What is the sequence of events when you try to boot, what do you get?
I’m a bit lost tracking this issue.

Do you still get a grub menu of some kind, which fails to boot Windows?

In that case, the traditional Windows tool to repair this was “fdisk
/mbr” from Windows. In Windows 7 it is something else, but I don’t
remember which one.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

The command is, from a W7 command line:

*bootrec.exe /fixmbr*

The partition table looks a plain standard MBR table, with only Windows
type partitions. Your problem is that it doesn’t boot, right?

My problem is there is an entry by the name of opensuse intaller (some version I think 12.1) along with Window 7. The last time I clicked on the entry my windows stopped working and I had to reinstall but the same entry was still there******.****** I tried to install Opensuse in dual boot in Windows and that’s what caused this problem. If you want me to click again on that entry then I will but I am likely to loose my Window but the thing is I don’t care. I don’t mind losing Windows so I’m thinking instead of trying to troubleshoot this issue why not I just back up all my data(I have 500 GB ext HD) and just format/delete all the partition and just install Opensuse. Shouldn’t deleting the complete HD on my laptop just get rid of the problem. You said “The partition table looks a plain standard MBR table” that means it may not even be an issue. I may just be wasting everybody’s time but the thing is last time was a disaster. I chose the Linux entry by mistake and lost all my college projects and everything so I have refrained from experimenting with that entry to really get to the root of it. However, if you want me to experiment then I have not problem I’ll back up everything and click on that option to see what happens.

Read again.

To repeat:

Boot into Windows 7. Or to a Windows 7 command prompt.

Then:

Shutdown.

Reboot.

Should now be fixed, Windows 7 only.