Results 1 to 9 of 9

Thread: Replacing Ubuntu with Windows 7

  1. #1
    Join Date
    Jun 2012
    Beans
    3

    Question Replacing Ubuntu with Windows 7

    So for awhile I was trying out Ubuntu 12.04 on a virtual PC. I decided after a month of working with it that I wanted to switch from Winodws 7 to Ubuntu. So like the idiot I am, instead of setting up a dual-boot, I installed Ubuntu over Windows 7 completely. After about two weeks of more messing around I decided that it just wasn't for me. I went to reinstall Windows 7 using a bootdisk but I got a partition error. Something about not being in the proper format to install? I want to get rid of Ubuntu and replace it with Windows 7 again. Thanks for reading! Also, it's x64-bit Ubuntu 12.04, if that helps. Also, I'm not in the least very tech-savvy.
    Last edited by DexusDaxus; June 15th, 2012 at 04:59 AM. Reason: Forgot to add some info.

  2. #2
    Join Date
    Sep 2010
    Location
    Central Calif
    Beans
    1,208
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: Replacing Ubuntu with Windows 7

    I don't believe Windows will install over ubuntu (as ubuntu does). You'll need to format the disk for Windows, ntfs. Then it should install cleanly.

    Can you still get into ubuntu or is it gone already? Using gparted you can format the disk. If it's gone you can use a live linux cd--it will have gparted.

    I'm not familiar with the Windows install disk. Does it offer to format for you?
    Last edited by critin; June 15th, 2012 at 05:19 AM.
    Remember When Double-Dog dare ya's and water balloons were the ultimate weapon?

  3. #3
    Join Date
    Sep 2009
    Beans
    8,874
    Distro
    Ubuntu Development Release

    Re: Replacing Ubuntu with Windows 7

    If it is the install disc for W7 make sure it is, it will reformat the whole HD and install without removing Ubuntu first.

    It would ask you how you wanted done though in the install.





  4. #4
    Join Date
    Jun 2012
    Beans
    3

    Re: Replacing Ubuntu with Windows 7

    When I go to the directory to install Windows, I get two partitions:
    Disk 0 Partition 1 Total Size: 927.5GB Free Space: 0.0MB Type: System
    Disk 0 Partition 2 Total Size: 4.0GB Free Space: 0.0MB Type: Logical

    It won't allow me to format either from there, and I get this error:

    "Windows cannot be installed to this disk. The selected disk has an MBR partition table. On EFI systems, Windows can only be installed to GPT disks.

    Windows cannot be installed on this hard disk space. Windows must be installed to a partition formatted as NTFS.

    Windows cannot be installed to this hard disk space. The partition is of an unrecognized type."

    So I went ahead and installed GParted and I was given 3 partitions:
    Partition: File System: Mount Point: Size: Used: Unused: Flags:
    /dev/sda1 ext4 / 927.55GB 892.54GB Boot
    /dev/sda2 extended 3.96GB
    /dev/sda5 linux-swap 3.96GB

    I can't unmount the first one because, "Could not unmount /dev/sda1. The partition could not be unmounted from the following mount points: /. Most likely other partitions are also mounted on these mount points. You are advised to unmount them manually."

    I can't unmount the other two. I really hope I'm not repeating too much of what you guys have already suggested.

  5. #5
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Replacing Ubuntu with Windows 7

    1. You can't manipulate the partition from Gparted running from ubuntu on the same disk. Of course you can't unmount root since the system is running.
    Use Gparted from live mode (Try Ubuntu) if you want to manipulate partitions. To unmount swap in live mode in Gparted, right-click, select Swapoff.

    2. The windows installer told you, you can't use win7 with MBR (msdos) partition table with EFI boot mode. Linux can do that, but win7 needs gpt table to work with EFI. And you seem to have EFI boot.

    Use the ubuntu cd to boot into live mode, open Gparted, unmount swap until all keys symbols are gone, then click in the menu Device - Create Partition Tables. Click on Advanced, select GPT table. That should change the disk to GPT table. NOTE: THIS WILL DESTROY ALL DATA ON THE DISK.
    Click the green button on the Gparted toolbar to execute the changes.

    Boot with the win7 dvd and try the install again.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

  6. #6
    Join Date
    Jan 2010
    Location
    Hyperborea
    Beans
    1,440
    Distro
    Ubuntu

    Re: Replacing Ubuntu with Windows 7

    You cannot unmount a disk that you are working from. You have to boot with a Live CD or USB stick. Then run Gparted and delete all the partitions. Then try Windows again, it should see an empty disc and install OK.

  7. #7
    Join Date
    Oct 2005
    Beans
    520

    Re: Replacing Ubuntu with Windows 7

    When i use the whole disk for linux and then want to get rid of it and put windows back on i use the manufacturs cd to format the drive in question. Works every time. You could also try using a gparted live cd and format the whole drive that might work also i have never tried that,

  8. #8
    Join Date
    Sep 2009
    Beans
    8,874
    Distro
    Ubuntu Development Release

    Re: Replacing Ubuntu with Windows 7

    Quote Originally Posted by darkod View Post
    1. You can't manipulate the partition from gparted running from ubuntu on the same disk. Of course you can't unmount root since the system is running.
    Use gparted from live mode (try ubuntu) if you want to manipulate partitions. To unmount swap in live mode in gparted, right-click, select swapoff.

    2. The windows installer told you, you can't use win7 with mbr (msdos) partition table with efi boot mode. Linux can do that, but win7 needs gpt table to work with efi. And you seem to have efi boot.

    Use the ubuntu cd to boot into live mode, open gparted, unmount swap until all keys symbols are gone, then click in the menu device - create partition tables. Click on advanced, select gpt table. That should change the disk to gpt table. Note: This will destroy all data on the disk.
    Click the green button on the gparted toolbar to execute the changes.

    Boot with the win7 dvd and try the install again.
    +1





  9. #9
    Join Date
    Dec 2010
    Beans
    122
    Distro
    Ubuntu Studio 10.04 Lucid Lynx

    Re: Replacing Ubuntu with Windows 7

    Quote Originally Posted by jmore9 View Post
    When i use the whole disk for linux and then want to get rid of it and put windows back on i use the manufacturs cd to format the drive in question. Works every time. You could also try using a gparted live cd and format the whole drive that might work also i have never tried that,
    Exactly. Download the CD image from the manufacturer and prepare the drive that way.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •