LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   uninstalling grub from vista (https://www.linuxquestions.org/questions/linux-newbie-8/uninstalling-grub-from-vista-550172/)

cliff 04-30-2007 01:03 PM

uninstalling grub from vista
 
I want to uninstall grub and ubuntu so that i'm only running vista. i can edit grub so that other operating systems is my only option, but i still have that extra step before booting to vista. how can i eliminate grub from my system?

GrapefruiTgirl 04-30-2007 01:35 PM

Easiest way would be to use Vista's recovery console from the CD, if it has one, and repair the MBR (Master Boot Record). As for removing Ubuntu, just delete or format the partition.

bsdunix 04-30-2007 01:48 PM

Uninstalling Linux
http://www.linuxforums.org/forum/lin...ing-linux.html

cliff 05-01-2007 07:53 AM

thanks for the suggestions. i've tried the recovery console, easyBCD 1.52, VistaBoot 3.2, Bootcfg /rebuild, fixmbr, fixboot c:, just to name things that hsve not deleted GRUB on my machine. i think that grub runs before vista, so all the suggestions are for how to fix the BCD (old mbr) and not how to eliminate GRUB. i tried loading grub on a memory stick, but that didn't work. i will say that grub works well, but i want that bad boy off my machine. i know that grub is stored in linux and that the grub instruction merely refers the user to the files which are the grub boot options and i can edit those so that only vista is an os choice, but i'm tired of that extra step before logging into vista...... still need a solution.

GrapefruiTgirl 05-01-2007 08:01 AM

Hmm.. It looks like GRUB is more durable that I had imagined. :p I don't know what to suggest specifically, but I entered 'uninstalling GRUB' into Gooooogle and got a whack of promising looking results on the first page. Perhaps the exact and proper method is right there?
Quote:

Originally Posted by http://www.gnu.org/software/grub/grub-legacy-faq.en.html#q12
12. How to uninstall GRUB from my hard disk drive?

There is no concept uninstall in boot loaders, because if you uninstall a boot loader, an unbootable machine would simply remain. So all you need to do is overwrite another boot loader you like to your disk, that is, install the boot loader without uninstalling GRUB.

For example, if you want to install the boot loader for Windows, just run FDISK /MBR on Windows. If you want to install LILO (I can't imagine why you want to do such a thing, though), run /sbin/lilo on GNU/Linux.


cliff 05-01-2007 05:33 PM

hey GrapefruiTgirl and others,

i finally found the solution to over-writing vista's bootloader. the fdisk /mbr people keep suggesting as a fix for vista only works for XP and earlier OS. the program i've discovered {Mbrfix} discussion can be found at: http://www.sysint.no/Nedlasting/MbrFix.htm
This is a good utility (MBRFix.exe) for vista. the program should be run from command prompt and the directory that contains the program. for example c:\Users\username\folders...\mbrfix.

To download the file: http://www.sysint.no/en/Download.aspx thanks for your efforts cliff

syg00 05-01-2007 05:40 PM

Sounds like you have more than one hard disk.
I guess you don't care now .... ;)

rico001 04-24-2008 09:13 PM

Quote:

Originally Posted by cliff (Post 2730894)
I want to uninstall grub and ubuntu so that i'm only running vista. i can edit grub so that other operating systems is my only option, but i still have that extra step before booting to vista. how can i eliminate grub from my system?

Here's another way.


I downloaded Super Grub ISO and created a bootable CD with it. You can read about it here:

users.bigpond.net.au/her...rubDiskPage.html

Using Super Grub program, I loaded the Windows section and told it to Fix Windows Boot. It didnt have Vista as an option when doing this, so I chose the Windows 2000/XP Option.

And that totally wiped Grub, and reinstalled Vista MBR. Partition table and boot sectors.

However, interestingly, Vista still wouldnt boot, but after 1 hour, I realises why. For some strange reason, Super Grub's Windows Restore function, altered my "Active" partition to another partition. So I had to make the initial partition that contains Vista as "Active". If I didnt, Vista complained that it couldnt find BOOTMGR and couldnt find C:/windows/winload.exe

http://supergrub.forjamari.linex.org/?section=download

pixellany 04-24-2008 09:32 PM

rico;
OP has not been here for 1 year, and therefore may not be listening.....;)

ngcooper23 05-17-2008 12:20 AM

Ok, Your all wrong, stop thinking XP and think Vista
 
Put the Vista Install Disk into the drive and boot it up, select your language, select repair, select which partition/instalation to repair, click open Dos (last option on the list)(2bit - black screen with white text for you newbs), type the following:

"bootrec.exe /FixMbr"

do not include the quotes!

Hope this helps, cause it just worked for me and I have been trying to fix this GRUB Error 2 for days! Ahhhh my baby is back in action!

X-Wired Service Inc.
N. Cooper
xwired.service@gmail.com

dkc.com 05-31-2008 06:25 PM

Confusion of Newbees
 
Plz read my query carefully friends.

I am a common user of windows and because of curiosity I installed Ubuntu 8.10 on my system with multiboot option. I like that very much but it was installed on a very small partition of 4.5 gb so i felt it wasn't enouh. As a result I bought a 320 GB external hard drive and decided to install ubuntu on it. so I deleted the ubuntu partition from hard drive.

One more thing, I haven't received any installation cd from my laptop manufacturer but they have provided the os files on a small partition of the hard drive itself.

So, after uninstalling ubuntu from my hard drive, i faced the GRUB error.I couldn't find a way, so I installed ubuntu again on the same partition and then it worked. Then checked this forum which suggested to have a bootable disc for Vista, which I haven't got.

I also downloaded and tried auto_super_grub_disk_1.0.exe but it is very difficult for the primary user like me.

The situation now is first of all I have to face grub and afterwards I have to face another option manu for vista and auto super grub disc.

Is there any way out? Can I make a bootacle cd rom from my os? Is there any easy method for removing ubuntu and Grub? Preferably no command lines, step by step information to follow.

I will be very thankful.

rmurphyxxx 06-11-2008 04:10 PM

I had similar problems trying to remove GRUB. I was finally able to remove it using the recovery console | command prompt | bootrec command.

> bootrec /FixBoot
> bootrec /FixMbr

I had to do this a couple of time in various order for it to work for some reason.

ngcooper23 06-15-2008 12:23 PM

Another answer
 
The is a way to access the recovery partition, which is usually the same set up as the Windows CD, if you are in Vista. Acess the recovery, find the command prompt, and enter

bootrec.exe /FixMbr

that works for me, if you are in XP then you have to use the old Mbr command which is something similar but IDK, i am a vista guy... and every needs to upgrade any cause they are wasting time and money on XP updates and security stuff! MS needs to focus as much as possible on Vista, to kill the evil competition! MAC!!!! Ahhhhh!!!

will101 06-22-2008 02:18 PM

a thousand thankyous
 
Quote:

Originally Posted by ngcooper23 (Post 3155935)
Put the Vista Install Disk into the drive and boot it up, select your language, select repair, select which partition/instalation to repair, click open Dos (last option on the list)(2bit - black screen with white text for you newbs), type the following:

"bootrec.exe /FixMbr"

do not include the quotes!

Hope this helps, cause it just worked for me and I have been trying to fix this GRUB Error 2 for days! Ahhhh my baby is back in action!

X-Wired Service Inc.
N. Cooper
xwired.service@gmail.com


that worked for me. and saved me HOURS of work. Thanks

matt dwamon 07-26-2008 06:48 PM

another way to uninstall GRUB
 
There's another way that I found that lets you uninstall the GRUB loader.

1. download EasyBCD
2. install it
3. go to 'Manage Bootloader' tab
4. select 'reinstall the vista bootloader' (this may be different)
5. click on 'Write MBR'
6. go to 'Add/Remove entries' tab
7. select Linux tab
(should be)
type: grub
name: neosmart grub
drive: (select drive that says something like 'Linux native')
8. Add entry
9. repeat 7 & 8 but the drive should be 'linux swap'

I hope this helped because it worked on mine & now I don't have the GRUB loader

tonydeku 10-25-2008 07:50 AM

Unistalling GRUB from Vista
 
Thanks a million times ngcooper23

flyingace 10-25-2008 09:37 AM

Boot loaders are far more trouble than they're worth IMO. I can't tell you how many times I've had to re-install Windows or Linux just because of loader problems.

Now I have two disks, each with an OS. I installed each OS while the other disk was UNPLUGGED so they don't even try to plop down a loat-loader. Now all I do is use the BIOS to pick which disk I boot into. Now the machine will boot into whichever OS was last used, so I don't have to answer the boot loader every time I boot up.

No boot-loader, no boot-loader problems.

fayska 03-29-2009 09:10 PM

what about this
 
Quote:

Originally Posted by will101 (Post 3191975)
that worked for me. and saved me HOURS of work. Thanks

i'm sorry but i like mac at least it was the only one that never crashed on my hands....
well i've done this crazy thing, i installed with my laptop, debian live 5.0, on an external disk, it doesn't work it installs but it doesn't recognize the working group of LINUX OS, it just doesn't work, well i want to use virtual box to do this but i must reformat the external disk, and one thing with grup and without the the disk connected with the OS it won't load another OS as well vista. ok ok recover MBRECORD and format the disk, HOW???????? safe mode with command prompt? It doesn't recognize FDISK or FIXMBR as commands. final dot on setence. vista bootable dvd or cd??? hey i have a recovery disk from asus that erases every fuckin thing on the pc goddamn. well Win98 start with cd fdisk /mbr it functions but after reeboting it doesn't load any OS....
Is there any way of creating a bootable usb drive with a command prompt line to use fdisk and format c:? oh my god old ms-dos------- answer for vitorreaper @ hotmail.com

let me explain, first i started the install and choose lvm partioning on the entire usb external disk, afeter that it installed everything and grub on master record, but when it loads it gives a message that it can't find "blabla" group and keeps waiting about a minute for the disk, and does load th OS, well iwant to recover everything incçluding the external disk, i can't just reuse it by partioning agian because grub doe'nt load unless i ahve the dosk with the instalation connected, ok.
i entered in vistas safe mode with prompt line it didn't recgnize both fdisk or fix mbr commands, i thpught that fdisk /mbr fromm win98 would solve it. no. ok reinstall debian with grub, and i will try one last command but if it does work, before that i'm going recover what i really need from the pc and after that i'm going to reinstall everything creating two partitions on the ineternal disk and external disks, one for vista other for linux on both to use however i want to and i will install both OS, thonk this will solve everything if not i fucked up... o need vista and linux for what i'm doing now sveral programs (music prgrams need tor run on windows and university things like work with ssh client on linux i don't want to use programs to connect by windows i want to work with linux... jesus is this so complicated??? i cant' lose my data that's my problem...

fayska 03-29-2009 09:58 PM

Quote:

Originally Posted by flyingace (Post 3321682)
Boot loaders are far more trouble than they're worth IMO. I can't tell you how many times I've had to re-install Windows or Linux just because of loader problems.

Now I have two disks, each with an OS. I installed each OS while the other disk was UNPLUGGED so they don't even try to plop down a loat-loader. Now all I do is use the BIOS to pick which disk I boot into. Now the machine will boot into whichever OS was last used, so I don't have to answer the boot loader every time I boot up.

No boot-loader, no boot-loader problems.

you might be right on that, but with a lapto, chosing between loading with internal or external disks is not easy as that, maybe there's a way, if you install linux on the external grub loader will be installed on the internal, and i'm shure that linux won't load, ok connect the disk internally do the instalation, and then use it externaly chosing starting with usb external. if grub is installed on the external disk it might function, but to be shure of that i must recover master boot from windows disk and only after i can do such thing. but i need to recover it... let's wait to see what happens....

fayska 03-29-2009 10:10 PM

Quote:

Originally Posted by ngcooper23 (Post 3155935)
Put the Vista Install Disk into the drive and boot it up, select your language, select repair, select which partition/instalation to repair, click open Dos (last option on the list)(2bit - black screen with white text for you newbs), type the following:

"bootrec.exe /FixMbr"

do not include the quotes!

Hope this helps, cause it just worked for me and I have been trying to fix this GRUB Error 2 for days! Ahhhh my baby is back in action!

X-Wired Service Inc.
N. Cooper
xwired.service@gmail.com

look i don't have vista install disk, i only have a recovery disk from Asus cause i have a laptop, i wll try do that loadinbg grub and vista in the f8 prompting menu and chossing safe mode with prompt line but if it doesn't work like fixmbr or fdisk commands that it doesn't recgonize them i'm not shure of what to do...

ehmads 04-22-2009 10:36 PM

trick that does it...
 
I did try this simple trick and it works for me (grub is history). I was having problem with my fedora 10 installation on my Dell XPS M1330. Vista is the other OS sharing the drive. Now, I'm ready for another run at Fedora...thanks

Quote:

Originally Posted by matt dwamon (Post 3227238)
There's another way that I found that lets you uninstall the GRUB loader.

1. download EasyBCD
2. install it
3. go to 'Manage Bootloader' tab
4. select 'reinstall the vista bootloader' (this may be different)
5. click on 'Write MBR'
6. go to 'Add/Remove entries' tab
7. select Linux tab
(should be)
type: grub
name: neosmart grub
drive: (select drive that says something like 'Linux native')
8. Add entry
9. repeat 7 & 8 but the drive should be 'linux swap'

I hope this helped because it worked on mine & now I don't have the GRUB loader


jews911 05-06-2009 05:52 PM

Thanks man
 
Quote:

Originally Posted by rmurphyxxx (Post 3181841)
I had similar problems trying to remove GRUB. I was finally able to remove it using the recovery console | command prompt | bootrec command.

> bootrec /FixBoot
> bootrec /FixMbr

I had to do this a couple of time in various order for it to work for some reason.


i did this, and it worked.
i started, (it gave a error on memory test. i pressed enter. Then it was like, "you sure that you want to start the computer?". i said "enter". then we were best buds) the computer and it worked thanks for the simple answer.

ngcooper23 06-02-2009 04:05 PM

Quote:

Originally Posted by fayska (Post 3492077)
look i don't have vista install disk, i only have a recovery disk from Asus cause i have a laptop, i wll try do that loadinbg grub and vista in the f8 prompting menu and chossing safe mode with prompt line but if it doesn't work like fixmbr or fdisk commands that it doesn't recgonize them i'm not shure of what to do...

Does the laptop have a built in Recovery Partition? If so use it, it is usually the windows CD (of sorts) just as a partition of a hardrive instead of a disk. Or barrow a disk from someone... its a wonderful world share! (*I in no way mean for you to steal from Microsoft that is for cowards, pay your dues!*)

Other options, Download Windows 7 (the RC/test beta) it is free and it isn't half bad, kinda fun to get a first look at the new OS. Us that to correct the problem, it is built significantly on the Vista platform so my previous idea /fixmbr should work. (well Windows 7 was prior to vista so i guess vista was build off it and released just to show everyone the Microsoft still was incompatent at releasing a working OS...

Final Option, Just keep Ubuntu or "your linux" OS, keep it in a small partition and work around it. I will try to find a solution... one day.

Glad to help!

Nathaniel Cooper
X-Wired Service Inc.

P.S. : I do suport the destruction of Apple!

ngcooper23 06-02-2009 04:09 PM

Quote:

Originally Posted by fayska (Post 3492077)
look i don't have vista install disk, i only have a recovery disk from Asus cause i have a laptop, i wll try do that loadinbg grub and vista in the f8 prompting menu and chossing safe mode with prompt line but if it doesn't work like fixmbr or fdisk commands that it doesn't recgonize them i'm not shure of what to do...

Oh, what modal Asus do you have, I will check it for you if need be.

fayska 06-02-2009 11:26 PM

Check this
 
There is almost no way, if you install Linux on the same disk it will be a f*** of a hard work to recover the vista loader without losing everything and formating again unless you have of course an install disk, i have two now, free keysn and download from my study department no stealing, but one things for shure best thing is to get an e-sata connection, look replace the disk inside the laptop with an external 2.5 inch disk and install linux, take it of, go the bios and change to start with an external disk like an usb dríve connect the other disk on the e-sata connection and voilá two OS running completely portable on the amount of disk space you want... you just need a laptop with e-sata connection USB transfer rate is not capable of transfering data to run an OS... but e-sata does it actually with a certain speed...
look to connect externally you need a case for the disk with an e-sata connection, try not to misunderstand with sata norm pof 2.5 and 3.5 disks, i'm talking about a connection there are some laptops with e-sata connectors built-in, and there are some connectors built on pcmcia cards, try to find them...
I have my problem solved for now, and i support apple for christ safe, best OS, best built-on pc's rarelly crashed on my hands, and really best fucking producing programs for musicians...
really i'm waiting for the linux options for this music matter let's see what comes up... by now i'm having problems with my sound card, with DEBIAN 5.0, xubuntu didn't installed error on reading some part of the disk... bleh??? i'm gonna getg a good version of xubuntu or ubuntu for it butr i like debian i jsut need to install some things like java and others to run some makefile's to intall other progs... whatr a mess to install the programsss.

fayska 06-02-2009 11:32 PM

Look carefully
 
iT HADED TO BE INSTALLED WITH THE DISK CONNECTED ON THE INSIDE OF THE LAPTOP, NOT ON THE EXTERNAL CONNECTION, OR THE LOADER WILL BE INSTALLED BY DEFAULT ON THE PRIMARY DISK WITH VISTA, AND THAT'S CRAP, JUST THE SAME THING AS DOING NOTHING... SHUTDOWN THE PC, TAKE THE DISK OF PUT THE EMPTY ONE AND INSTALL LINUX CHOSING ON BIOS TO START WITH THE DVD DRIVE...

Quote:

Originally Posted by fayska (Post 3561152)
There is almost no way, if you install Linux on the same disk it will be a f*** of a hard work to recover the vista loader without losing everything and formating again unless you have of course an install disk, i have two now, free keysn and download from my study department no stealing, but one things for shure best thing is to get an e-sata connection, look replace the disk inside the laptop with an external 2.5 inch disk and install linux, take it of, go the bios and change to start with an external disk like an usb dríve connect the other disk on the e-sata connection and voilá two OS running completely portable on the amount of disk space you want... you just need a laptop with e-sata connection USB transfer rate is not capable of transfering data to run an OS... but e-sata does it actually with a certain speed...
look to connect externally you need a case for the disk with an e-sata connection, try not to misunderstand with sata norm pof 2.5 and 3.5 disks, i'm talking about a connection there are some laptops with e-sata connectors built-in, and there are some connectors built on pcmcia cards, try to find them...
I have my problem solved for now, and i support apple for christ safe, best OS, best built-on pc's rarelly crashed on my hands, and really best fucking producing programs for musicians...
really i'm waiting for the linux options for this music matter let's see what comes up... by now i'm having problems with my sound card, with DEBIAN 5.0, xubuntu didn't installed error on reading some part of the disk... bleh??? i'm gonna getg a good version of xubuntu or ubuntu for it butr i like debian i jsut need to install some things like java and others to run some makefile's to intall other progs... whatr a mess to install the programsss.


ngcooper23 07-24-2009 09:23 PM

???
 
What is your problem you seem to ask a question before yet, you settle of the fact you see there to be no solution. GRUB is not installed onto a harddrive, it is installed into the computer MBR. as you notice simply changing the hardrive does not get rid of grub. So, if you have a question or problem with grub ask it. Your contriditive nature to your post annoys and destroys the authenticity of this forum.

zshiner 07-25-2009 05:33 PM

very very helpful
 
My issue started when upgrading my hard drive. I think that the utility I used (Seatools) copied all the partitions in the correct format, but it either left the partition with the Grub locked or screwed up the Grub.

I tried several things - even reinstalling Linux. Would not fix the Grub. So I tried deleting the Linux partition and reinstalling Linux - no dice.

I again decided to delete the Linux partition and see if I could keep Vista working.

I did two things.

1) Ran Startup repair from my Vista disk - fixes were made, however the grub error 18 remained.
2) ran "bootrec.exe /FixMbr"
with no quotes at the DOS command line with the Vista install disk as suggested in this thread

Bingo - Vista now boots.

If I was more Linux literate - I would have done the clone in Linux.

Linux needs a really easy to use Grubfixer that is Microsoft friendly

ngcooper23 08-02-2009 01:39 PM

Glab to help!
 
Quote:

Originally Posted by zshiner (Post 3620243)
My issue started when upgrading my hard drive. I think that the utility I used (Seatools) copied all the partitions in the correct format, but it either left the partition with the Grub locked or screwed up the Grub.

I tried several things - even reinstalling Linux. Would not fix the Grub. So I tried deleting the Linux partition and reinstalling Linux - no dice.

I again decided to delete the Linux partition and see if I could keep Vista working.

I did two things.

1) Ran Startup repair from my Vista disk - fixes were made, however the grub error 18 remained.
2) ran "bootrec.exe /FixMbr"
with no quotes at the DOS command line with the Vista install disk as suggested in this thread

Bingo - Vista now boots.

If I was more Linux literate - I would have done the clone in Linux.

Linux needs a really easy to use Grubfixer that is Microsoft friendly

Glad it helped!

johnsfine 08-02-2009 03:54 PM

Is there still someone looking for help in this long confusing thread that has been reopened several times?

Quote:

Originally Posted by ngcooper23 (Post 3619472)
GRUB is not installed onto a harddrive, it is installed into the computer MBR. as you notice simply changing the hardrive does not get rid of grub.

