Dual boot - Different harddrives

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

Dual boot - Different harddrives

Postby seph on Tue Sep 02, 2008 2:29 pm

Hi all,

I am having trouble setting up dual boot for windows XP and Linux which reside on different hard drives. I had Linux mint installed, and then decided to add in XP. Wrong way to do things but hey lol.

I want to set it so I can choose XP from the Linux side. I can get any operating system to load by setting its harddrive as the first device to load in the Bios. So if I choose the Linux drive to load first, then Linux will load and vice versa. I have tried Super grub CD, and Auto Super grub. To be honest, I dont have much clue to what I'm doing as I'm fairly new to linux.

I have tried adding XP into the menu.lst file but it causes an unknown file system error when I try to load it on startup. I have been looking for solutions to this for ages and there is little help for dual hard drives unfortunately.

So can anyone help me?

Thanks
seph
Level 1
Level 1
 
Posts: 9
Joined: Fri Aug 22, 2008 4:11 pm

Linux Mint is funded by ads and donations.
 

Re: Dual boot - Different harddrives

Postby AK Dave on Tue Sep 02, 2008 4:41 pm

So you HAVE Mint installed, installed XP on a different drive, and now you don't have grub as a bootloader. You should not have to play with your bios to dual-boot; you SHOULD have grub. Screwing around with master/slave options in bios just adds a layer of variability that is unnecessary, so knock it off. Use grub. You need to restore grub, which should have been installed by default with your original Mint install.

I think this is what you want:
http://www.howtogeek.com/howto/ubuntu/r ... es-it-out/
Or:
http://ubuntuforums.org/showthread.php?t=224351
User avatar
AK Dave
Level 6
Level 6
 
Posts: 1042
Joined: Wed May 14, 2008 3:39 pm
Location: Anchorage, AK USA

Re: Dual boot - Different harddrives

Postby seph on Tue Sep 02, 2008 5:09 pm

Thanks for the fast reply. I have recently done this. And also added in XP to the menu.lst file but when I choose windows xp when the options pop up I get an error saying "Filesystem type unknown, partition type unknown 0x7". Linux loads fine tho. And so does Windows XP if I set it first in bios. At the moment Linux is set to load first as I want to choose XP from Linux choice menu. But as I said I get that error when I choose XP.

I have also tried map commands which do not work either.
seph
Level 1
Level 1
 
Posts: 9
Joined: Fri Aug 22, 2008 4:11 pm

Re: Dual boot - Different harddrives

Postby AK Dave on Tue Sep 02, 2008 5:15 pm

If the XP partition is formatted as NTFS then the menu.lst command needs to reference it as a ntfs-3g partition.

Post your menu.lst for grub in a
Code: Select all
code window
User avatar
AK Dave
Level 6
Level 6
 
Posts: 1042
Joined: Wed May 14, 2008 3:39 pm
Location: Anchorage, AK USA

Re: Dual boot - Different harddrives

Postby seph on Tue Sep 02, 2008 5:21 pm

Here we go,

Code: Select all
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-legacy-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# 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

gfxmenu=/etc/grub/message.elyssa

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout      5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title      Windows 95/98/NT/2000
# root      (hd0,0)
# makeactive
# chainloader   +1
#
# title      Linux
# root      (hd0,1)
# kernel   /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title      Linux Mint, kernel 2.6.24-16-generic
root      (hd0,0)
kernel      /boot/vmlinuz-2.6.24-16-generic root=/dev/sda1 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic

title      Linux Mint, kernel 2.6.24-16-generic (recovery mode)
root      (hd0,0)
kernel      /boot/vmlinuz-2.6.24-16-generic root=/dev/sda1 ro single
initrd      /boot/initrd.img-2.6.24-16-generic

title      Linux Mint, kernel memtest86+
root      (hd0,0)
kernel      /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

title Windows XP
   root (hd1,0)
   makeactive
   chainloader +1


Cheers!
seph
Level 1
Level 1
 
Posts: 9
Joined: Fri Aug 22, 2008 4:11 pm

Re: Dual boot - Different harddrives

Postby AK Dave on Tue Sep 02, 2008 7:44 pm

Okay, that menu.lst SHOULD work. But it doesn't. Because XP is stupid.

Problem:
a. you installed XP on a drive that was at that time identified as "hd0".
b. you installed Mint on a drive that was at that time identified as "hd0".
c. you've been using BIOS switching to flipflop the drive order to dualboot.

You're now trying to convince XP to boot on "hd1". I believe that is exactly the problem. Are you using SATA drives, perchance?

Here's an idea:
Set your BIOS so that the XP drive is master (hd0), Mint as slave (hd1). Boot with grub LiveCD. Install grub to the MBR of hd0. You'll then have a grub where the meat of it looks like this:

Code: Select all
## ## End Default Options ##

title      Linux Mint, kernel 2.6.24-16-generic
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.24-16-generic root=/dev/sda1 ro quiet splash
initrd      /boot/initrd.img-2.6.24-16-generic

title      Linux Mint, kernel 2.6.24-16-generic (recovery mode)
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.24-16-generic root=/dev/sda1 ro single
initrd      /boot/initrd.img-2.6.24-16-generic

title      Linux Mint, kernel memtest86+
root      (hd1,0)
kernel      /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

title Windows XP
   root (hd0,0)
   makeactive
   chainloader +1
User avatar
AK Dave
Level 6
Level 6
 
Posts: 1042
Joined: Wed May 14, 2008 3:39 pm
Location: Anchorage, AK USA

Re: Dual boot - Different harddrives

Postby seph on Wed Sep 03, 2008 6:04 pm

Many thanks for your help but I ended up screwing up linux and windows and just decided to start again haha. So I re-installed Windows and then re-installed Linux and set XP as the master drive physically. Im not sure which one boots up first from the bios's point of view but it works a charm now! I get the option to load XP Pro and it works perfectly :D

Hopefully this topic will help someone else in the future, as I said, I stuggled to find help with dual hard drive boot.

Cheers :D
seph
Level 1
Level 1
 
Posts: 9
Joined: Fri Aug 22, 2008 4:11 pm

Re: Dual boot - Different harddrives

Postby AK Dave on Wed Sep 03, 2008 7:02 pm

Your struggle was caused by the fact that you had previously been playing with master/slave settings in bios instead of using grub.

But in the end your re-install option leads to the same end result. I was simply trying to direct you to that same place without asking you to reinstall either XP or Mint.
User avatar
AK Dave
Level 6
Level 6
 
Posts: 1042
Joined: Wed May 14, 2008 3:39 pm
Location: Anchorage, AK USA

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: johnboy1313, llogg, Mute Ant, niowluka and 18 guests