LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2012, 07:02 PM   #1
Revolut
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Rep: Reputation: Disabled
Question Dual boot Linpus and Windows XP - restore grub?


Hi, I'm a Linux novice so I'm getting a bit frustrated with this problem:

I have an Acer Revo 70 with Linpus installed and I have tried to follow the instructions here http://apcmag.com/how_to_dual_boot_l...rst.htm?page=1 to dual boot with Windows XP.

The problem is, I'm using an Ubuntu 12.04 live CD to restore the GRUB bootloader but it's not working. I expect there could be extra complications because Linpus may not recognise GRUB or may be using an older version of GRUB.

On page 5 ( http://apcmag.com/how_to_dual_boot_l...rst.htm?page=5 ) it says to type 'sudo grub'. If I do this I get "command not found". I searched for grub as per the directions here http://www.linuxquestions.org/questi...ive-cd-785766/ but none of the locations I found seemed to work.

I tried the tutorial here: http://www.youtube.com/watch?v=w6fpIe-QnVE but this didn't work because the "grub-install /dev/sda" command failed. I tried the "sudo grub-install --root-directory=/mnt/ /dev/sda" command and this seemed to work but now I get the grub rescue prompt when I try to boot!

Any help would be greatly appreciated. I get the feeling that the solution should be fairly simple, but that I have been digging myself into a hole.
 
Old 06-09-2012, 02:07 PM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,832
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
I would recommend you chroot update-grub. That way you're using the grub version installed on the system and you won't have to worry about it.
 
1 members found this post helpful.
Old 06-09-2012, 02:21 PM   #3
Revolut
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for the advice sag47

While waiting for my first post to be moderated, I got a little bit further.
I used Rescutux to repair GRUB on the Linpus partition and have been able to modify menu.lst to choose between Linpus and Windows XP.

Partitions are as follows (all on hd0)
sda0 = Linpus recovery
sda1 = Linpus
sda2 = Windows XP

In menu.lst
Quote:
title Windows XP
root (hd0,2)
makeactive
chainloader +1
The problem I now have is that ‘makeactive’ (or maybe Windows XP too) is setting the bootable flag (asterisk in fdisk partition table) to TRUE for sda2. This is a hitch because the BIOS seems incapable of booting anything other than the Linpus ext3 partition. So I need it to always start from the GRUB menu on the Linpus partition.

Is there a way to make the active/boot partition sda1 when Windows XP shuts down? E.g. put something like this in menu.lst:

Quote:
title Windows XP
root (hd0,2)
makeactive
chainloader +1
boot
# make Linpus partition active
root (hd0,1)
makeactive
Or is there a neater solution to make sda2 the active partition just before WinXP boots, but keep sda1 active the rest of the time?

Edit:

For some background on the BIOS issue, please see my post here: http://forums.mydigitallife.info/thr...h-SLIC-version as Excalibran.

Last edited by Revolut; 06-09-2012 at 02:49 PM. Reason: Added link to a related post
 
Old 06-09-2012, 04:30 PM   #4
Revolut
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
I think I've figured out the solution: have BOTH Linpus (sda1) and Windows XP (sda2) partitions flagged as boot/active.
This way, I can remove the 'makeactive' line from menu.lst and the machine will always start with the GRUB menu (even after shutting down from Windows XP).

I guess this is acceptable because Linux doesn't care about the active flag and Windows XP will ignore the ext3 partitions?
 
Old 06-10-2012, 12:09 AM   #5
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,832
Blog Entries: 36

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
Yea I would say remove makeactive. I've not ever used that option myself. I usually leave the setting up of boot flags to initial partitioning and just leave it.

SAM
 
1 members found this post helpful.
Old 06-10-2012, 07:24 AM   #6
Revolut
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks for confirming my suspicions, Sam The Revo 70 seems stable now, so I'm going to mark this thread as resolved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 911 Emergency - Remove Grub and Restore Windows 7 Boot loader anoopch Linux - General 8 10-26-2010 05:23 AM
Restore dual boot after re-installation of Windows XP gwe Linux - Newbie 2 10-22-2008 10:27 PM
reinstalling windows deleted my grub master boot file; how do I restore it? sohmc Linux - General 3 01-12-2005 02:27 PM
File restore on the windows partition of a dual-boot machine? raindogs Linux - Software 1 10-05-2004 12:19 PM
How to remove Linux and restore Windows on Dual boot using Grub TheBaffledKing Linux - Newbie 13 04-14-2004 06:47 AM


All times are GMT -5. The time now is 08:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration