LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 08-27-2006, 02:05 PM   #1
jim98cl
LQ Newbie
 
Registered: Jun 2006
Posts: 22

Rep: Reputation: 15
any way to change grub to boot to another HD?


hi, im kinda a noob to linux, just getting used to it
so im wondering if theres any way to configure grub so when it selects windows it'll boot from another hard drive?
 
Old 08-27-2006, 03:26 PM   #2
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
Yes there is, but you haven't given enough information.
If you post the output from
fdisk -l
(and indicate here where your windows install is, if it's not obvious)
and
cat /boot/grub/menu.lst
and
mount

The solution will involve adding an entry to your /boot/grub/menu.lst file. You might be able to work this out for yourself if you read the grub manual (http://www.gnu.org/software/grub/manual/grub.html), but this is not the easiest document to get through.
 
Old 08-27-2006, 03:58 PM   #3
jim98cl
LQ Newbie
 
Registered: Jun 2006
Posts: 22

Original Poster
Rep: Reputation: 15
um, i dunno what you mean by the fdisk -l and the mount (sorry, nub here)
but i do have the menu

# Modified by YaST2. Last modification on Wed Feb 1 11:12:40 UTC 2006

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,3)/boot/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 10.0
root (hd0,3)
kernel /boot/vmlinuz root=/dev/sda4 vga=0x31a selinux=0 resume=/dev/sda3 splash=silent showopts
initrd /boot/initrd

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
chainloader (hd0,0)+1

###Don't change this comment - YaST2 identifier: Original name: floppy###
title Floppy
chainloader (fd0)+1

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 10.0
root (hd0,3)
kernel /boot/vmlinuz root=/dev/sda4 vga=normal showopts ide=nodma apm=off acpi=off noresume selinux=0 edd=off 3
initrd /boot/initrd
 
Old 08-27-2006, 04:05 PM   #4
jim98cl
LQ Newbie
 
Registered: Jun 2006
Posts: 22

Original Poster
Rep: Reputation: 15
okay well it seems that YaST2 has a thing to change the boot stuff for me, except i dont know what my other hard drive would be considered as

(/dev/something?)
 
Old 08-27-2006, 04:42 PM   #5
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
So, does the Windows boot option work?
And are you talking about another Windows install, or is that one on the menu.lst completely wrong?

In linux, you're other hard drive would probably be /dev/sdb but grub is not linux, it's almost it's own operating system, specialising in booting others. So grub uses different notation. (hd0,0) is the first partition on the first disk, (hd1,0) is the first partition on the second disk.

Windows only likes to run on the 'active' partition of the first disk (selfish), so you have to fool it into thinking that's where it is. grub can do this.

So, if you have a Windows install on the second hard drive, this entry may work:
Code:
title Windows-2
root (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
Those commands that I asked for output from need to be run from a terminal. Most (all?) distributions will have one somewhere in the menu, it might be called a console - it's the equivalent of the DOS command line. If you can't find it, you can always get one with Ctrl-Alt-F1 or any Function key 1 through 6. Ctrl-Alt-F7 should get you back to your X session.
 
Old 08-27-2006, 08:27 PM   #6
jim98cl
LQ Newbie
 
Registered: Jun 2006
Posts: 22

Original Poster
Rep: Reputation: 15
wow it worked, thanks!
 
Old 08-28-2006, 09:04 AM   #7
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
No problem.
 
  


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
How to Change Grub Boot Order Johnny Faster Ubuntu 15 02-05-2010 12:14 PM
Change the boot order in grub buster_balz Linux - Newbie 2 12-23-2004 11:41 AM
Change Default Boot from GRUB lel800 Red Hat 14 08-25-2004 01:32 AM
How do you change the default Boot-up OS in Grub? buckwheat12 Fedora 3 05-08-2004 03:24 PM
How to change default boot for Grub? nano_electronix Linux - Software 4 09-01-2003 07:46 AM


All times are GMT -5. The time now is 11: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration