LinuxQuestions.org
Register a domain and help support LQ
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 01-07-2014, 08:41 AM   #1
adedamola
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Rep: Reputation: Disabled
deleted linux partition causing problems to my system


Hello all, I recently deleted my linux partition from my system because I want to install a new distribution (ubuntu). I have windows running on the other partition. After deleting the linux partition from inside windows. I restarted my system but can't boot to windows. It bringing out the GNU GRUB. Please what can I do to make my system boot to windows.
 
Old 01-07-2014, 10:30 AM   #2
kareempharmacist
Member
 
Registered: Jan 2012
Location: Cairo Egypt
Distribution: CrunchBang,Linux Mint,Slackopuppy
Posts: 269

Rep: Reputation: 18
what is the message that appears to you?
 
Old 01-07-2014, 10:42 AM   #3
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 323

Rep: Reputation: 72
i think you have just a "grub>" prompt and nothing all; in that case, you have deleted config file. type this:
Code:
set root=(hd0,msdos1)
chainloader +1
boot
hd0,msdos1 means /dev/*da1 or the first partition on the disk, if you installed windows elsewhere, change it; windows 7+ boot from first partition regardless of its real partition (it has a separated 100 mb hidden partition)
 
Old 01-07-2014, 11:04 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
http://www.linuxquestions.org/questi...rtitions-4060/
In short: Install a new Linux system or repair the bootloader from your Windows installation DVD/CD.
 
Old 01-07-2014, 11:07 AM   #5
adedamola
LQ Newbie
 
Registered: Jan 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
After writing the codes, it gave this message "BOOTMGR is missing" "press ctrl+Alt+Del to restart. Which I did and it still took me to the 'grub' prompt
 
Old 01-07-2014, 11:13 AM   #6
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 323

Rep: Reputation: 72
tobi's solution it's fine too, btw, what windows are you using? in which partition it's installed? what are your disks?
 
Old 01-07-2014, 11:47 AM   #7
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Install the version of Ubuntu you want in the same partition you had the Linux distro you deleted. That will give you the boot menu again.

In the future you dont need to deleted a linux distro in order to install a new one. You can just install the new one on top of the old one. the installer will format the partition no matter what.

If must boot into windows and re partition you hard drive then the alternative is to fix your MBR by booting from a Windows install disk.

Good luck to you.
 
Old 01-07-2014, 02:15 PM   #8
jms89
Member
 
Registered: Jan 2013
Posts: 41

Rep: Reputation: Disabled
Quote:
Originally Posted by gengisdave View Post
i think you have just a "grub>" prompt and nothing all; in that case, you have deleted config file. type this:
Code:
set root=(hd0,msdos1)
chainloader +1
boot
hd0,msdos1 means /dev/*da1 or the first partition on the disk, if you installed windows elsewhere, change it; windows 7+ boot from first partition regardless of its real partition (it has a separated 100 mb hidden partition)
Do you know where I can find documentation to explain what exactly you've typed here means?
 
Old 01-07-2014, 02:25 PM   #9
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 323

Rep: Reputation: 72
http://www.gnu.org/software/grub/manual/grub.html
 
Old 01-07-2014, 02:49 PM   #10
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,131

Rep: Reputation: 333Reputation: 333Reputation: 333Reputation: 333
This is one reason I still maintain a seperate boot partition. I don't want booting to be dependant on any particular operating system being installed (i.e., I don't want the boot configuration files to be present on a partition I may delete at some later date).

---

Originally when you had only Windows on your computer, Windows installed it's bootloader into track0. And the Windows bootloader jumped to the Windows partition to pick up the rest of it's executables and configuration.

Then you installed Linux. Linux overwrote the Windows bootloader in track0 with it's own GRUB bootloader. That new GRUB bootloader then jumped to your Linux partition to pick up more executables and it's configuration. One part of the GRUB configuration was to re-jump over to the Windows boot files in the Windows partition. This is called "chainloading". So in order to boot Windows, you were dependant on three things: (1) Part of GRUB installed in track0, (2) The rest of GRUB, including it's config files, installed on the Linux partition, and (3) The "second half" of the Windows bootloader installed on the Windows partition. When you deleted that Linux partition, you wiped out (2), which effectively stopped your computer from booting anything.

So what you have now is part of the GRUB bootloader installed in track0 of your hard disk. That part of GRUB is attempting to load additional GRUB executables, and config files, from that partition you deleted. But it can't, because you deleted that partition. This is easy to repair, and others have already given you recommendations on how to do the repair. But it helps to know what happened. Then it's easier to understand the various ways you can repair it.

One way is to install Ubuntu as you plan, and that will reinstall GRUB and it's config files in it's Linux partition. The GRUB re-installation will automatically detect that you have Windows installed, and create a Windows boot choice for you. And all will be good again (until you delete the Ubuntu partition, and then the problems will reappear). Another way to fix this is to have Windows replace the GRUB bootloader in track0 with it's original Windows bootloader (the one that was overwritten by GRUB). I am not overly familiar with Windows these days, but I think they call this "repair Windows installation" and you can accomplish it by booting with your original Windows installation disks. You would take this path for repair if you no longer wanted Linux and wanted to return to a Windows-only computer. Complicating this repair path slightly may be the fact that you do not have any Windows installation disks. Your computer probably came preloaded with Windows and you did not get any installation disks. But usually they provide some "recovery disk". If not, you need someone more Windows-savvy than I am to direct you how to repair a Windows bootloader without any Windows installation disks. I'm sure it is possible - I just don't know how myself.
 
  


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
Deleted linux partition on a dual boot system...made mistake? shahidsaab1 Linux - Newbie 6 07-06-2006 01:38 AM
Deleted partition causing boot problems Parmeisan Linux - Newbie 5 06-22-2006 11:14 AM
Swap Partition in SuSe 9.1 Pro is increasing radicaly and causing system to crash tontito_tx Linux - Newbie 3 02-28-2005 01:47 PM
deleted linux partition adn the boot loader was deleted also,now i have only gnu grub boris199 Linux - Laptop and Netbook 2 01-29-2005 05:53 PM
Deleted Linux partition..big problems SeanH Linux - Software 3 08-20-2001 12:32 AM


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