LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2011, 06:17 AM   #1
oldtimeyjunk
LQ Newbie
 
Registered: Apr 2011
Distribution: Arch Linux (MATE + Compiz)
Posts: 6

Rep: Reputation: 0
Question How to add items to GRUB?


Hello!
I'm currently using GRUB 0.98 (NOT GRUB2) on my PC.
How can I add Windows & Visopsys.

Windows is on "sda6", and Visopsys is on "sda7".

How do I add these to GRUB?
 
Old 04-20-2011, 06:56 AM   #2
lystor
Member
 
Registered: May 2010
Location: Ukraine
Posts: 43

Rep: Reputation: 3
Quote:
Originally Posted by oldtimeyjunk View Post
Hello!
I'm currently using GRUB 0.98 (NOT GRUB2) on my PC.
How can I add Windows & Visopsys.

Windows is on "sda6", and Visopsys is on "sda7".

How do I add these to GRUB?
Try next grub 0.97 CentOS 5 config:
Code:
title Windows
     rootnoverify(hd0,5)
     chainloader +1

title Visopsys
      rootnoverify(hd0,6)
      chainloader +1
 
Old 04-20-2011, 09:47 AM   #3
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
It may be hard, because windows xp needs to be on a primary partition.
 
Old 04-20-2011, 11:46 AM   #4
oldtimeyjunk
LQ Newbie
 
Registered: Apr 2011
Distribution: Arch Linux (MATE + Compiz)
Posts: 6

Original Poster
Rep: Reputation: 0
Hard?

What? Windows has to be the top partition? Or just I just need to change it to "Primary" instead of "Logical"?
 
Old 04-20-2011, 12:01 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,343

Rep: Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587Reputation: 1587
If windows is not on the first partition on the first disk will have to add map lines to grub file. Down toward the bottom of this link for grub tutorial tells how.
http://www.linuxquestions.org/linux/...ROUBLE_SHOOTER
 
1 members found this post helpful.
Old 04-20-2011, 01:04 PM   #6
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
You can have up to four primary partitions per h/d. If windows is not put in the first primary then you have to map it to make it think it is. Windows still needs to be in a primary partition.

Linux on the other hand does not care, it will work in primary or logical partitions.

Last edited by Larry Webb; 04-20-2011 at 01:06 PM.
 
Old 04-20-2011, 02:46 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,485

Rep: Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485
The map command is for drives, not partitions. The entry below has rootnoverify for drive two, partition one on Grub Legacy. Note the map commands only refer to drives.

title Windows XP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

Take a look at the link below, scroll down to DOS/Windows section for more info.
http://www.linuxselfhelp.com/gnu/gru...er/grub_4.html

Windows filesystem/OS does not need to be on a primary partition but its boot files do. You can install one windows OS on a primary and another on a logical but the boot files will need to be on the primary. You could also create a small boot partition on a primary where you can install boot files. Google "boot windows from a logical partition" and you will get lots of sites with detailed information.
 
Old 04-20-2011, 06:23 PM   #8
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by yancek View Post
The map command is for drives,
Thanks for correcting me, it has been too long since I worked grub over with a couple of window installations.

You need to hide the partitions that you do not want to boot.
 
  


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
Unable to add toolbar items to posts unixfool LQ Suggestions & Feedback 2 05-07-2009 11:02 AM
How to add/remove startup items? pedofil Slackware 3 03-05-2009 08:19 AM
Add items to the main menu abenavar Linux - Newbie 3 04-02-2007 06:50 PM
Need to 'make modules' if add new items as 'Y' but not 'M'? brgr88 Linux - Kernel 1 05-26-2006 06:57 PM
Why can't I add new menu items? TippyToes Linux - General 9 02-02-2004 12:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:29 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
Open Source Consulting | Domain Registration