LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-13-2012, 02:00 PM   #1
Birdman48
Member
 
Registered: Aug 2008
Location: Southern Maryland
Distribution: ubuntu 14.04 LTS
Posts: 113

Rep: Reputation: 1
Editing GRUB/menu.lst to multi-boot with separate hard drives


I currently have OpenSuse 11.4 on one hard drive. I want to install another hard drive with Windows XP. How should I edit menu.lst? Here is menu.lst now:
Code:
# Modified by YaST2. Last modification on Sat Feb 11 18:52:01 EST 2012
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader

default 0
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,1)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.4 - 2.6.37.6-0.11
    root (hd0,1)
    kernel /boot/vmlinuz-2.6.37.6-0.11-desktop root=/dev/disk/by-id/ata-WDC_WD360GD-00FNA0_WD-WMAH91224373-part2 resume=/dev/disk/by-id/ata-WDC_WD360GD-00FNA0_WD-WMAH91224373-part1 splash=silent quiet showopts vga=0x31a
    initrd /boot/initrd-2.6.37.6-0.11-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.4 - 2.6.37.6-0.11
    root (hd0,1)
"menu.lst" 26L, 1271C
 
Old 03-13-2012, 02:26 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
If your hard drive with Opensuse is sda and the drive you install xp to is sdb and you put the boot files for xp on the first partition of the drive with xp, the entry below should work if you are booting from the Opensuse Grub on sda:

Quote:
title Windows XP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
There are a lot of ifs here. You also need to ensure you don't install the xp bootloader to the first drive. Not sure how you plan to do the isntallation?
 
Old 03-13-2012, 08:44 PM   #3
Birdman48
Member
 
Registered: Aug 2008
Location: Southern Maryland
Distribution: ubuntu 14.04 LTS
Posts: 113

Original Poster
Rep: Reputation: 1
That's another thing. I was thinking I'd unplug the first drive (sda) and plug in sdb, then install XP.
 
Old 03-13-2012, 09:12 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
Quote:
That's another thing. I was thinking I'd unplug the first drive (sda) and plug in sdb, then install XP.
That should be safe for your situation. If you then keep the Opensuse drive as first in boot priority, the entry above should work.
 
  


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
multi booting GRUB cd cannot find menu.lst bowserevilking Linux - General 1 10-17-2009 08:49 PM
editing menu.lst in puppy grub tigertim71 Puppy 13 08-17-2009 06:01 PM
to add Mandriva grub boot lines to the main menu.lst file, using 2 hard drives james2b Linux - Newbie 5 10-09-2008 06:20 PM
Problem editing /boot/grub/menu.lst baldur2630 Linux - Server 10 10-03-2008 12:12 PM
Editing /boot/grub menu.lst OpenSUSE 10.2 ceeleelewis Linux - Newbie 7 03-16-2007 09:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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