Results 1 to 5 of 5

Thread: Reverting to single-boot Win7 after deleting Ubuntu Partition

  1. #1
    Join Date
    Aug 2008
    Beans
    166

    Reverting to single-boot Win7 after deleting Ubuntu Partition

    I have a ThinkPad Edge E420 which came with Win7 installed. I installed Ubuntu to it as a dual-boot system. It has a Lenovo recovery partition which I didn't do anything to. I don't have any Win7 installation discs.

    I wanted to uninstall Ubuntu and just have a Win7 machine again.

    I booted from a live installation flash drive that I created with usb-creator-gtk. Then I deleted the Ubuntu partition and enlarged the Win7 partition using the space created by deleting the Ubuntu partition.

    Now when I start up I get the following message:

    error: no such partition
    grub rescue>

    "grup rescue>" is actually a prompt I get from "grub".

    I read here:

    http://forums.lenovo.com/t5/ThinkPad...ed/td-p/604231

    that you can't use the Lenovo recovery partition to restore the partition, if you have changed the partition.

    Can someone please tell me how to get this machine to be a Win7 machine again?

  2. #2
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Reverting to single-boot Win7 after deleting Ubuntu Partition

    If you are booting from an Ubuntu LiveCD, try this to restore the Windows bootloader without having to use a Windows repair CD. The command assumes Windows is on the first drive (sda) and the boot flag is set to the Windows partition. If you don't know, just try it. Don't pay attention to the output saying lilo isn't fully configured.

    Code:
    sudo apt-get install lilo
    sudo lilo -M /dev/sda mbr
    Reboot and hopefully you will see your Windows bootloader.
    Back to Xorg...

    Retired.

  3. #3
    Join Date
    Nov 2009
    Location
    Catalunya, Spain
    Beans
    14,560
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Reverting to single-boot Win7 after deleting Ubuntu Partition

    As a quick fix, you can install generic mbr with linux tools. But you shouldn't have touched the win7 partition with Gparted. If possible, always resize win7 partition with windows Disk Management.

    Anyway, to install generic mbr boot with the ubuntu cd in live mode and execute in terminal:

    sudo apt-get install lilo (you need to have internet connected)
    sudo lilo -M /dev/sda mbr

    There will be a warning about bootloader config files, just continue. It's normal.

    That should make win7 boot provided the resize with Gparted didn't mess something up.
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 18.04 LTS 64bit

  4. #4
    Join Date
    Aug 2008
    Beans
    166

    Re: Reverting to single-boot Win7 after deleting Ubuntu Partition

    Hurrah!

    Thanks, you guys, that took care of it.

  5. #5
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Reverting to single-boot Win7 after deleting Ubuntu Partition

    Glad it worked but sorry you are leaving Ubuntu. Perhaps you will try it again in the future.

    Marking the thread 'SOLVED' via the Thread Tools link at the top right of the first post might identify this solution to someone else in your situation.

    Happy computing.
    Back to Xorg...

    Retired.

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
  •