LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-23-2007, 06:26 PM   #1
Yakob
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
How to remove Ubuntu from hard drive


I had Ubuntu installed with Windows as primary OS. Now I want to use only Windows, so I tried to reinstall it and Windows installation CD does not recognize the hard drive. When I try to boot from hard drive I get grub error 22. Basically I reformatted hard drive on Windows machine, and obviously and did not remove Ubuntu completely. How can I remove what is left from Ubuntu and install Windows on it.

Thank you.
 
Old 10-23-2007, 06:51 PM   #2
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
open up gparted on the ubuntu livecd and reformat the drive
 
Old 10-23-2007, 06:58 PM   #3
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 308

Rep: Reputation: Disabled
why go back?
 
Old 10-23-2007, 06:59 PM   #4
Yakob
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
What is live CD. Is that I can download from website ISO image? Can I do it with Knoppix?

Thank you.
 
Old 10-23-2007, 07:08 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
http://www.gnu.org/software/grub/gru...aq.en.html#q12
 
Old 10-23-2007, 07:13 PM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
To restore MBR for Windows, thereby overwriting Grub, Task B1 or B2 in the last link of my signature refers.
 
Old 10-24-2007, 01:25 AM   #7
amitabhishek
Member
 
Registered: Jul 2006
Location: Bombay, India
Distribution: Ubuntu (Hardy Heron)
Posts: 118

Rep: Reputation: 15
Thats right@! Why going back!!! Recently I dumped XP for Ubuntu!
 
Old 10-24-2007, 02:49 AM   #8
eboy98
Member
 
Registered: Oct 2007
Distribution: RHEL5
Posts: 64

Rep: Reputation: 15
i also suffered with this type of problem....the solution is not very good though....what i did install mandrake 10.0 and then the boot loader have been changed.....now you can install windows by xps bootable cd....i know this is not good sulution but it did work.....


__________
thanks
 
Old 10-24-2007, 05:06 AM   #9
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
If you have a boot loader problem that "Just booting tips" cannot cure it I would be interested to know.

With this proviso : If the the system boots but the kernel panic that is not a boot loader's problem because by that time the boot loader has finished its work and handed the control over to the kernel.
 
Old 10-24-2007, 06:06 AM   #10
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Choose R when the Windows installation procedure gets that far, then in the Recovery Console type:
fixmbr
 
Old 10-24-2007, 06:48 AM   #11
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
brianL,

Your suggestion is Task B2 I indicated in Post #6.

The same can be achieved by a Dos floppy which I described as Rask B1.

If the Windows is a Vista the method to restore its MBR is described as Task B7, all inside "Just booting tips".
 
Old 10-24-2007, 07:14 AM   #12
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Sorry, saikee, I missed that reference - scrolled down too quickly.
 
Old 10-24-2007, 07:19 AM   #13
pradeep2002gs
Member
 
Registered: Apr 2006
Location: india->tamilnadu->madurai
Distribution: fedora,suse,ubuntu
Posts: 84

Rep: Reputation: 15
i too have same prob but with fedora... boot loader wont allow the xp bootable cd to mount....... to avoid it i'll install ubunto and then reformat that using xp...... so better reinstall the ubunto and then try XP bootable
 
Old 10-24-2007, 06:03 PM   #14
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
Quote:
Originally Posted by Yakob View Post
What is live CD. Is that I can download from website ISO image? Can I do it with Knoppix?

Thank you.
the cd you installed ubuntu from is the livecd unless you used the alternative install cd
 
Old 10-26-2007, 01:46 AM   #15
Yakob
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you very much for your help. FYI, I followed Saikee advice and it worked. After all it was very simple.
 
  


Reply



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
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-04-2007 11:28 PM
ubuntu partitioning tool does not see external usb hard drive when installing ubuntu fakie_flip Linux - Software 2 07-30-2006 12:44 AM
Remove second IDE hard drive info from Linux gmcfarlen Linux - Hardware 5 06-22-2005 10:05 PM
remove a hard drive Mr T Donegal Linux - Hardware 1 07-14-2004 08:32 AM
Remove hard drive and it won't boot dalek Linux - Hardware 3 04-26-2004 06:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:52 AM.

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
Open Source Consulting | Domain Registration