LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 04-10-2007, 08:59 PM   #1
gnanda66541
LQ Newbie
 
Registered: Mar 2007
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 0
Need help configuring GRUB to add the correct windows partition (Ubuntu)


I am using Ubuntu 6.06 Dapper Drake, and when I installed it, it didn't let me configure GRUB like some distros do. It just so happened that my computer has 2 windows partitions, a normal one, and a recovery one. Automatically, it added the recovery partition as the only windows partition, and now I don't know how to add the normal one to GRUB.

sda1 is the recovery partition, and sda2 is the normal partition.
 
Old 04-10-2007, 09:01 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,970
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
Post your /etc/grub.conf file

-custangro
 
Old 04-10-2007, 09:03 PM   #3
Yoda3114
Member
 
Registered: Mar 2007
Location: Baltimore, MD
Distribution: Kubuntu Precise
Posts: 91

Rep: Reputation: 15
Configuring GRUB

It involves editing the GRUB config. Please check here:

http://www.geocities.com/epark/linux...w2k-HOWTO.html
 
Old 04-10-2007, 09:23 PM   #4
Yoda3114
Member
 
Registered: Mar 2007
Location: Baltimore, MD
Distribution: Kubuntu Precise
Posts: 91

Rep: Reputation: 15
Any luck?? oh and sorry custangro you replied while I was typing :-)

Last edited by Yoda3114; 04-10-2007 at 09:25 PM.
 
Old 04-10-2007, 09:24 PM   #5
Yoda3114
Member
 
Registered: Mar 2007
Location: Baltimore, MD
Distribution: Kubuntu Precise
Posts: 91

Rep: Reputation: 15
Sorry double posted by accident
 
Old 04-10-2007, 11:12 PM   #6
gnanda66541
LQ Newbie
 
Registered: Mar 2007
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
yea i got it to work, but i couldn't find the grub.conf file. Also, I was wondering how to make windows the default OS.
 
Old 04-10-2007, 11:53 PM   #7
sn68
Member
 
Registered: Oct 2005
Distribution: FC5
Posts: 338

Rep: Reputation: 30
you can look for /boot/grub/menu.lst
for making windows default, change the value of default keyword, default value is 0, which corresponds to first OS, next is 1 and so on
 
Old 04-11-2007, 05:11 AM   #8
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Windows....................
The default OS.......................?

Them's swear words around here, you could have used reverse psychology and made it look like you wanted to make Linux the default, and use the response to figure out how-to.
 
Old 04-11-2007, 06:35 PM   #9
gnanda66541
LQ Newbie
 
Registered: Mar 2007
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Sorry about that junior Hacker, but other people have to use this computer, and they don't know anything about linux.

Now what do i change?

Okay this is what is says:

title Ubuntu, kernel 2.6.15-23-386
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/sda3 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-386
savedefault
boot

title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/sda3 ro single
initrd /boot/initrd.img-2.6.15-23-386
boot

title Ubuntu, memtest86+
root (hd0,2)
kernel /boot/memtest86+.bin
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows NT/2000/XP
root (hd0,0)
savedefault
makeactive
chainloader +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Microsoft Windows XP Home Edition
root (hd0,1)
savedefault
makeactive
chainloader +1
 
Old 04-11-2007, 06:47 PM   #10
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
It was just a little Linux humor, nothing serious.

My Debian has allot of bullshit in the menu.list, so I just took a small section out of it, you should have a section similar to this:
Code:
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default		0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout		5
Any line commented out with a hash (#), is not read by the system, those like "default 0" and "timeout 5" are. The default specifies which entry to boot if you don't select one from the list, making it the default. Grub starts counting from (0) not (1), so the first system in the list is number (0), you may want to change the default to (3) for Windows NT/2000/XP, or (4) for Microsoft Windows XP Home Edition. If you want it to wait longer for you to select a system, change the "timeout" to a value you prefer, mine is set at 5 seconds.

Last edited by Junior Hacker; 04-11-2007 at 06:50 PM.
 
Old 04-11-2007, 06:56 PM   #11
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Sorry, it should be number (4) or (5) because you have that "title Other operating systems", I'm pretty sure ever time the word "title" is mentioned counts as another entry.
 
Old 04-11-2007, 07:10 PM   #12
gnanda66541
LQ Newbie
 
Registered: Mar 2007
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
hmm its strange it says its read-only, and I can't save my changes to it
 
Old 04-11-2007, 07:39 PM   #13
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
You can also remove that "title Other operating systems:root" if you don't want it to show up in the list and back up the default by (1).
 
Old 04-11-2007, 07:57 PM   #14
gnanda66541
LQ Newbie
 
Registered: Mar 2007
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for your help so far.

the problem is that it wont let me alter the file, so I can't make the changes to it
 
Old 04-11-2007, 08:00 PM   #15
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Nothing strange if you can't change menu.lst, especially with a graphic editor. This is because Ubuntu by default disallows a user log in a root to the GUI. No root privilege no change to any system file.

You have to edit the /boot/grub/menu.lst in terminal mode with the text editor like vi by prefix the command with "sudo" like
Code:
sudo vi /boot/grub/menu.lst
 
  


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
GRUB is not booting the correct partition in a dual drives system ps6000 Linux - Software 4 01-11-2007 11:59 AM
Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader Free_beer Ubuntu 4 10-02-2006 07:11 PM
manually edit FC4 grub.conf to add Ubuntu alar Linux - General 2 09-19-2006 05:45 PM
how can i add winxp to grub in ubuntu mitesh.ever Ubuntu 1 07-14-2006 09:38 AM
Add logical ntfs partition to GRUB loader ! Bonch Debian 1 12-09-2004 11:01 AM


All times are GMT -5. The time now is 02:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration