delete dual boot Ubuntu partition and convert to primary hard drive c:


  1. Posts : 2
    windows 7 professional
       #1

    delete dual boot Ubuntu partition and convert to primary hard drive c:


    I installed Ubuntu on a older Toshiba laptop. When I boot up it asks me to select either Windows 7 or Ubuntu. I want to get rid of the Ubuntu disk partition and give that 2.9 GB space to my primary hard drive. I go into compmgmt.msc but I can't execute any commands on that disk partition. Any ideas?
    Last edited by jekemi; 14 Mar 2012 at 11:17. Reason: spelling error
      My Computer


  2. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #2

    So you wanna get rid of ubuntu totally?
    first tap F8 multiple times to enter recovery environment
    select "command prompt"
    bootrec /fixmbr
    bootrec /fixboot

    -now the default MBR has been restored (don't know if ubuntu did change that)

    diskpart
    list disk
    sel disk 0 (or 1 or 2)
    list part (note the number of ubuntu partition)
    sel part X (if X is number of ubuntu partition. be very sure to select right partition!!!)
    delete part

    try to boot. post output of "disk management" afterwards
      My Computer


  3. Posts : 2
    windows 7 professional
    Thread Starter
       #3

    Kaktussoft: thanks for the advice. I pressed F8, entered the recovery mode, selected command prompt, and executed your suggested commands. When I got to "delete part" I got the following message: "cannot delete a protected partition without the force protected parameter set." I selected Override and the partition was deleted. I now have 2.9 GB of unallocated space. How do I allocate it or attach it to my primary partition, C: ? Or, can I somehow use it as a drive to store files? Right clicking on the unallocated space in Win 7, computer management, doesn't allow me to do anything to it.
      My Computer


  4. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #4

    So ubuntu is gone. Do you still see it as a boot option?
    Please post a full blown screenshot of "disk management"
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:31.
Find Us