LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-09-2009, 10:34 PM   #1
janap-146
Member
 
Registered: Mar 2005
Location: UK
Distribution: Ubuntu, Slackware
Posts: 49

Rep: Reputation: 15
Dual Boot 2 seperate Drives - Add option to Boot Menu?


Hi,

I have 2 drives one with Vista Ultimate x64 and Ubuntu on the other. I have just bought and setup a new case the Antec 1200 which has space for nine drives, I want to eventually get some more and put on Windows 7 and some different flavours of Linux.

I have had this setup with Windows and Ubuntu for a good few months without any issues but the annoying thing is that every time I switch the machine on I have to go into the BIOS and choose the Hard Drive which contains the OS I need to boot into! The default drive it boots into is Ubuntu.

Hmmm - so now I will finally get round to my question

Can I "easily" add the option to choose the OS to boot from Grub? I have exactly no idea what I must do - or even if it's possible?

If I could do this it would make things alot quicker and easier overall - would some kind soul please help me in this quest?

Many thanks

janap-146
 
Old 12-09-2009, 10:42 PM   #2
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
PHP Code:
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title        Microsoft Windows XP Home Edition
rootnoverify    
(hd0,0)
savedefault
makeactive
chainloader    
+
That's the entry for XP from /boot/grub/menu.lst on my dual boot. You would have to edit the rootnoverify and the title accordingly. I don't think it would be any different for 2 drives, and it can't hurt so long as you don't set a conflict.
 
Old 12-09-2009, 11:02 PM   #3
janap-146
Member
 
Registered: Mar 2005
Location: UK
Distribution: Ubuntu, Slackware
Posts: 49

Original Poster
Rep: Reputation: 15
Hi

Thanks for your response, I will boot into Ubuntu and give it a try.
 
Old 12-09-2009, 11:09 PM   #4
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
No problem, just be sure to verify the disk and partition of the m$ install before you edit the file.
 
Old 12-09-2009, 11:45 PM   #5
janap-146
Member
 
Registered: Mar 2005
Location: UK
Distribution: Ubuntu, Slackware
Posts: 49

Original Poster
Rep: Reputation: 15
I am in Ubuntu and looking at the menu.lst but I see it looks diferent and not really sure where the lines should be added?

Do they have to go in a certain place?

This is what mine looks like towards the end:

Code:
## ## End Default Options ##

title		Ubuntu 9.04, kernel 2.6.28-16-generic
uuid		0da3681a-2e34-47d2-8117-587adea08e1b
kernel		/boot/vmlinuz-2.6.28-16-generic root=UUID=0da3681a-2e34-47d2-8117-587adea08e1b ro quiet splash 
initrd		/boot/initrd.img-2.6.28-16-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-16-generic (recovery mode)
uuid		0da3681a-2e34-47d2-8117-587adea08e1b
kernel		/boot/vmlinuz-2.6.28-16-generic root=UUID=0da3681a-2e34-47d2-8117-587adea08e1b ro  single
initrd		/boot/initrd.img-2.6.28-16-generic

title		Ubuntu 9.04, kernel 2.6.28-15-generic
uuid		0da3681a-2e34-47d2-8117-587adea08e1b
kernel		/boot/vmlinuz-2.6.28-15-generic root=UUID=0da3681a-2e34-47d2-8117-587adea08e1b ro quiet splash 
initrd		/boot/initrd.img-2.6.28-15-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-15-generic (recovery mode)
uuid		0da3681a-2e34-47d2-8117-587adea08e1b
kernel		/boot/vmlinuz-2.6.28-15-generic root=UUID=0da3681a-2e34-47d2-8117-587adea08e1b ro  single
initrd		/boot/initrd.img-2.6.28-15-generic

title		Ubuntu 9.04, kernel 2.6.28-14-generic
uuid		0da3681a-2e34-47d2-8117-587adea08e1b
kernel		/boot/vmlinuz-2.6.28-14-generic root=UUID=0da3681a-2e34-47d2-8117-587adea08e1b ro quiet splash 
initrd		/boot/initrd.img-2.6.28-14-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-14-generic (recovery mode)
uuid		0da3681a-2e34-47d2-8117-587adea08e1b
kernel		/boot/vmlinuz-2.6.28-14-generic root=UUID=0da3681a-2e34-47d2-8117-587adea08e1b ro  single
initrd		/boot/initrd.img-2.6.28-14-generic

title		Ubuntu 9.04, kernel 2.6.28-13-generic
uuid		0da3681a-2e34-47d2-8117-587adea08e1b
kernel		/boot/vmlinuz-2.6.28-13-generic root=UUID=0da3681a-2e34-47d2-8117-587adea08e1b ro quiet splash 
initrd		/boot/initrd.img-2.6.28-13-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-13-generic (recovery mode)
uuid		0da3681a-2e34-47d2-8117-587adea08e1b
kernel		/boot/vmlinuz-2.6.28-13-generic root=UUID=0da3681a-2e34-47d2-8117-587adea08e1b ro  single
initrd		/boot/initrd.img-2.6.28-13-generic

title		Ubuntu 9.04, kernel 2.6.28-11-generic
uuid		0da3681a-2e34-47d2-8117-587adea08e1b
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=0da3681a-2e34-47d2-8117-587adea08e1b ro quiet splash 
initrd		/boot/initrd.img-2.6.28-11-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid		0da3681a-2e34-47d2-8117-587adea08e1b
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=0da3681a-2e34-47d2-8117-587adea08e1b ro  single
initrd		/boot/initrd.img-2.6.28-11-generic

title		Ubuntu 9.04, memtest86+
uuid		0da3681a-2e34-47d2-8117-587adea08e1b
kernel		/boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

Do I add the lines for Vista under the - ### END DEBIAN AUTOMAGIC KERNELS LIST?
 
Old 12-10-2009, 12:00 AM   #6
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
The lines I provided came from a ubuntu machine. It is at the very end of the file. You will need to know whether ubuntu considers the vista disk to be hd0 or hd1. The menu.lst file will refer to the disk as hd0 or hd1 in your case where sda would be hd0 and sdb would be hd1 I believe. (hd0,0) refers to the first disk first partition. I would assume that vista was installed before ubuntu. In which case you could probably cut and past the line I gave you and change the title to "vista" or whatever you want it to be called at boot time.
 
Old 12-10-2009, 12:14 AM   #7
janap-146
Member
 
Registered: Mar 2005
Location: UK
Distribution: Ubuntu, Slackware
Posts: 49

Original Poster
Rep: Reputation: 15
Hi

I have just done the edit and rebooted and it's working perfectly! Thank you
 
Old 12-10-2009, 12:19 AM   #8
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
You are welcome.
 
Old 12-11-2009, 01:54 PM   #9
bodach
LQ Newbie
 
Registered: Dec 2009
Location: On one of the Scottish islands.
Distribution: Ubuntu 9.10
Posts: 6

Rep: Reputation: 0
The same but different!

Quote:
Originally Posted by damgar View Post
You are welcome.
I am new to Linux, but enjoying the experience with Ubuntu 9.10, currently!

I have exactly the same problem, two drives and two OS's. I figured out how to achieve the alternate boot from other threads - so far so good.

They suggested modifications to menu.lst, as above, but I don't have this file. Later I found a suggestion that /boot/grub/grub.cfg could be altered - I have this and could see where to make the changes, except that I can't save the altered file!

I've tried sudo su in terminal, Alt + F2 gksudo gedit and even tried activating a root login password. Nothing seems to allow me to save the modified grub.cfg. I suspect that I am not actually activating root privileges since activating a root password goes through the motions, but saves nothing permanently.

Guidance would be greatly appreciated.

Thanks.
 
Old 12-12-2009, 08:55 AM   #10
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
I use Joe as a txt editor (install with synaptic if you wish) and type 'sudo Joe /path/to/yourfile'. Edit. Save file with ctrl+k+x
 
Old 12-13-2009, 08:08 AM   #11
bodach
LQ Newbie
 
Registered: Dec 2009
Location: On one of the Scottish islands.
Distribution: Ubuntu 9.10
Posts: 6

Rep: Reputation: 0
I have solved the problem!

I had been using sudo to gain root privileges, but I was still "user". When I came to save the file I couldn't do so because it was read only and I couldn't use chmod on the file because I was not the owner.

I used sudo su and "became" "root". This allowed me to change file permissions and, hence, save the modified file. I then changed the permissions back to read only.

It seems long winded and I'm sure there will be a neater way of achieving the same goal, but that I have yet to learn - perhaps it's in Linux 102!. As it is I've achieved my goal of having a dual boot system which selects XP by default and Ubuntu on selection!

Thanks for your help!
 
Old 12-13-2009, 08:28 AM   #12
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
you can also make a password for root and login to root's desktop

sudo su + password
passwd root

then logout and login to root account, make sure you call up login edit in System/Administration/Login Screen
and check the box thats says allow root/admin login first!
 
0 members found this post helpful.
  


Reply



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
Setting up dual boot with 2 seperate hard drives liquid486 Linux - Newbie 4 01-18-2005 07:51 PM
Dual Boot : Making Windows First Option in boot menu Maxwell Rain Linux - Software 3 11-27-2004 03:00 PM
Dual boot RedHat and WinXP on Seperate Drives Nicko Linux - Software 4 08-21-2003 08:34 AM
Dual Boot XP,Slackware9 :seperate drives JamminJ Linux - Newbie 8 07-24-2003 10:20 PM
dual boot SuSE / XP on seperate drives with GRUB uploadjoe Linux - Software 2 02-20-2003 11:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 07:49 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