unisalling win xp and leaving ubuntu heron with extra space

Asked by ashok

Installed win xp and ubuntu heron on same hard disk which is partioned between them. My win xp does not work and I wish to uninstall it and alllow ubuntu to have the entire hard disk space. Please advise, thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu nautilus Edit question
Assignee:
No assignee Edit question
Solved by:
Bhavani Shankar
Solved:
Last query:
Last reply:
Revision history for this message
Tony Mugan (tmugan) said :
#1

in a terminal window run
sudo gparted
to delete the WIndows partition and then resize the Ubuntu one.

You may also want to make changes to your boot menu with
sudo gedit /boot/grub/menu.lst
to remove any reference to Windows

Revision history for this message
Best Bhavani Shankar (bhavi) said :
#2

Hello ashok

To get maximum resizing room, go into windows, open a DOS Prompt and enter:

FORMAT C:\ /Q

which should do a quick format (after asking for confirmation) allowing you to size it down ALMOST to nothingness if you wish.

and

sudo cp /boot/grub/menu.lst /boot/grub/menu/lst.backup080524
gksudo gedit /boot/grub/menu.lst

and remove the entire 'block' of instructions from the file that refer to Windows (like so)

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root

{# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title Microsoft Windows XP Professional

root (hd0,0)
savedefault
makeactive
chainloader +1}

title Ubuntu Hardy Test System
savedefault
configfile (hd1,5)/boot/grub/menu.lst

Just highlight the equivalent to the braces part, delete it, and save and exit. Next time you start Grub, it won't know about Windows....

the block will be at the bottom of the file, and may very well be the last entry.

Regards

Bhavani Shankar.

Revision history for this message
ashok (athadani) said :
#3

Hello and thank you for the help. I'm not sure fo being able to do all that but what I plan to do is re-install Ubuntu and that should take care of he problem. I do not have any stuff on the drive that I have not backed up.

Thank you again.

Best wishes,

Ashok