Results 1 to 3 of 3

Thread: uninstall ubuntu and delete partition

  1. #1
    Join Date
    Apr 2011
    Beans
    17
    Distro
    Ubuntu

    uninstall ubuntu and delete partition

    hi,

    i have installed Ubuntu on a 1tb external hdd and am wanting to uninstall Ubuntu as i don't need it anymore (i have a dual boot win xp). My computer will not run any OS at all if the external drive is not connected (xp is on an internal drive). I need to free up the drive so i can use it on another computer.

    the non Ubuntu partition is in the NTFS format
    the external HDD is connected by a USB port
    the bios says it is the secondary master HDD
    i am running Ubuntu 11.04 and Win XP (SP2)
    i am not a complete novice at this type of thing but i am no expert.
    or would it be easier to take it into a computer shop and get them to do it

    Any ideas

    It is not urgent

    thanks

  2. #2
    Join Date
    Jan 2008
    Location
    Spain
    Beans
    1,185
    Distro
    Ubuntu

    Re: uninstall ubuntu and delete partition

    If I understand correctly, you have xp + ubuntu in your internal disk, and yet another ubuntu install in your external 1Tb usb disk.

    The boot files (grub) are probably in the external disk, this being the reason why the pc can't boot without it plugged in.

    If the above is true, just fire up with the usb disk plugged in, but boot in the ubuntu which is at your internal disk. Once there run
    Code:
    sudo grub-install --recheck /dev/sdx
    Where sdx is the internal disk, probably sda (but check first, twice!, with sudo fdisk -l)


    Shutdown, and fire up again without your external disk. You should be able to boot from your internal disk.
    Last edited by JC Cheloven; July 9th, 2011 at 02:10 AM.
    What's even more important than free software? - OPEN FORMATS.

  3. #3
    Join Date
    Nov 2009
    Location
    Madrid, Spain
    Beans
    1,403
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: uninstall ubuntu and delete partition

    If you wish to restore the XP MBR loader in your internal hard drive, boot into Ubuntu, open a terminal and type this command:

    Code:
    sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
    If you restore the XP loader, you will be only able to boot into XP. Once you have upgraded the MBR loader, you will be free to get rid of the Ubuntu partitions located in your internal hard drive.

    Best regards,

    Luis

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
  •