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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-10-2005, 12:19 PM
|
#1
|
LQ Newbie
Registered: Sep 2005
Posts: 1
Rep:
|
Using GRUB to boot WinXP
I've just installed Ubuntu and the GRUB was put in the MBR (as recommended by the installation program). While beeting into Linux works fine, when I select Windows XP it just hangs.
The commands it has are:
root (hd0,0)
savedefault
makeactive
chainloader +1
When I do it manually in the command line, it all works fine until I run 'boot'.
Any help anyone can give me? Have I somehow screwed up my Windows installation?
-----
Northy
|
|
|
09-10-2005, 12:51 PM
|
#2
|
Member
Registered: Aug 2005
Location: Ukraine
Distribution: Ubuntu 9.04
Posts: 99
Rep:
|
Here's entry to boot Win2K:
Code:
title Microsoft Windows 2k SP4
rootnoverify (hd0,2)
chainloader +1
makeactive
boot
'rootnoverify' must be instead of simply 'root'. hd0 - first hard drive. The number after comma is the number of the partition which holds the windows loader. makeactive makes windows think it was booted from its partition and it's active. Try this.
|
|
|
09-10-2005, 05:14 PM
|
#3
|
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Rep:
|
Do a geometry (hd0) at grub prompt to check your partition table.
|
|
|
09-19-2005, 12:56 AM
|
#4
|
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
|
Boot into linux. Look in /etc/fstab and see which partition windows is on. hda1 or sda1 is drive 0, partition 0. hdb3 or sdb3 is drive 1 partition 2. I hope you can grasp the concept. Drives and partitions both start out at 0, but partitions start out at hda1 or sda1. There is no hda0 or sda0.
In /etc/fstab there should be a partition that is NTFS filesystem. Look at what it is.
In /boot/grub/menu.lst:
title windows
root (hd0,0)
chainloader +1
That is if windows is on drive 0, partition 0.
title windows
root (hd0,2)
chainloader +1
That is if windows is on drive 0, partition 2
|
|
|
09-19-2005, 06:12 AM
|
#5
|
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Rep:
|
It has caught my attention recently that in many XP installations a partion (could be hidden) may have been inadvertently set up by the user for the purpose of backing up XP system data or working as a swap. This partition may have been mistakedly picked up by Grub to boot as the XP.
|
|
|
All times are GMT -5. The time now is 01:04 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|