LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-08-2010, 12:53 AM   #1
jackmac
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Rep: Reputation: 0
Exclamation Cannot boot windows after Ubuntu Removal!


Hi,
Today I installed openSUSE and then it's boot interface took over my GRUB boot interface. It also did not give me the ability to boot Ubuntu and came up with an error when trying to boot windows 7. So I deleted the openSUSE partion through the Disk Utility tool in Ubuntu (I used a LiveCD to do this) and then decided that I didn't really need Ubuntu any more, so I deleted that the same way aswell.

Now when I start my computer, I am greeted with the following message: No Boot device available - Strike F1 to retry boot, F2 for setup utility and F5 for Diagnostics. I am pretty sure this is a DELL error as I have a Dell Inspiron 1545. I then inserted my Windows 7 installation disk and followed the prompts, then clicked repair my computer. It came with two options, on asking me to select my operating system from the list and the other asking for a system restore file. From other threads people have been told to go into the first option. My operating system (Windows 7) was not detected but I proceded anyway. At the next screen I clicked command prompt and typed the following as per instructions in other threads
Code:

bootrec.exe/fixmbr

This Worked and displayed the message: Windows has completed the operation sucessfully
Next, As per instructions I typed
Code:

bootrec.exe/fixboot

And to my dismay this message showed up: Element Not Found

I explored the other commands in the bootrec.exe function and found the command
Code:

bootrec.exe/scanos

It searched for Windows installation files and actually found them in the D:/ drive. I discovered that when openSUSE was installed or Ubuntu or openSUSE was deleted, it changed my Windows and my Work Files, Games, Work etc. drive from C:/ to D:/

I then tried the command
Code:

bootrec.exe/rebuildbcd

It searched for the Windows Instillation Files and once again found them in D:/
It then asked if I wanted to add these files to the boot menu Yes (Y) No (N) or All (A)
I typed Y for Yes and it popped up with the error element not found. I also tried Yes but came out with the same error.

I am now totally unable to access my Windows and can only boot Ubuntu from a live CD.

I have followed advice from another forum such as: Run TestDisk, chkdsk etc.. But I haven't got anywhere. Now all I really want to do is to re-install my Windows. Will this work? I have already backed up all my files could and I was also wondering how I could put all my programs back onto my computer without needing the reinstall them.

Now when I boot my computer I get Boot Diagnostics window.

The link for the other forum so you can see what advice they offered me is here: http://ubuntuforums.org/showthread.php?t=1521530

Thanks

Last edited by jackmac; 07-08-2010 at 12:58 AM.
 
Old 07-08-2010, 03:51 AM   #2
maxie
Member
 
Registered: Jan 2006
Location: South East Coast Australia
Distribution: Kubuntu/Ubuntu
Posts: 41
Blog Entries: 5

Rep: Reputation: 15
Hmmm, don'cha hate it when this happens.


If you just want your Win 7 back and don't care about lost drivespace: There are other dedicated Live CD's out there that can fix the mbr (someone else may recommend one.) but now you're in that position, there are other options.

If you are not going to persue a Linux install then a full, complete re-install of W7 would be the best option. An hour (or so) and you're done. Well, step one anyway. Then it's rebuild.

A re-install with the Dell install disks should return your machine to it's former glory, however, if there are any unreadable (by windows) partitions, as in anything other than ntfs or fat, they will be ignored.

Then it's best to run the Ubuntu LiveCD and make those partitions ntfs, merge them, whatever is needed and then run the W7 install.

Personally, I recommend reinstalling Ubuntu, which should fix the boot manager. You could then make Windows the default but still have buntu if you need to try again.

Last edited by maxie; 07-08-2010 at 03:54 AM.
 
Old 07-08-2010, 09:57 AM   #3
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 54
I have once duplicated this bug by removing an Ubuntu partition using the Windows diskmgmt.msc utility: After doing so and rebooting, I ended up with a jacked-up GRUB that displayed an "Error 22" upon trying to load. You have to boot the Windows CD and use the Startup Repair utility to finally get rid of GRUB.
 
Old 07-08-2010, 10:31 AM   #4
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,479

