Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-01-2011, 08:30 PM   #1
LQ Newbie
Registered: Apr 2011
Posts: 3

Rep: Reputation: 0
Uninstalling Ubuntu 10.10 (or moving onto another hard drive)

I installed Ubuntu 10.10 on my laptop alongside Windows 7 on the second 320 GB hard drives and now I want to replace it with a 750 GB hard drive, but when I removed it the grub was gone and Windows (on the first hard drive) wouldn't load. This was a mistake, since the grub is installed on the same hard disk as Ubuntu. I want to use GPorted to delete the partitions on the hard drive, but when I boot with it and use the hard drive partition editor it won't let me delete or move one of the partitions. Does this partition contain the grub and if so how do I move it onto my other hard drive?
Old 04-01-2011, 10:10 PM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,706

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
There are two (at least) parts to a boot-loader. The bit the BIOS loads (from the MBR), and the support modules (from /boot).
In your case, the former is in the MBR of your Win7 disk, and is looking for the rest on the second disk. You can't remove that second disk, or remove the partitions on the disk - either will cause boot failure.
gparted won't let you delete those partitions from Ubuntu because those partitions are mounted - this just saved you an awful lot of trouble. Be thankful.

Spend some time researching this - there are articles all over the 'net. You'll need to copy the Ubuntu partitions over, then fix the bootloader. Then you can remove the disk.
Another option is to restore the Win7 loader to the MBR of disk one, swap the disks out, and re-install Ubuntu. Check out Microsoft Technet for how to restore their loader.
Old 04-02-2011, 04:00 PM   #3
LQ Newbie
Registered: Apr 2011
Posts: 3

Original Poster
Rep: Reputation: 0
I did just that and a lot of sites are saying that I have to create a Windows 7 installation DVD (don't have one) or a recovery disc, which is what I'm downloading right now, but it seems kind of small at only 165 MB. I'm also creating back up system image of my computer right now. Here's one solution I found:

Originally Posted by
To restore the Windows Vista/7 bootloader, you must first boot off your Windows Vista/7 installation DVD.
If you have one of the many OEM computers that didnt come with a Vista/7 installation disk, you can get the same effect with a Vista recovery disk, which you can download for Vista or Win 7.
When you get to the Regional settings, select your Location/Keyboard setting then click next. On the next page you must click on "Repair your computer."

On the next page, if it finds your Windows Vista/7 installation, make sure it is UNSELECTED before clicking next.
Then click on "Command prompt". From there, type in the folowing:

bootrec.exe /fixboot
bootrec.exe /fixmbr
Now close the two windows and click "Restart."

Take out your Vista/7 DVD and hopefully, you will be left with your Windows Vista/7 Bootloader.
I don't like the sound of that "hopefully," it sounds like that might not work.
Old 04-02-2011, 04:13 PM   #4
LQ Newbie
Registered: Apr 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Another site said I can just delete the Ubuntu partitions in the disk management window and just reboot using a Windows 7 recovery disc. I also thought about doing this, but it seems kind of risky deleting those partitions when I'm not sure if the recovery disc will work and I didn't want to have to reinstall windows again. If this is my best and fastest option then I'm going for it, because there doesn't seem to be any easier way. Next time I'm thinking of installing Ubuntu using a Wubi installer, which would have prevented this problem from happening in the first place.

Last edited by jlcrogue; 04-02-2011 at 04:23 PM.


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
Moving files from a Linux hard drive to a Windows Vista Premium hard drive WolfMan51 Linux - Hardware 5 07-12-2011 09:19 AM
Moving slackware from one hard drive to another. aqayyum Slackware 7 03-01-2006 11:57 AM
moving to a new hard drive n1wil Linux - Software 4 05-21-2003 02:38 PM
Uninstalling Linux from Second Hard Drive RommelP Linux - General 1 03-10-2003 07:02 PM
moving my hard drive illtbagu Linux - General 2 02-08-2003 04:56 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration