|
|
|
| Web Hosting |
![]() ![]() |
Ubuntu 7.10 + Windows Xp Dual Boot, how to reinstall GRUB after windows reinstall |
Mar 28 2008, 03:06 AM
Post
#1
|
|
|
Member - Active Contributor Group: [HOSTED] Posts: 92 Joined: 26-December 07 From: Venezuela Member No.: 27,134 |
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? |
|
|
|
Mar 28 2008, 10:59 AM
Post
#2
|
|
|
Nenad Bozidarevic Group: [MODERATOR] Posts: 1,053 Joined: 7-November 05 From: Belgrade, Serbia Member No.: 9,500 myCENTs:36.94 |
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[/console] 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[/console] 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[/console] 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[/console] 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... |
|
|
|
Apr 1 2008, 02:02 AM
Post
#3
|
|
|
Member [ Level 2 ] Group: Members Posts: 70 Joined: 21-September 07 Member No.: 24,999 |
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. This post has been edited by rockershive: Apr 1 2008, 02:04 AM |
|
|
|
Apr 1 2008, 11:20 AM
Post
#4
|
|
|
Advanced Member Group: [HOSTED] Posts: 177 Joined: 25-December 07 Member No.: 27,129 |
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.
|
|
|
|
Apr 18 2008, 12:23 AM
Post
#5
|
|
|
Member - Active Contributor Group: [HOSTED] Posts: 92 Joined: 26-December 07 From: Venezuela Member No.: 27,134 |
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 |
|
|
|
Apr 21 2008, 03:34 AM
Post
#6
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
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 |
|
|
|
May 7 2008, 05:34 PM
Post
#7
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 1 Joined: 6-May 08 Member No.: 30,179 |
We have already installed UBUNTU but when I am trying to get in it's showing Disc Error. What should I do?
|
|
|
|
Dec 25 2008, 01:33 PM
Post
#8
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 0 Joined: 1-November 07 Member No.: 25,869 |
dual boot win reinstall
Ubuntu 7.10 + Windows Xp Dual Boot my laptop is dual boot with win sp2 + kubuntu 8.04 after reinstall windows kubuntu don't boot and in live session partitioner can't detect any partition from hda windows have ntfs but I can mount drives in live session through menu>places>computer I have 120 toshiba sata hd0 -question by devendra |
|
|
|
![]() ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | ||
|---|---|---|---|---|---|---|
![]() |
22 | ninjamunky | 9,662 | Yesterday, 01:53 PM Last post by: iG- |
||
![]() |
43 | snutz411 | 3,272 | 4th January 2009 - 08:46 PM Last post by: iG-Pax |
||
![]() |
19 | TehJohn | 517 | 2nd January 2009 - 11:37 PM Last post by: xboxrulz |
||
![]() |
6 | jess704 | 151 | 2nd January 2009 - 11:17 AM Last post by: sakmac |
||
![]() |
5 | rahid | 277 | 1st January 2009 - 02:31 PM Last post by: sakmac |
||
![]() |
4 | sonoftheclayr | 2,402 | 29th December 2008 - 09:11 PM Last post by: Guest |
||
![]() |
2 | Niru | 112 | 28th December 2008 - 03:45 AM Last post by: turbopowerdmaxsteel |
||
![]() |
2 | sparkx | 149 | 26th December 2008 - 06:17 PM Last post by: xboxrulz |
||
![]() |
23 | rbf1787 | 7,777 | 24th December 2008 - 02:34 PM Last post by: iG-Rich |
||
![]() |
2 | TavoxPeru | 198 | 24th December 2008 - 02:24 AM Last post by: TavoxPeru |
||
![]() |
9 | sitekeen | 1,243 | 23rd December 2008 - 04:21 PM Last post by: Nabb |
||
![]() |
25 | Arttymis | 8,602 | 23rd December 2008 - 01:44 AM Last post by: laniczech |
||
![]() |
14 | FirefoxRocks | 1,300 | 21st December 2008 - 08:38 AM Last post by: kpxchunsa |
||
![]() |
10 | FirefoxRocks | 989 | 18th December 2008 - 05:24 PM Last post by: magiccode9 |
||
![]() |
16 | tansqrx | 959 |
Expand / Collapse Navigation



Mar 28 2008, 03:06 AM