Rep: Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696Reputation: 696
The most likely reason for the problem booting Ubuntu after installing Opensuse is that Opensuse uses Grub Legacy while Ubuntu uses the beta Grub2. That could have been solved by putting an entry in the menu.lst file.

And what was the error you got when trying to boot windows 7, that would have been useful information?

When you deleted the Opensuse and Ubuntu partitions, you deleted almost all of the Grub boot files as only the stage1 file is in the mbr outside those partitions. That removed your ability to boot with Grub.

Not knowing what your partition setup was prior to the Ubuntu/Opensuse installations or what it is now, it would be difficult to advise. Since you now have only windows 7, you might try to go to a windows/microsoft forum to get advice.

http://support.microsoft.com/kb/927392
http://www.sevenforums.com/tutorials...use.html?ltr=B
 
Old 07-09-2010, 02:37 AM   #5
jackmac
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Personally, I recommend reinstalling Ubuntu, which should fix the boot manager. You could then make Windows the default but still have buntu if you need to try again.
When I get to the Select Partition page It says I have no operating systems on the computer. It then asks me if I would like to format and use the entire disk. I'm lost!

Quote:
Then it's best to run the Ubuntu LiveCD and make those partitions ntfs, merge them, whatever is needed and then run the W7 install.
How do I do this?

Thanks for Your Help!
 
Old 07-09-2010, 03:11 AM   #6
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Did it not give you the option called :Specify partitions manually , Advance , Custom , Expert or something like that ?
If so choose this option
 
Old 07-09-2010, 10:25 PM   #7
jackmac
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Yes I am given the option to specify partition manually. How do I do this?
 
Old 07-09-2010, 10:39 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,053

Rep: Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971
You may be able to recover Win rather than a full install. From the Ubuntu liveCD, open a terminal and post (all) the output from this (that's a lower case ell)
Code:
sudo fdisk -l
 
Old 07-10-2010, 02:27 AM   #9
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Quote:
Originally Posted by jackmac View Post
Yes I am given the option to specify partition manually. How do I do this?
Select this option and it will show you the partitions of you're hard drive
Select the the partitions and the used of it .
Meaning /boot /linux native /home .
If you do not do it correctly it normally warns you
 
Old 07-12-2010, 01:02 AM   #10
jackmac
LQ Newbie
 
Registered: Jul 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ronlau9 View Post
Select this option and it will show you the partitions of you're hard drive
Select the the partitions and the used of it .
Meaning /boot /linux native /home .
If you do not do it correctly it normally warns you
I only get one partition. dev/sda/

Quote:
Originally Posted by syg00 View Post
You may be able to recover Win rather than a full install. From the Ubuntu liveCD, open a terminal and post (all) the output from this (that's a lower case ell)
Code:
sudo fdisk -l
Code:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector Size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x75349890

Device Boot     Start       End        Blocks    Id    System
/dev/sda1  *    1           5          40129+    6     FAT16
Partition 1 does not end on cylinder boundary
/dev/sda2       1918        56885      441524248 7     HPFS/NTFS
/dev/sda3       58191       60687      20054016  83    Linux
/dev/sda4       60688       60802      923737+   f     W95 Ext'd (LBA)
/dev/sda5       60688       60802      917496    82    Linux Swap / Solaris
 
Old 07-12-2010, 01:23 AM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,053

Rep: Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971
Who knows where that FAT partition came from - could be recovery, could b anything.
fixboot is finding that because of the boot flag, and it's a known (Windoze) filesystem. Try changing it's type to x'16' (hidden) and mark sda2 as bootable instead.
Try that.
 
  


Reply

Tags
boot, win7


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to tripple-boot Windows XP, Windows 7 & Ubuntu 10.04 LTS? Candyboy Linux - Newbie 4 06-22-2010 07:32 AM
Partition removal of old Ubuntu SanjiSasuke Linux - Newbie 12 04-09-2010 10:58 AM
GRUB won't boot into windows 7, and windows 7 recovery erases ubuntu... amiejay Linux - Newbie 2 01-03-2010 01:07 AM
Ubuntu 9.04 with dual boot (Windows XP) my Ubuntu screens freeze up gribbsy Ubuntu 4 10-20-2009 01:13 AM
Safe and complete removal of Linux from multi-boot Windows PC wazir Linux - Newbie 7 05-21-2007 09:07 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration