Results 1 to 8 of 8

Thread: How to REinstall WinXp and keep Ubuntu bootable

  1. #1
    Join Date
    Mar 2005
    Beans
    41

    How to REinstall WinXp and keep Ubuntu bootable

    Hello everyone,

    Few months ago i installed Ubuntu 4.1 with XP already running. So my grub asks me which OS i want each time I start my computer.

    The thing is that i would like to reinstall XP (going more & more crappy those days). But i understood it will erase the "MBR".

    How can i do to keep a Grub ? to keep my Ubuntu bootable ?

    I hope i'm enough precise.

    THX!

  2. #2
    Join Date
    Nov 2004
    Location
    Kuala Lumpur, Malaysia
    Beans
    885
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: How to REinstall WinXp and keep Ubuntu bootable

    Out of curiosity, are you reinstalling Windows because you want a clean fresh install of Windows or someting related to GRUB default OS when booting?

  3. #3
    Join Date
    Feb 2005
    Location
    Restaurant at the End of
    Beans
    72
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to REinstall WinXp and keep Ubuntu bootable

    Quote Originally Posted by th0mas
    Hello everyone,

    Few months ago i installed Ubuntu 4.1 with XP already running. So my grub asks me which OS i want each time I start my computer.

    The thing is that i would like to reinstall XP (going more & more crappy those days). But i understood it will erase the "MBR".

    How can i do to keep a Grub ? to keep my Ubuntu bootable ?

    I hope i'm enough precise.

    THX!
    you should make a bootdisk for ubuntu before installing windows. then install windows, use the bootdisk to boot into grub and run grub-install

    Sorry I can't remember the exact command to create a boot disk but it should be on the forum somewhere.

  4. #4
    Join Date
    Mar 2005
    Beans
    41

    Re: How to REinstall WinXp and keep Ubuntu bootable

    Quote Originally Posted by Buffalo Soldier
    Out of curiosity, are you reinstalling Windows because you want a clean fresh install of Windows or someting related to GRUB default OS when booting?
    yup, i want a clean refresh of my windows. I still keep xp cause some softs and things don't run with linux...

    my grub was ok, letting me chose Ubuntu or Windows when booting.
    but i heard reinstalling XP will erase the MBR and my Grub...

  5. #5
    Join Date
    Mar 2005
    Beans
    142

    Re: How to REinstall WinXp and keep Ubuntu bootable

    Quote Originally Posted by th0mas
    yup, i want a clean refresh of my windows. I still keep xp cause some softs and things don't run with linux...

    my grub was ok, letting me chose Ubuntu or Windows when booting.
    but i heard reinstalling XP will erase the MBR and my Grub...
    You are right BUT XP may preserve GRUB as the original DOS boot sector and you may have an option to "boot previous window"(which is in fact GRUB) in XP.

    You can always do it yourself by :

    dd if=/dev/hda of=/mnt/C/grub bs=512 count=1

    to save the GRUB sector to a file that is readable by BOTH XP and linux(say a FAT32 as C:, just don't let XP change it to NTFS). Then add the line yourself to C:\BOOT.INI after XP has done its installation.

  6. #6
    Join Date
    Mar 2005
    Beans
    41

    Re: How to REinstall WinXp and keep Ubuntu bootable

    Quote Originally Posted by puelly
    you should make a bootdisk for ubuntu before installing windows. then install windows, use the bootdisk to boot into grub and run grub-install

    Sorry I can't remember the exact command to create a boot disk but it should be on the forum somewhere.
    Don't you think i could do this more easily using an Ubuntu LiveCD (after having reinstalled Xp), so that i have access to my linux partitions and do some modifications ?

    Anyway, i've just seen this url, hope it will help others...
    http://ubuntuguide.org/#restoregrubm...wsinstallation

  7. #7
    Join Date
    Nov 2004
    Location
    Kuala Lumpur, Malaysia
    Beans
    885
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: How to REinstall WinXp and keep Ubuntu bootable

    A similar discussion going on at Windows Install after Ubuntu? thread.

  8. #8
    Join Date
    Mar 2005
    Beans
    118

    Re: How to REinstall WinXp and keep Ubuntu bootable

    i have the sam issue. Would be nice if i had a disk station.
    See, you not only have to be a good coder to create a system like Linux, you have to be a sneaky bastard too.

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
  •