PDA

View Full Version : [ubuntu] Removing Ubuntu - Help Please :-)



Jerry786
January 28th, 2011, 04:11 PM
Hey guys, i need to remove ubuntu and restore my system to the way it was previously. I need to do this as i need to sent my laptop off for repair

I have no CD/DVD drive nor am i able to boot into Win7 recovery to reinstall Win 7 [Dont even ask :(]

Instructions please?
Many Thanks

ebasa
January 28th, 2011, 04:15 PM
Maybe just wipe the drive? What type of repair?

Jerry786
January 28th, 2011, 04:32 PM
Maybe just wipe the drive? What type of repair?

Hardware repair. How do i wipe the drive, i have no CD/DVD Drive nor can i boot into Win 7 recovery

Ive tried deleting the ubuntu partition but it says grub menu error or something on boot up, Had to reinstall Ububtu to get it working again

Jerry786
January 28th, 2011, 05:08 PM
Deleted the ubuntu partition, rebooted...

I get this message
GRUB- error: no such partitieon grub rescue

Please help me with this nightmare

mharrison
January 28th, 2011, 05:10 PM
Try reading over this to restore the windows MBR

http://ubuntuforums.org/showthread.php?t=622828

Jerry786
January 28th, 2011, 07:57 PM
Try reading over this to restore the windows MBR

http://ubuntuforums.org/showthread.php?t=622828

:( no luck

How do i repair MBR

mharrison
January 28th, 2011, 08:02 PM
:( no luck

How do i repair MBR

Sorry, I should have taken a minute to explain...was in a hurry.

Boot from a Live CD of Ubuntu.

Open a terminal and type in:

sudo fdisk -l

This will give you a listing of your current partition table.

You are looking for a line that has NTFS as the System type.
You want to make a note of the /dev/hd portion. For example, if the NTFS line is on /dev/hda1 you want to write that down.

Then run

sudo apt-get install ms-sys

followed by

ms-sys --mbr /dev/hdX
replacing the /dev/hdX with what you wrote down above.

After you do this try to reboot and see if your Windows boots up first.

Jerry786
January 28th, 2011, 10:35 PM
It says E: Unable to locate package ms-sys when entering second command

Any ideas? I need to get this sorted as soon as
Thanks

mharrison
January 28th, 2011, 10:52 PM
I'm sorry, it appears I should read more too. The ms-sys is apparently no longer in the repos.

Try this instead



sudo apt-get install syslinux
sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sdaAnd replace sda if you want to install the MBR to a different drive. Or another method:



sudo apt-get install mbr
sudo install-mbr -i n -p D -t 0 /dev/sda

For either method, remember that the /dev/sda would be what you wrote down before for the Windows Partition's Drive.

presence1960
January 28th, 2011, 11:14 PM
Boot your Ubuntu Live CD/USb, choose try ubuntu. When the desktop loads open a terminal and run
sudo apt-get install liloIgnore the warnings and proceed. This will install lilo to Live session.

Next in terminal run
sudo lilo -M /dev/sda mbrThis will put a generic windows boot loader on the MBR.

Reboot without your Live CD/USB and you should boot right to windows. Use Windows disk management to claim the space from Ubuntu back to C:

Jerry786
January 29th, 2011, 01:48 AM
Boot your Ubuntu Live CD/USb, choose try ubuntu. When the desktop loads open a terminal and run
sudo apt-get install liloIgnore the warnings and proceed. This will install lilo to Live session.

Next in terminal run
sudo lilo -M /dev/sda mbrThis will put a generic windows boot loader on the MBR.

Reboot without your Live CD/USB and you should boot right to windows. Use Windows disk management to claim the space from Ubuntu back to C:

Thank you both for the replies. I tried your way Presence1960, but when i reboot..It says BOOTMGR Missing?

... How do i resolve this?
Thanks

Jerry786
January 29th, 2011, 02:15 AM
Just to add, i cannot boot into windows 7 recovery mode as i previously stated :(

steveneddy
January 29th, 2011, 04:52 AM
why can't the OP simply install Windows from the CD and then take it to the shop for repairs?

I know - silly question, but I had to ask.

Khakilang
January 29th, 2011, 04:58 AM
The OP say he doesn't have a CD/DVD drive so I guess he has to make a bootable USB and work from there.

steveneddy
January 29th, 2011, 06:33 AM
The OP say he doesn't have a CD/DVD drive so I guess he has to make a bootable USB and work from there.

Ah - stoopid me...

Jerry786
January 29th, 2011, 03:26 PM
Yup, i have no CD/DVD Drive, I messed up the recovery partition and thats the reason i cant boot into the built in windows 7 recovery mode by pressing F8

How do i make a bootable USB? I dont have back up repair disc so i assume id have to download ISO from somewhere?

I need this sorting as soon as [By that i mean Sunday], i cant send it in for repair in this state
Regret even installing Ubuntu now! :(

Jerry786
January 29th, 2011, 07:42 PM
Anyone?

slixz85
January 29th, 2011, 07:48 PM
open synaptic package manager and install unetbootin

the program is real simple and when you use it your usb stick will prolly be sdc just click the "just click the box for show all drives and click it back off actually" it will find the usb most likely.

nighttrap
January 29th, 2011, 08:00 PM
If you have another computer, prepare win 7 usb, which you can find the instructions on the net

After that boot with usb

Select "repair" option after language selection and select Windows 7

than choose command

wrote

bootrec.exe /fixboot
bootrec.exe /fixmbr
bootrec.exe /rebuildbcd

Then reboot

If no any other problem, you should boot into windows

Jerry786
January 30th, 2011, 02:07 AM
YES! Ive been trying for days to make a bootable USB and ive finally done it, Booted computer up in USB, Windows recovery did the rest. Thanks everyone

steveneddy
February 2nd, 2011, 05:44 PM
YES! Ive been trying for days to make a bootable USB and ive finally done it, Booted computer up in USB, Windows recovery did the rest. Thanks everyone

Sweet! Where else can you get this level of help for free for your Windows issues and concerns?

I believe that the UF fixes more Windows PC's than the Windows forums do - lol.

slixz85
February 3rd, 2011, 12:34 AM
Sweet! Where else can you get this level of help for free for your Windows issues and concerns?

I believe that the UF fixes more Windows PC's than the Windows forums do - lol.

probably lol surprising they dont charge for answers on there forums