Ads
Tom's Guide > Forum > Linux/Free BSD > General Discussion > [Solved] Removing Linux as a boot option

[Solved] Removing Linux as a boot option

Forum Linux/Free BSD : General Discussion [Solved] Removing Linux as a boot option

Best answer from king smp.

Word :    Username :           
 

I had Ubuntu installed as a boot option on my second hard drive. I deleted the partition it was on but it still comes up as a boot option and I would like to remove it. I tried booting from the Windows boot DVD and typing various commands into the command prompt like "bootsect /n60 SYS /mbr" that I read on some other threads but they did not work. I think my situation may be different because Windows and Linux were installed on different drives.

I'm using Windows 7x64 installed on my C: drive and Ubuntu was installed on the D: drive. Can anyone tell me how I can go back to automatically booting Windows?

Reply to djsprinkle
Register or log in to remove.

You'll want to run these commands in the command prompt provided on the install disc:

bootrec.exe /fixmbr
bootrec.exe /rebuildbcd

That should do the job.

Reply to randomizer

I used those commands and got a successful operation message but Ubuntu is still appearing as a boot option.

Reply to djsprinkle

Have you tried switching around your boot order? It's quite likely that you're restoring the MBR of the drive which already had the Windows bootloader, but the GRUB bootloader is still on your first boot device, so you gain nothing. If you switch your boot order then it doesn't matter if you leave GRUB on your other drive because you won't ever be trying to boot from it.

Reply to randomizer

I'm not sure if I follow you. The D drive isn't set as a boot option at all, but even though that's where I installed Ubuntu, it still comes up as a boot option. I currently have the boot order set to CD/DVD drive as first priority then the C drive as second priority, third is disabled. What order do you suggest I switch them to?

Reply to djsprinkle

Try setting boot order to C only with nothing for the other two options. I would guess that this will give you the Ubuntu boot option still and confirm that the GRUB boot loader installed on C drive. This would be normal as the system boots from the primary drive then runs GRUB to boot the media on your D drive.

Set the CD as primary, C: as secondary and boot to rescue mode from Win7 CD:

bootrec.exe /fixmbr
bootrec.exe /rebuildbcd
fdisk /mbr

You can make sure you are working on the C: drive by physically disconnecting the D drive from the system for a moment.

If that does not work then you will have to take a look at the drive with something like gparted (on the Ubuntu liveCD) to see if we can work out what is happening.


Reply to audiovoodoo

Okay I disconnected the D drive just to be sure. When I input those commands this is what I got:

bootrec.exe /fixmbr - the system cannot find the path specified
bootrec.exe /rebuildbcd - total identified windows installations: 0
fdisk /mbr - 'fdisk' is not recognized as an internal or external command


Reply to djsprinkle

Try connecting your D: drive again and disconnecting your C: drive. It looks to me like you have them the wrong way round, otherwise it should have found a windows install.

Reply to audiovoodoo

Yeah I thought that was strange, but I'm definitely using the right driv, I booted back to Windows right after that. Maybe I should mention that my C drive is an OCZ Revodrive that boots through PCIe, so it's pretty easy to verify which drive is connected.

Reply to djsprinkle

Hmm well I never solved this one. Any other ideas?

Reply to djsprinkle

READ THIS LINK:
http://ubuntuforums.org/showthread.php?t=508927
This applies to Ubuntu.
I had Ubuntu Hardy Heron and this worked like a charm.
Let me know how you made out.


Message edited by king smp on 11-26-2010 at 08:49:09 PM
Reply to king smp

Right-click My Computer, and then click Properties.
-or-
Click Start, click Run, type sysdm.cpl, and then click OK.
On the Advanced tab, click Settings under Startup and Recovery.
Under System Startup, click Edit.
remove the line that says ubuntu
make sure to make to make a backup because if you mess up.........................

Reply to rocky_1

Please read the link I posted.
Removing the bootloader is not as simple as would you think.
It CANT be done thru windows!
Ubuntu creates a grub loader that needs to be removed with the Ubuntu Live CD
I went thru this exact same problem and that link is the only thing that worked!

Reply to king smp

Thanks for the help guys.

Rocky_1- your suggestion is helpful but it seems your specific instructions are for a different version of Windows as I don't have an option to edit or remove Ubuntu, I was however able to change the boot options to show the choice of operating systems for 0 seconds which basically eliminates my complaint but does not fix the root of the problem. Out of curiosity, I still want to get to the bottom of this and learn know how to truly lose it as a boot option instead of just hiding it. Is there a different way to edit out Ubuntu for Windows 7?

king smp-I followed the first set of instructions on the link you provided but afterwards it gets into things I have already done. I've already deleted the Ubuntu partitions and restored them with Partition Wizard, so I can't follow it any further. I decided to run "sudo gparted" anyway and I received a "can't have a partition outside the disk!" message. I'm not really sure what that means but keep in mind that Ubuntu was originally installed on a different drive than Windows.

So I have found a sort of workaround for now but the problem still exists. Is there anything else I can try now?

Reply to djsprinkle
Best answer

try looking at this: http://ubuntuforums.org/archive/in [...] 52723.html
and this: http://gparted-forum.surf4.info/viewtopic.php?id=9238
there is alot of reading there and links so take your time.
Let me know if this helps.
I will check back.

Reply to king smp

Best answer selected by mousemonkey.

------------------------------ http://img545.imageshack.us/img545/3995/bl11.gif
Reply to Mousemonkey

This topic has been closed by Mousemonkey

------------------------------ http://img545.imageshack.us/img545/3995/bl11.gif
Reply to Mousemonkey
TomsGuide.com: Over 800,000 questions and answers to address all your high-tech questions. Sign up now! Its free!
Tom's Guide > Forum > Linux/Free BSD > General Discussion > [Solved] Removing Linux as a boot option
Go to:

There are 46 identified and unidentified users. To see the list of identified users, Click here.

Tom's Guide around the World