PDA

View Full Version : [ubuntu] Ubuntu installation through windows XP - Problem



dhammikai
January 25th, 2012, 06:27 AM
Dear Friends,
I installed ubantu (ver 11.04) through Windows XP, after installation both OS are worked smoothly. But now I got a problem with starting of Windows XP, it is still restarting when I boot it. Ubantu is working properly and Windows XP is need to format. I install Ubantu in separate partition in my computer. My problem is if I format Windows XP partition, it might me lost that menu which displays during the booting of computer (selection menu of Ubantu and Windows XP). Some one please help me to find safe way to install Windows again without loss (or any option) starting selection menu.

Thanks
Dhammika

carl4926
January 25th, 2012, 06:50 AM
It's a little difficult to understand your post.

You can format the XP partition and the computer will still boot.

But, honestly I'm not too sure what you want to do...

dhammikai
January 25th, 2012, 07:05 AM
Hi,
Thanks carl4926, my problem is if I format my XP partition, it will lose that menu which is used to select Ubantu or XP during the boot. I need to know how I create this menu again.

dhammika

carl4926
January 25th, 2012, 07:12 AM
If you format the XP partition it should be OK

If you do loose the boot menu, don't panic.

I suggest you get yourself a copy of SuperGrubDisk
http://www.supergrubdisk.org/category/download/supergrub2diskdownload/
It can boot you in to ubuntu. Once there do:


sudo update-grub

sudo grub-install /dev/sda

But I'm wondering what you plan to do in the space where you delete XP?

critin
January 25th, 2012, 07:19 AM
Hi,
Thanks carl4926, my problem is if I format my XP partition, it will lose that menu which is used to select Ubantu or XP during the boot. I need to know how I create this menu again.

dhammika

http://www.webupd8.org/2011/06/boot-repair-fix-ubuntu-boot-issues.html

This will install boot repair on your live ubuntu cd or thumb drive so you can run it and fix grub menu. After formatting Windows, run the live cd again, find this link and install the boot repair via the terminal. Run it.

The suggestion given by carl4926 may be easier for you.

dhammikai
January 25th, 2012, 07:27 AM
Hi Thanks for the quick reply,
I need these two OS (Ubantu and XP) with my PC. Because some of my programs are running under XP. My XP partition is already currepted and I need to format it. Then I am plan to reinstall XP. My problem is if I re-install XP, that OS selection menu (This menu was created automatically when I install Ubantu through XP. ) which is display during the booting of computer might be lose. So how I make it again?

Dhammika

carl4926
January 25th, 2012, 07:31 AM
OK
Get supergrubdisk first if you can. If not a ubuntu live cd can be used
So re-install XP and follow my advice in this post
http://ubuntuforums.org/showpost.php?p=11638341&postcount=4

With a Ubuntu live cd the process is


* Open a terminal and type

$ sudo fdisk -l

* Now, you need to remember which device listed is your linux distribution, for reference, /dev/sda1 will be used. Now we need to mount the filesystem to /mnt

$ sudo mount /dev/sda1 /mnt

* Now mount the rest of your devices

$ sudo mount --bind /dev /mnt/dev

* Now chroot into your system

$ sudo chroot /mnt

*

When that is done you need to run update-grub to create the configuration file.

$ update-grub

*

To install GRUB 2 to the MBR, next you need to run grub-install /dev/sda

$ grub-install /dev/sda

larrypg
January 25th, 2012, 09:06 AM
Hello,

Before you go any further you need to determine if this is a Wubi install or a regular install. You seem to say that you installed Ubuntu through XP which sounds like a Wubi install. There are very different ways to fix it depending on what kind of install it is.

Mark Phelps
January 26th, 2012, 05:09 PM
Dear Friends,
I installed ubantu (ver 11.04) through Windows XP, after installation both OS are worked smoothly.
Wubi install ...

But now I got a problem with starting of Windows XP, it is still restarting when I boot it. Ubantu is working properly and Windows XP is need to format. I install Ubantu in separate partition in my computer.
If the Windows filesystem gets corrupted, it often can not launch Ubuntu. That's a major downside of using Wubi.

My problem is if I format Windows XP partition, it might me lost that menu which displays during the booting of computer (selection menu of Ubantu and Windows XP).
There are two menus:
1) Created by the Windows boot loader -- for Wubi installs
2) Created by GRUB -- for separate partition installs.

Since you apparently do NOT want to use Wubi, reformatting and reinstalling XP will not remove the GRUB menu -- but you will then have to regenerate it.

Some one please help me to find safe way to install Windows again without loss (or any option) starting selection menu.
Simply not possible ... to keep GRUB or Wubi intact with a Windows reinstall. In the first case above, the Wubi file will be erased with the Windows reinstall; in the second case, the MBR will be overwritten by the Windows reinstall -- even though the GRUB code will remain intact in the Linux filesystem.

You need to tell us WHICH version of Ubuntu you want to keep using -- an Wubi install, or a separate partition install.

baqar
January 26th, 2012, 09:36 PM
I am going to format my HDD and start from the beginning
I will first install XP
then Win 7
and then Ubuntu 11.10
Then will update i will succeed or what :P

dhammikai
January 27th, 2012, 06:14 AM
Hi, Thanks for more details abt. my problem. I am using Ubantu 11.04, it is installed in my Partition E:. Today I format windows XP partition (C: and reinstalled it. Then, now I starting of my computer it's only start Windows XP, it not display that selection menu ( actually I dont what that menu called GRAB or wubi). If I need to start Ubuntu, it didn't display any option (menu)!!. But my ubuntu installtion is still in my E: partition. So, now I want to create that menu

carl4926
January 27th, 2012, 06:53 AM
Do you have an Ubuntu Live CD
or a copy of SuperGrubDisk on a CD?

I posted the 2 solutions earlier
1. http://ubuntuforums.org/showpost.php?p=11638341&postcount=4

2. http://ubuntuforums.org/showpost.php?p=11638367&postcount=7

dhammikai
January 27th, 2012, 07:02 AM
Hi,
Yes I have Ubantu setup DVD 11.04. Now I already format windows XP partition and I installed win XP now. Could you please give me instructions of when I boot my PC with ubantu DVD then how I open a terminal?

Dha

carl4926
January 27th, 2012, 07:10 AM
Hi,
Yes I have Ubantu setup DVD 11.04. Now I already format windows XP partition and I installed win XP now. Could you please give me instructions of when I boot my PC with ubantu DVD then how I open a terminal?

Dha

Before following the text below, please tell me if you are able to burn a copy of:
http://www.supergrubdisk.org/category/download/supergrub2diskdownload/

Place the Ubuntu disk in the DVD drive and reboot the computer
Choose to try Ubuntu
http://dl.dropbox.com/u/10573557/Ubuntu/Ubuntu%2010.04%20Install/2.%20boot_menu_try.jpg

At the Desktop:
Open a terminal (you must know how to do that, if you have been using Ubuntu)
Then follow the info here
http://ubuntuforums.org/showpost.php?p=11638367&postcount=7

dhammikai
January 27th, 2012, 07:24 AM
Yes I can burn a copy of "http://www.supergrubdisk.org/categor...2diskdownload/ (http://www.supergrubdisk.org/category/download/supergrub2diskdownload/)" in CD

Dha

carl4926
January 27th, 2012, 07:30 AM
Yes I can burn a copy of "http://www.supergrubdisk.org/categor...2diskdownload/ (http://www.supergrubdisk.org/category/download/supergrub2diskdownload/)"

Dha

Do that
Then boot from it and it should find your Ubuntu installation and let you boot it.

Once there, open a terminal and do


sudo update-grub


sudo grub-install /dev/sda

Remove supergrubdisk from the drive and reboot
It should all work again normally

dhammikai
January 30th, 2012, 07:17 AM
Thanks I got it done.
Dhammika

carl4926
January 30th, 2012, 07:33 AM
Thanks I got it done.
Dhammika
That's good to know