Linux - NewbieThis 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!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I will apologies now for my limited or non existant knowledge of Linux, I have recently (yesterday) installed Ubuntu onto my PC, currently I also have Windows XP installed on a seperate HDD, however when I reboot I see the Grub menu but there is no option for Windows XP.
I have read some of the posts relating to this style of issue but most seem to be on the same hdd, I have Win XP on a SATA and Ubuntu on IDE.
Could someone please assist in how I should resolve this?
In Ubuntu, add an entry for WinXP to the file /boot/grub/menu.lst (you will need to edit the file as root). You will need to post the output of 'fdisk -l' in order for someone to tell you exactly how to phrasr the entry for winxp.
It will be something like this:
root (hdX,Y) where X and Y indicate the drive and partition of winxp
First do you have any experience with terminal? To make a long story short you will need to modify you /boot/grub/menu.lst. Windows wants to be on the first partition of the first hd to boot. Your ide hd will boot first so we need to change the boot menu where windows thinks it is booting first. This will take three or four steps but we need to have an idea where to start.
The hds are listed hda,? is where the 'a' is the first drive and the "?' is the partition number on that drive (such as 1 for the first partition and so forth). hdb would be the second hd to boot and of course the partition is marked the same. sda is the same as the hds except it stands for sata drives and most external. They say the ides will always boot before the sdas in the boot order. Now with windows on your sda we need to trick it into thinking it is the first in the boot. I need you to go to terminal and show us your '/boot/grub/menu.lst' as root. If you have trouble locating it use the command ' find /boot/grub/menu.lst ' All of this without the hash marks.
I am sorry for the prior post, too late at night, your ubuntu will probably list all the hds at sd?. I appears you have one type of windows on sda1 and linux on sda5. Please go to terminal and locate '/boot/grub/menu.lst' by using the command 'find /boot/grub/menu.lst/' without the hash marks.
Grub count from 0 and so the 1st partition of the 1st disk will be known as (hd0,0) to Grub. The notations used by Grub is different to Linux. Since your Ubuntu in IDE primary master boots so (hd0,0) will be sda1 with partition Type 7 indicating it is a NTFS partition. (hd0,4) or sda5 should be your Ubuntu partition.
By comparing the geometry of each disk with the sudo fdisk -l in post #6 you can find out the disk orders.
A MS Windows must be booted by a primary partition marked by a "*" in the output of fdisk -l. In your case there are two of them; namely sda1 and sdc1. So your WIndows will boot if you instruct Grub to boot up either sda1 or sdc1.
The commands, installed in /boot/grub/menu.lst, will be as per bigrigdriver's suggestion in Post #2. All you need is the partition referefernce of (hdx,y). For sda1 it would be (hd0,0). If sdc is your 3rd disk then the partition reference should be (hd2,0).
The above assumes you have not altered the disk order before and after Ubuntu installation. If you did then this is the time to tell us because the booting instructions will have to be modified.
The other way you can find out which partition you should boot to is to look at the files inside. The partition that can fire up Xp will have the files like boot.ini and NTLDR inside.
Lastly Ubuntu belongs to the modern group of Linux that has standardised calling all IDE, PATA, Sata, USB external hard disk and USB memory devices by device names sda, adb, sdc, sdd, sde,....etc.
Thank you all for your help this far I have been able to confirm the list of devices and also what the grub line should read. However I have one last issue.
This will sound stupid but can someone please advise on how to enter the information? I seem to be limited by permissions when opening the menu.lst with a notepad?
thanks again to everyone for your help and assistance on this.
Last edited by Kiwi944; 05-30-2008 at 04:47 PM.
Reason: poor spelling