Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Alternative Computing > Linux Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read

Linux Support Linux - Operating Systems and Applications Support

Reply
 
Thread Tools
Old 11-18-2008, 05:55 PM   #1 (permalink)
Registered User
 
Join Date: Nov 2008
Posts: 5
OS: Ubuntu Hardy


DualBoot Xp/Ubuntu Grub Problem

I've got a sony viao with xp. I decided to install Ubuntu (hardy) and dual boot. Now when I select windows xp in the grub menu, It doesn't load xp but rather sends me to a grub-terminal like thing.

"Grub >"

Everything is partitioned right, what is the problem??
sheabarbacci is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Sponsored Links
Old 11-18-2008, 06:19 PM   #2 (permalink)
Moderator Alt. Computing
 
wmorri's Avatar
 
Join Date: May 2008
Location: /etc/pm
Posts: 1,224
OS: Vista Basic SP1/Ubuntu 8.04/Fedora 10


Send a message via AIM to wmorri
Re: DualBoot Xp/Ubuntu Grub Problem

Welcome to TSF!!

I would like you to boot into ubuntu for me. Then you need to open up a Terminal session. After that I would like you to type:
Code:
 gedit /boot/grub/menu.lst
This will bring up a text file. Then I would like you post everything that is in that file in your next post, so that we can see what is going on.

The menu.lst file list all the information that tells GRUB what OS to start, and which partition the data is on.

Cheers!
__________________


If I have posted on your thread and haven't replied within 48hrs please PM me. I will try to be as prompt as possible!
Linux Forever!

Learning is doing, not being able to follow steps put forth by others.

When posting what errors you get, please give the full message. It makes helping you much easier.
wmorri is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 11-19-2008, 05:20 PM   #3 (permalink)
Registered User
 
Join Date: Nov 2008
Posts: 5
OS: Ubuntu Hardy


Re: DualBoot Xp/Ubuntu Grub Problem

Well, I ended up trying to take matters into my own hands.

Xp had previously been installed on an extended partition, so i reinstalled it on a primary partition with no real reasoning behind my actions. Now my grub menu is gone, and any attempts I make to bring it back are failures.

I tried reinstalling grub from the ubuntu live boot cd with this technique:

1. Boot from a Live CD, like Ubuntu Live, Knoppix, Mepis, or similar.

2. Open a Terminal. Go SuperUser (that is, type "su"). Enter root passwords as necessary.

3. Type "grub" which makes a GRUB prompt appear.

4. Type "find /boot/grub/stage1". You'll get a response like "(hd0)" or in my case "(hd0,3)". Use whatever your computer spits out for the following lines.

5. Type "root (hd0,3)".

6. Type "setup (hd0,3)". This is key. Other instructions say to use "(hd0)", and that's fine if you want to write GRUB to the MBR. If you want to write it to your linux root partition, then you want the number after the comma, such as "(hd0,3)".

7. Type "quit".

8. Restart the system. Remove the bootable CD.


The output in the terminal made it seems like my efforts resulted in success, but when I rebooted I still was brought to the Windows Boot Loader. I frowned.
sheabarbacci is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 11-20-2008, 08:59 AM   #4 (permalink)
Mentally divergent
 
Bartender's Avatar
 
Join Date: Jun 2005
Location: Chehalis, WA, USA
Posts: 1,231
OS: W2K, Ubuntu 8.04


Re: DualBoot Xp/Ubuntu Grub Problem

"Xp had previously been installed on an extended partition, so i reinstalled it on a primary partition with no real reasoning behind my actions."

What's that you say? I've been told over and over that Windows CANNOT boot from an extended partition. I accepted that as gospel and now you're saying that's not true?

Oh, I feel it coming on. One of those "There's no solid ground to stand on" moments...

You've reinstalled Windows? Instead of messing around with CLI grub commands, why not just try reinstalling Ubuntu from scratch?

better yet, wipe the drive clean with a GParted LiveCD (GPLCD),
create a primary partition for Windows.
Format it as ntfs.
create an extended partition out of the remaining space.
create a logical partition inside the extended, format it as ext3.
Pop in your XP disc, install to the ntfs partition (Windows installer should ignore the extended partition)
Install all the Sony drivers so that Xp is working fine.
Then pop in your Ubuntu disc and install to the logical partition.

GRUB really should install where it's supposed to.

Is there any chance the Ubuntu disc isn't 100%? If you don't need the "test drive" function of the LiveCD, I'd suggest downloading the "alternate install" version and burning that to a good-quality, CD-R at a low speed (4X to 8X) and installing from the alt-install CD. For some people the alt-install works when the Live didn't.

Search this forum for "GParted LiveCD" or "GPLCD" Numerous discussions in the past.
Bartender is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 11-20-2008, 02:32 PM   #5 (permalink)
Moderator Alt. Computing
 
wmorri's Avatar
 
Join Date: May 2008
Location: /etc/pm
Posts: 1,224
OS: Vista Basic SP1/Ubuntu 8.04/Fedora 10


Send a message via AIM to wmorri
Re: DualBoot Xp/Ubuntu Grub Problem

Hi,

Please follow these instructions line for line. This will allow you to partition your hdd. You will need two things, an ISO file from

Gparted, and a program that will allow you to burn a LiveCD. I would recommend CDburnerXP, or Finalburner. Unless you have a cd burner that will burn ISO files. A regular cd burning program won't work. It must have an ISO burning function.
  • Go to GParted, then download an ISO file for the latest version.
  • Download a copy of CDburnerXP or Finalburner or an ISO burner of your choice.
  • Burn a LiveCd

Let me know when you have that done and I will help you with the next step.

Cheers!
__________________


If I have posted on your thread and haven't replied within 48hrs please PM me. I will try to be as prompt as possible!
Linux Forever!

Learning is doing, not being able to follow steps put forth by others.

When posting what errors you get, please give the full message. It makes helping you much easier.
wmorri is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 11-20-2008, 05:32 PM   #6 (permalink)
Manager
 
shuuhen's Avatar
 
Join Date: Sep 2004
Location: Colorado
Posts: 802
OS: Mac OS 9.1, Mac OS X 10.5.5, WinXP Pro, FreeBSD 6.0, Gentoo Linux


Re: DualBoot Xp/Ubuntu Grub Problem

Quote:
Originally Posted by sheabarbacci View Post
Well, I ended up trying to take matters into my own hands.

Xp had previously been installed on an extended partition, so i reinstalled it on a primary partition with no real reasoning behind my actions. Now my grub menu is gone, and any attempts I make to bring it back are failures.

I tried reinstalling grub from the ubuntu live boot cd with this technique:

1. Boot from a Live CD, like Ubuntu Live, Knoppix, Mepis, or similar.

2. Open a Terminal. Go SuperUser (that is, type "su"). Enter root passwords as necessary.

3. Type "grub" which makes a GRUB prompt appear.

4. Type "find /boot/grub/stage1". You'll get a response like "(hd0)" or in my case "(hd0,3)". Use whatever your computer spits out for the following lines.

5. Type "root (hd0,3)".

6. Type "setup (hd0,3)". This is key. Other instructions say to use "(hd0)", and that's fine if you want to write GRUB to the MBR. If you want to write it to your linux root partition, then you want the number after the comma, such as "(hd0,3)".

7. Type "quit".

8. Restart the system. Remove the bootable CD.


The output in the terminal made it seems like my efforts resulted in success, but when I rebooted I still was brought to the Windows Boot Loader. I frowned.
That's the manual way of installing GRUB - which should work fine. There's also a handy utility called grub-install. You generally want the bootloader to be in the MBR. Are the two operating systems on the same drive? If so, try what you did before but with (hd0) instead of (hd0,3). I suspect you're getting the Windows loader, since it's in the MBR and nothing's set up to point to GRUB from there.
__________________


Has it been a few days since I replied to your thread? Don't panic! I'm a busy college student and may forget a post if I'm extra busy (or it might just take me a while to be able to do a decent reply). If you still need help and are awaiting my reply after a few days, PM me about it.

When posting what errors you get, please give the full message. It makes helping you much easier.
shuuhen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 11-21-2008, 06:10 PM   #7 (permalink)
Registered User
 
Join Date: Nov 2008
Posts: 5
OS: Ubuntu Hardy


Re: DualBoot Xp/Ubuntu Grub Problem

Quote:
What's that you say? I've been told over and over that Windows CANNOT boot from an extended partition. I accepted that as gospel and now you're saying that's not true?
I was saying that must be true, and I learned it the heard way.

I reinstalled xp on a primary partition and booted the Ubuntu Live Cd. Then I removed Grub.
Quote:
sudo apt-get remove grub
Then I installed the super special Grub with all the fancy colors and graphics and stuff, and my problem just king of went away. WHOOHOO!
sheabarbacci is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Old 11-25-2008, 08:26 PM   #8 (permalink)
Registered User
 
shiningpathb4me's Avatar
 
Join Date: Apr 2006
Location: Mobile, AL
Posts: 32
OS: XPPro


Re: DualBoot Xp/Ubuntu Grub Problem

I give each linux distro it's own drive and install grub in the MBR of the second drive. I switch the boot order in the BIOS, so my computer looks there (on the 2nd drive) for a boot record. Grub can't screw up my windows boot. If grub doesn't behave, all I have to do is reset my BIOS/reboot to load from C:\ and fix whatever seemed to be the problem.
__________________
ECS Crossfire KA1MVPAth64 - Powercolor X800GT- 3X(SATA HD) - WinXP Pro - Fedora Core 7 - Mandriva 2009.
shiningpathb4me is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Bookmark on Thread SoupReddit!
Reply With Quote
Reply


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -7. The time now is 01:19 PM.



Copyright 2001 - 2008, Tech Support Forum

Search Engine Friendly URLs by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82