PDA

View Full Version : [ubuntu] [SOLVED] Removing Windows from Dual-Boot



jonofan
July 6th, 2008, 03:25 AM
Hi guys,

I have been using Hardy for the last month or so and loving it. On dual-boot with Windows. Windows was the first OS installed on the HDD.

The layout of partitions was like so:

60GB NTFS Windows
60GB NTFS Windows (storage)
20GB ext3 Ubuntu
~3GB swap

Basically what I tried to do was wipe everything Windows and expand my ext3 to make Ubuntu the dominating OS on the laptop. I used GParted LiveCD and formatted and deleted the windows partitions. I then went "ugh, doh!" realising Windows has my MBR, which was luckily picked up by GParted and not wiped. So MBR is still there and Ubuntu boots fine, Windows obviously does not.

My hopeful end result:

20GB Windows
60GB ext3 (storage)
60GB ext3 Ubuntu
~3GB swap

So am a bit stuck as for what to do now..

I'm not able to expand my ext3 partition in GParted, it doesn't let me, do I have to delete swap first to do this?

I'm guessing that it is probably better to wipe the lot and start from scratch. So i guess my questions would be:

a. Which should I install first, Windows or Ubuntu?

and b. What is the best way to backup my current installation of Ubuntu? Can I simply copy the "/" directory and paste it over the new install? I'd prefer to do this so that I wont have to mess around with any drivers or settings that I have changed. I did try to copy this directory but it wouldn't let me due to permissions, even running as sudo.

Any help would be greatly appreciated :).

Pumalite
July 6th, 2008, 03:32 AM
Get Gparted Live CD:
http://sourceforge.net/project/showfiles.php?group_id=115843&package_id=271779
Burn iso to disk and boot from it
Post a screenshot of your partitions
(it works with unmounted partitions)

jonofan
July 6th, 2008, 03:59 AM
Sorry it was liveCD i was using already.

Screen attached.

Hooya
July 6th, 2008, 04:10 AM
Make sure that the partitions are actually deleted, not just formated, then you should be able to just drag the outlying edges of your existing partitions to where you want them. Your swap partition shouldn't be getting in the way at all.

Pumalite
July 6th, 2008, 04:11 AM
You have to delete your extended partition first. Then resize Ubuntu to the left and make a storage with the rest. Make sure you respect the rule of 4 primaries per drive. Use Gparted Live CD; not your Live Ubuntu CD.Backup everything before you start. Good luck!

Rallg
July 6th, 2008, 04:39 AM
General note: My previous laptop had XP pre-installed (no installation CD). It seemed to be the case that the starting point of the Windows partition, on the hard drive, was one of the various factors used to determine whether my installation of XP was "genuine."

I don't know whether that is widespread. But if you intend to remove Windows and re-size partitions, itmight be a good idea to keep the starting point of the (former) Windows partition unmoved. If you move it and change your mind, you might have to call Big Bill's Shop to re-validate a reinstallation of Windows. (Yes, they did it for me, no problem, just a nuisance.)

jonofan
July 6th, 2008, 04:41 AM
Thank you very much. Deleting the Extended Partition freed it up for me. I now have one more question regarding putting Windows on the 20GB Partition, can I just install it over the top and wipe the old MBR or is this going to screw things up?

Pumalite
July 6th, 2008, 05:03 AM
You can do it. You will have to reinstall Grub afterwards:
http://ubuntuforums.org/showthread.php?t=224351

jonofan
July 9th, 2008, 07:21 AM
Thanks a lot for your help Pumalite. Have installed Windows and re-installed GRUB successfully.

Pumalite
July 9th, 2008, 12:55 PM
You are welcome. Good luck!