The MBR is in the first sector of the hard drive. So taking away that hard drive would certainly take away that MBR and if that had been the MBR set to load grub, grub would no longer load. (If you had more than one hard drive, then what exactly was loading what might be a more complicated question).

If you want to completely get rid of grub and be able to boot Windows, you need to write a Windows version of the MBR code to the first sector of the hard drive. If you are uninstalling Linux, you would be wise to fix the MBR for Windows before you uninstall Linux.

If you can boot Windows with grub before uninstalling Linux, there are programs you can download and run that will fix the MBR for the copy of Windows you are currently running. Then you can reboot and see you get straight to Windows without grub. Then deinstall Linux. Sorry, I don't recall URL or names for any of those programs. I just recall they exist.

Depending on how the OEM you bought from set up Vista, there are probably tools in Vista (again assuming you can boot Vista with grub) that can write a bootable floppy or CD image that can be used later for basic repairs, including repairing the MBR. I don't know the details for any specific OEM. If you bought Vista without recovery media, you would be wise to find and use those tools and create recovery media before you need it.

ngcooper23 08-05-2009 02:19 AM

I was mistaken...
 
[QUOTE=johnsfine;3628758]Is there still someone looking for help in this long confusing thread that has been reopened several times?



The MBR is in the first sector of the hard drive. So taking away that hard drive would certainly take away that MBR and if that had been the MBR set to load grub, grub would no longer load. (If you had more than one hard drive, then what exactly was loading what might be a more complicated question).

