Ubuntu 7.10 + Windows Xp Dual Boot - how to reinstall GRUB after windows reinstall

free web hosting
Free Web Hosting > Computers & Tech > Operating Systems > Linux

Ubuntu 7.10 + Windows Xp Dual Boot - how to reinstall GRUB after windows reinstall

mikesoft
Ok so for a long time I had my dual boot working great, windows and ubuntu. But 2 days ago my windows required a wipe and clean install because of some issues, like it usually happens after 8 months.

So I reinstalled windows, well, first deleted the windows partition using the windows XP install CD. Then assigned a partition for windows (same size) and left the ubuntu and swap partition intact. But of course, windows deletes GRUB and replace it with their boot info, so now I can't boot ubuntu (I can't choose).

How can I reinstall GRUB without having to reinstall ubuntu, so I don't lose all my files and settings?

Reply

pyost
I had to deal with similar issue (reinstalling Windows XP with Ubuntu 7.10 already installed), except I didn't delete the Windows partition, just formated. The thing is, at least according to my limited "boot" knowledge, that you have probably made the old GRUB unusable, since the Windows practically isn't on the same partition any more. This, however, shouldn't prevent you from trying the method I used. Be aware that I have done this only once, so there is a slight risk when following my instructions.

First of all, insert the Ubuntu Live CD and boot the computer from it. After doing so, and starting Ubuntu, run the Terminal (Applications -> Accessories -> Terminal) and run the following commands.

CONSOLE
$ sudo grub


After doing so, you will start the GRUB configuration utility which will allow you to setup GRUB on a desired partition.

CONSOLE
grub> find /boot/grub/stage1


This command will output (hd*,*), the asterisks being some numbers. Now you need to run these commands (replacing the asterisks with the numbers you got):

CONSOLE
grub> root (hd*,*)
grub> setup (hd0)
grub> quit


Exit Ubuntu, remove the disk and reboot your computer. You should now get the GRUB bootloader.

The chances are Ubuntu will run properly, but due to the deletion of a partition, Windows might not. If that is the case, start Ubuntu and run this command in the terminal:

CONSOLE
$ gksu gedit /boot/grub/menu.lst


The file menu.lst should contain something like this:

CODE
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title        Microsoft Windows XP Home Edition
root        (hd0,0)
savedefault
makeactive
chainloader    +1


If Windows doesn't boot, the root line is wrong, and you need to replace (hd0,0) with the proper partition. Which one and how to do so? That I don't know...

 

 

 


Reply

rockershive
Pyost's instructions are correct. That's in the case where you lost your GRUB menu during startup.

I am Quin-Booting or should we call it Penta-Booting (5) different Operating Systems in my AMD Machine, I experience a lot of times 'losing' my OSes when scrumbling more OS in a single PC, single hard drive.

Reply

Miles
Instead of the common grub-based dualboot setup, you could use a program called HyperOS. It has had support for linux since version 2004 I believe, however I think it costs money.

Reply

mikesoft
thank you pyost, it worked like a charm! sorry for taking too long to respond, but I didn't have time to try it. I did it and it works!

woot =D

Reply

iGuest
error in finding grub
Ubuntu 7.10 + Windows Xp Dual Boot

I ran the sudo grub command. Ok
Grub> find /boot/grub/stage1 says file not found.
Pl. Advice

-question by syed

Reply

jbpostal
We have already installed UBUNTU but when I am trying to get in it's showing Disc Error. What should I do?

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. ubuntu the keyword to boot first from windows - 0.46 hr back. (1)
  2. restoring grub ubuntu 7.10 xp installation - 6.32 hr back. (1)
  3. ubuntu xp dual boot cannot execute - 10.38 hr back. (1)
  4. ubuntu grub windows xp restart - 12.83 hr back. (1)
  5. reinstall grub from windows vista - 13.36 hr back. (1)
  6. how to re-install grub in ubuntu 7.10 - 17.81 hr back. (1)
  7. ubuntu grub after delete ubuntu - 19.11 hr back. (1)
  8. dual boot xp and ubuntu xp restarts - 23.65 hr back. (1)
  9. reinstall grub ubuntu 7.10 - 23.52 hr back. (2)
  10. reinstall grub 8.04 - 26.65 hr back. (1)
  11. how to access hard disk with ubuntu linux boot overwritten by windows xp - 26.89 hr back. (1)
  12. dual boot xp and ubuntu 7.10 - 30.13 hr back. (1)
  13. reinstall grub from winxp - 31.36 hr back. (1)
  14. blank only grub ubuntu dualboot - 38.06 hr back. (1)
Similar Topics

Keywords : ubuntu, 7, 10, windows, xp, dual, boot, reinstall, grub, windows, reinstall

  1. Ubuntu Mobile 8.04 With Touchscreen
    (0)
  2. Ubuntu Edubuntu Kbuntu Series
    (4)
    I formerly decided to try ubuntu which is part of the linux tree as I understand, I liked the look
    and feel ect, it was good and simple without the buggs of windows but I discovered that none of my
    windows programs and drivers worked with ubuntu linux so is it possible to make the majority of
    windows stuff work or do we have to use other programs to make it go?....
  3. Ubuntu- How To Install C/ C++ Compilers.
    (2)
    Once you install Ubuntu. If you want to develop code in C or C++ you need to update the package.
    Default install will not come with development tools. Synaptic pckg manager is a very usefull
    tool in ubuntu. This can be used to install many development tool. Just look for Synaptic pckg
    manager and put check for gcc 3.4 or later, glibc or any other package you need, then update.
    Your ubuntu is now ready to use for C,C++.... /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> ....
  4. Access Linux Box From Windows Machine- Putty Tool
    (2)
    Most of the guys want to access Linux box from Windows machine just to do some programming on the
    command line. The "Putty Tool" is the solution for this. Just google for "Putty" and download this
    small package(less then 1MB) and keep it on your desktop. Just you need to configure the linux
    machine IP on this Putty tool and connect to Linux machine. If you face any problem in configuring
    Linux IP, then let me know, i will help you out. If you think this is help full, please rate this.....
  5. How To Copy File & Folders From Linux To Windows?.
    (12)
    Many face problem while transfering file from Linux to windows and Vise versa. My solution for
    this is "winscp405". Winscp is a windows freeware tool used to copy file from & to Linux machine.
    To get this tool just google for " winscp405" tool and download this small package and install.
    Enjoy working with Linux and windows /tongue.gif" style="vertical-align:middle" emoid=":P"
    border="0" alt="tongue.gif" />....
  6. Is There A Php Editor That Runs On Pclinuxos Or Ubuntu?
    is there a php editor that runs on PClinuxOS or Ubuntu??? (7)
    Hi, Just a quick question... Does anyone know any decent php editors that run in linux... I have
    tried to use some windoows apps with wine but they dont seem to function correctly?? Thanks,
    Antony.....
  7. Need Help Downloading With Ubuntu
    (2)
    Hey! I want you to have a look at this: http://packages.ubuntu.com/audacity I am trying to
    download audacity to Linux. But I don't know where I should go from here.. This is not the only
    place. I tryed to download amsn too, but I came to the same site (but for Amsn instead of audacity
    OFC). Can you please make a "mini tutorial" that can help me download and install the softwares?
    Thanks //Feelay Edit: Ok.. I don't even know how to install tar.gz softwares like the flash
    player.. I am a total noob, and would really like some help /smile.gif" style="vert....
  8. Making Xubuntu Look Like Windows Vista
    (6)
    Quite a nice blog actually. It might help you to decide to give Xfce another go in case you just
    don't get along with KDE. http://xubuntublog.wordpress.com/2008/02/1...p-with-xfce-44/
    _________________________________ http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  9. Linux And Windows Partitions
    Sharing files back and forth (2)
    Introduction Ok so many of you that use Linux, you probably have Windows installed also,
    probably on another partition (an exception is using Wubi). There is a problem that exists with
    Linux having read-only access to NTFS partitions. A solution to this is to install NTFS-3G or a
    similar package/application, but this only solves half of the problem. The other half of the
    problem is Windows not being able to read an ext2/ext3 partition. If you check your partitions in
    Disk Management, Windows has absolutely zero support for ext3/ext2/linux-swap partitions, displ....
  10. Simple Ubuntu Based Home File Server | For Newbies
    (1)
    This tutorial explains how to turn an old PC with additional hard disks into a simple home file
    server. The file server is intended for home use. The home file server is accessible by Windows and
    Linux computers in the home network. http://www.howtoforge.com/ubuntu-home-fileserver
    _________________________________ http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  11. Three Ways To Access Linux Partitions From Windows On Dual-boot Systems
    (5)
    If you have a dual-boot Windows/Linux system, you probably know this problem: you can access files
    from your Windows installation while you are in Linux, but not the other way round. This tutorial
    shows three ways how you can access your Linux partitions (with ext2 or ext3 filesystem) from within
    Windows: http://www.howtoforge.com/access-linux-par...ns-from-windows
    _________________________________ http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  12. Review About Ubuntu 7.10
    NOT 7.04, BUT 7.10 (15)
    Hi, I am testing Ubuntu for a few weeks. I have tested 7.04 but not 7.10. At this second, I am using
    Mac OS X 1.0.5 Leopard on the schools network. I installed UBUNTU on my laptop using the LiveCD.
    Some hardware had minor problems, but didn't disturb the installation. If you want my specs,
    check out Review About Vista. I installed Ubuntu and used 220MB of RAM out of 1GB. I think some of
    it is graphics memory. Soon, I will be installing the LAMP installation (Linux, Apache, MySQL and
    PHP) for my WiFi network. I will get with you soon at 7:00PM (GMT UK) xxxx-jozh-xxxx....
  13. Ubuntu 7.10
    what have you heard? (8)
    Well ubuntu 7.10 is coming out soon (the final one, a beta is currently out and available for
    download right now if you would like, and you can check it out at http://www.ubuntu.com ) But I
    was wondering what everybody has heard about it, or if anybody has tried it? I have liked the
    previous releases, but should I bother with upgrading to this one, or should I just stick with the
    older release until the support is gone? It looks like they have done a lot of improvements in the
    way of eye candy for this release with 3D effects and such enabled by default. And the rest....
  14. Beginner's Guide To Installing Software In Ubuntu
    (2)
    Having problems installing something on your new Ubuntu operating system? This guide will help you
    understand. http://cutlersoftware.com/ubuntuinstall/ _________________________________
    http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  15. It Just Isn't Fair That Windows Users Get All The Viruses
    (3)
    What would happen if you ran a Windows virus in Linux using WINE?
    http://www.linux.com/articles/42031 _________________________________
    http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  16. Do You Want To Find A Linux Equivalent To A Windows Application?
    (9)
    Database of popular Windows apps and their Linux equivalents. http://www.linuxalt.com/
    _________________________________ http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  17. Do These Things Immediately After Installing Ubuntu
    (0)
    Article shows 13 things to do, programs to install immediately after installing Ubuntu 7.04 Feisty
    Fawn to make it rock. http://linuxondesktop.blogspot.com/2007/05...ubuntu-704.html
    _________________________________ http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  18. With Wubi The Hard Drive Does Not Have To Be Repartitioned Before The Ubuntu Installation
    (2)
    Wubi is an Ubuntu installer for Windows that lets you install and uninstall Ubuntu from a Windows
    desktop. Wubi adds an entry to the Windows boot menu which allows you to run Linux. Ubuntu is
    installed within a file in the Windows file system (a loopmounted partition), this file is seen by
    Ubuntu as a real hard disk. That way the hard drive does not have to be repartitioned before the
    Ubuntu installation. The resulting Ubuntu installation is a "real" Linux system, not just a virtual
    machine. Wubi makes it easy for Linux newbies to play around with Ubuntu. http://wubi-i....
  19. Automate The Advanced Setup Of Graphics Cards In Ubuntu And Debian
    (1)
    "Envy" is an application for Ubuntu Linux and Debian, written in Python and PyGTK, which will detect
    the model of your graphic card (ATI and Nvidia cards are supported) and install the correct drivers.
    http://www.albertomilone.com/nvidia_scripts1.html _________________________________
    http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  20. Get Wireless Working In Ubuntu 7.04
    (0)
    It is very common that the only thing that doesn't work on a fresh Ubuntu install is the
    wireless. Here are easy, fool-proof instructions for how to get wireless working in Ubuntu 7.04 if
    it's not working because of the common bcm43xx problem. Requirements: 1) Ubuntu 7.04 installed
    2) Internet access - on the same computer (maybe using a wired connection) or on another.
    http://i-eat-noobs.blogspot.com/2007/08/ge...ubuntu-704.html For wireless USB adapters, this is
    the best guide out there: http://ubuntuforums.org/showthread.php?t=400236 The Trendnet TEW-....
  21. Ubuntu 7.04 - Test Drive
    (0)
    So I randomly got the urge yesterday to wipe my linux partition clean and install a new distro, or
    at least a new release, and get back into linux a bit. I always have a linux partition on my system
    but I usually go through phases where I use it more or less. Regardless I have used multiple distros
    (a bit of gentoo and slack, redhat, suse, madrake, mandiva, fedora, mepis, ubuntu, etc) and had used
    ubuntu 6.06 for awhile. I had actually installed 6.10 around the end of last year but over time I
    broke some things playing with compiz and eventually just sort of stopped usin....
  22. Ubuntu Won't Log On
    Something like damaged explorer.exe... (12)
    Recently, Ubuntu has stopped working by not allowing me to access the desktop. It is quite strange.
    Once Ubuntu has booted up to the username screen, I type in my username and password to log on. It
    brings me to a blank screen with nothing on it. This happens to all of the user accounts. When I
    press the Power button on my computer, I see the loading process where it says: Executing login
    scripts... and then some network stuff when it freezes. I have no clue what to do here because
    I've only worked with the GNOME desktop in Ubuntu and only 2 times when modifying....
  23. Ubuntu Livecd
    Can't see all my files!!! (7)
    Hey, i got a Ubuntu LiveCD and it works perfectly. Seems like a good change from Windows from time
    to time. The only problem i am having is that i cant find some files that are on my C:/ drive (the
    Windows area) - although i can see them through windows no problem. Example is that when i go to the
    documents and settings folder on the C drive, no folders are there. When i go back to windows, its
    there! Can someone please tell me how can i see my files via ubuntu. I am quite a newbie to
    Ubuntu so please excuse me if this is a n00b question /tongue.gif" style="verti....
  24. Ubuntu Installation Help !
    (11)
    I am pretty well satisfied with SuSE linux, but wanted to give ubuntu a try. While installation i
    came accross the partition selector. While in SuSE it is easy to understand, here in ubuntu its
    kinda hard. The first screen of partition is shown below .. But To start off, see my HDD
    partition status. Its a 100GB HDD with the partitions as follows: If i select the 3rd option
    of doing it manually, it shows me all these detected: What do i have to do if i want to
    install ubuntu on my 4th partition (F:), thats the 15GB one. And how does it automaticall....
  25. Linux Distro Most Like Windows?
    Linux distro most like windows? (13)
    which Linux distro is most like windows? does anyone know of any that will run windows (.exe) files
    natively? (without WINE) (i heard there were a couple...i mite be wrong)....
  26. Linux "hangs" On Boot
    (9)
    A real quick post. I just though of installing the new version of the openSUSE distro 10.2. The
    installation goes fine and after the reboot it just hangs (no HDD activity). I keep the power on
    button pressed for a force shutdown and restart the Laptop with the same option and it starts the
    desktop and i can work on openSUSE 10.2. I go home and start my laptop up and it hangs again, and
    this time 3 force shut downs and restarts didnt help either. The last time i shut down the Laptop,
    i sisnt choose to save my configurations, so that rules out an option of me screwing up ....
  27. Restoring Grub Boot Loader
    (9)
    Hi guys, Few days ago my friend ask me to reinstall Windows on his computer. The problem is he has
    dual OS, ubuntu linux(Dapper Drake) and Windows XP. If I reinstall the Windows the Grub loader on
    MBR will overwritten by Windows XP. i know after reinstalling Windows we cannot boot to Ubuntu.
    I'm newbie, So my question is, How we restore the Grub Loader back? I've try to boot from
    ubuntu using Live CD mode. But I still confuse /huh.gif" style="vertical-align:middle"
    emoid=":huh:" border="0" alt="huh.gif" /> the step-by-step how to restore the grub. Please he....
  28. Knoppix!
    Boot linux off of a cd with all software included wothout touching you (3)
    QUOTE Knoppix is a Free and Open Source Live Linux CD based on Debian GNU/Linux. Live Linux CD
    means that the computer boots and runs completely from cd. Nothing is installed on your hard drive
    in order for you to experience many of the Open Source software packages available. Knoppix
    includes recent Linux software and desktop environments, including such applications as
    OpenOffice.org, Abiword, Gimp, Konqueror, Firefox, Apache, PHP, MySQL and hundreds of other quality
    open source programs. You can dwoload it free from there website or i think you can buy a dv....
  29. Grub Error After Reinstalled Winxp
    (11)
    I have Windows XP and Fedora 4 installed in my PC. Grub is the boot loader. Today, I decided to
    reinstall Windows XP. After the installation finished, I boot into fedora 4 with rescue disk. then..
    chroot, grub-install /dev/hda, reboot. but I could not boot into the system. It just show me this,
    grub> There is no option for me to choose. (It uses to have a list.) Then I fdis /mbr, root
    (hd0,0), set(hd0) yes, the grub menu is back. But cannot boot into both system (windows xp and
    Fedora 4) fc4: invalid compressed format (err=1) xp:disk error ,press any key to restart ....
  30. Which Distro Of Linux Is Best For A Windows User ?
    (42)
    After years of using Windows, I have decided to "throw off the chains of corporate oppression" and
    switch to Linux. My main question is this: which free (key word) distro would be best suited for a
    person used to working in Windows, and enjoys gaming?....

    1. Looking for ubuntu, 7, 10, windows, xp, dual, boot, reinstall, grub, windows, reinstall

Searching Video's for ubuntu, 7, 10, windows, xp, dual, boot, reinstall, grub, windows, reinstall
Similar
Ubuntu
Mobile 8.04
With
Touchscreen
Ubuntu
Edubuntu
Kbuntu
Series
Ubuntu- How
To Install
C/ C++
Compilers.
Access Linux
Box From
Windows
Machine-
Putty Tool
How To Copy
File &
Folders From
Linux To
Windows?.
Is There A
Php Editor
That Runs On
Pclinuxos Or
Ubuntu? - is
there a php
editor that
runs on
PClinuxOS or
Ubuntu???
Need Help
Downloading
With Ubuntu
Making
Xubuntu Look
Like Windows
Vista
Linux And
Windows
Partitions -
Sharing
files back
and forth
Simple
Ubuntu Based
Home File
Server | For
Newbies
Three Ways
To Access
Linux
Partitions
From Windows
On Dual-boot
Systems
Review About
Ubuntu 7.10
- NOT 7.04,
BUT 7.10
Ubuntu 7.10
- what have
you heard?
Beginner'
;s Guide To
Installing
Software In
Ubuntu
It Just
Isn't
Fair That
Windows
Users Get
All The
Viruses
Do You Want
To Find A
Linux
Equivalent
To A Windows
Application?
Do These
Things
Immediately
After
Installing
Ubuntu
With Wubi
The Hard
Drive Does
Not Have To
Be
Repartitione
d Before The
Ubuntu
Installation
Automate The
Advanced
Setup Of
Graphics
Cards In
Ubuntu And
Debian
Get Wireless
Working In
Ubuntu 7.04
Ubuntu 7.04
- Test Drive
Ubuntu
Won't
Log On -
Something
like damaged
explorer.exe
...
Ubuntu
Livecd -
Can't
see all my
files!&#
33;!
Ubuntu
Installation
Help !
Linux Distro
Most Like
Windows? -
Linux distro
most like
windows?
Linux
"hangs&
quot; On
Boot
Restoring
Grub Boot
Loader
Knoppix!
- Boot linux
off of a cd
with all
software
included
wothout
touching you
Grub Error
After
Reinstalled
Winxp
Which Distro
Of Linux Is
Best For A
Windows User
?
advertisement




Ubuntu 7.10 + Windows Xp Dual Boot - how to reinstall GRUB after windows reinstall



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE