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!
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.
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.
gud eve.... i have 2 hard disks...and i have installed 2 operating systems with 1st hdd xp n 2nd hdd ubuntu...
1--sata--windows xp(OS)
2--ide---linux UBUNTU 8.04
my primary boot option is xp presently....
i want to know how to edit the menu.lst file in linux to add windows to its boot loader... i mean i m unable 2 find the appropriate partition......i.e. (hd 0,0) or sumthn else.... so i jst wanna add my windows xp to ubuntu boot file....
i also want to know if der is any possiblity to add ubuntu to windows boot loader...if so hw can v do dat...
this is how my memory partitions are organized...now according to this tell me what should be placed in the root line.....
title Windows xp
root (hd0,1)
makeactive
chainloader +1
What currently boots - the Windows bootloader or grub (i.e. which menu do you see) ???.
What operating system(s) successfully loads once you select it ???.
as i have 2 different hard disks for each operating system...i do not know how to edit the windows boot file...i know how to edit the linux boot file but i am unable to understand the exact partition[exhd0,0)] to be given in the menu.lst file...
so kindly suggest me the appropriate partition....by analyzing my previous post...
In your first post you indicate you have xp on one drive and Ubuntu on another drive. It also shows the first drive (sda) containing one extended partition and four logical partitions with Ubuntu on sda7. You have two windows partitions on the drive (sda5 and sda6)with Ubuntu which are both logical partitions. I assume your xp is on sdb1 as that is the only primary partition on that drive and is marked active (bootable). Assuming you have installed Grub to the mbr of sda, the entry in menu.lst for windows should be:
titile windows xp
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
If you haven't installed Grub to the mbr on sda, you need to do do:
sudo grub #you will get a grub prompt (grub> where you enter the following:
root (hd0,6)
setup (hd0)
quit
You have sda1 marked active even though it's just an extended partition. I also am not sure if you will be able to access the data on sda5 and sda6 or if those are just data partitions? Windows will boot from a logical partition if you have another version of windows on a primary on the same drive. Don't know if it works if the primary is on another drive? You referred in your original post to xp on the first and Ubuntu on the second drive. I'm not sure if that is just the way you refer to them but your Ubuntu sees it the opposite, with Ubuntu on sda and xp on sdb. If you have switched boot priorit in the BIOS since posting the fdisk this won't work!
Since you indicated you were currently booting from windows, I assume you know how to boot Ubuntu from xp bootloader?
In your first post you indicate you have xp on one drive and Ubuntu on another drive. It also shows the first drive (sda) containing one extended partition and four logical partitions with Ubuntu on sda7. You have two windows partitions on the drive (sda5 and sda6)with Ubuntu which are both logical partitions. I assume your xp is on sdb1 as that is the only primary partition on that drive and is marked active (bootable). Assuming you have installed Grub to the mbr of sda, the entry in menu.lst for windows should be:
titile windows xp
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
If you haven't installed Grub to the mbr on sda, you need to do do:
sudo grub #you will get a grub prompt (grub> where you enter the following:
root (hd0,6)
setup (hd0)
quit
You have sda1 marked active even though it's just an extended partition. I also am not sure if you will be able to access the data on sda5 and sda6 or if those are just data partitions? Windows will boot from a logical partition if you have another version of windows on a primary on the same drive. Don't know if it works if the primary is on another drive? You referred in your original post to xp on the first and Ubuntu on the second drive. I'm not sure if that is just the way you refer to them but your Ubuntu sees it the opposite, with Ubuntu on sda and xp on sdb. If you have switched boot priorit in the BIOS since posting the fdisk this won't work!
Since you indicated you were currently booting from windows, I assume you know how to boot Ubuntu from xp bootloader?
thank you very much...i ll try and let you know if it worked or not...newy thnks 4 helpin me
Grub doesn't actually read or boot windows, it chainloads them. The map commands are to make windows think it's on the first drive which it needs because of its large ego. Best thing to do though is as Nylex suggests, read the manual. You can get detailed explanations from the Grub Manual. Here's a link to it:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.