QUOTE]

I was mistaken to say that the MBR is not located on the HD, which it is, I have multiple HDs in my PC now, so grub is no longer need, simply chnaging the boot order works far better than grub.

Use this in Vista
"bootrec.exe /FixMbr"

use this in XP
"fixmbr"

Windows 7 Note
I am going to purposefully get a grub error in Windows 7 to see if the Vista commands work, I would not recommend anyone try this for fun... but I like to have fun.

tharpa 01-02-2010 10:42 AM

Quote:

Originally Posted by ngcooper23 (Post 3155935)
Put the Vista Install Disk into the drive and boot it up, select your language, select repair, select which partition/instalation to repair, click open Dos (last option on the list)(2bit - black screen with white text for you newbs), type the following:

"bootrec.exe /FixMbr"

do not include the quotes!

Hope this helps, cause it just worked for me and I have been trying to fix this GRUB Error 2 for days! Ahhhh my baby is back in action!

X-Wired Service Inc.
N. Cooper
xwired.service@gmail.com

That worked great, NG! Thanks!

na5m 07-09-2010 02:28 AM

Make Active
 
Just two more cents worth: If your Windows installation still won't boot despite all of these excellent suggestions, one last thing to check is to make sure that the correct partition is marked as active. If Linux usurps the active partition, Windows is too stupid to realize that its system partition is no longer active (when running these startup repair tools).


All times are GMT -5. The time now is 12:30 PM.