Making dual-boot with XP and Mint on different HDDs?

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

Making dual-boot with XP and Mint on different HDDs?

Postby EKSelenc on Sun Aug 03, 2008 1:10 pm

Hi there.
I've got WinXP & LinuxMint installed on diferent IDE disk drives, XP is installed on the primary master and LinuxMint on the primary slave. When both drives are connected only XP will boot, trying to boot LinuxMint from the primary slave will result in standart boot screen showing and then some kind of "busy box" command prompt and it won't boot further.
Both OS's were installed separately (without another HDD plugged in) so if I disconnect HDD with XP, I can boot normally from the Mint's drive (I guess that means GRUB is right there and not damaged, though XP's loader prevents it from correct functioning).
I've read "The definitive dual-booting guide" and I could'nt find this exact kind of situation there.
Is there a way to make a dual-boot here with no need to unplug the first HDD every time I need LinuxMint?
I'd be very grateful for any advice that helps.
Thanks.
N/A
EKSelenc
Level 1
Level 1
 
Posts: 8
Joined: Sun Aug 03, 2008 12:47 pm
Location: RF

Linux Mint is funded by ads and donations.
 

Re: Making dual-boot with XP and Mint on different HDDs?

Postby Fred on Mon Aug 04, 2008 12:13 am

EKSelenc,

We can fix this without too much trouble but you will have to be willing to do a little bit of work.

You need to download and burn the latest stable version of Supergrub live cd iso.

http://download.linux-live-cd.org/Super ... sgd/cdrom/

You need to copy and paste your /boot/grub/menu.lst file in a code box. Type in a terminal:

gedit /boot/grub/menu.lst

You need to copy and paste your /etc/fstab file in a code box. Type in a terminal:

gedit /etc/fstab

You also need to run the Mint live cd and look in the menu for a program called Gparted. Open it and post a picture of your partition table for each drive. When you do this both drives need to be connected so that XP boots by default. Please post nice big pictures. Old eyes. :-)

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Making dual-boot with XP and Mint on different HDDs?

Postby EKSelenc on Mon Aug 04, 2008 8:22 am

OK I'm still a noob ((( So I'd like to ask some questions to be sure I am doing it right, OK?
So I donwload and burn Supergrub.
Fred wrote:You need to copy and paste your /boot/grub/menu.lst file in a code box. Type in a terminal:

gedit /boot/grub/menu.lst

You need to copy and paste your /etc/fstab file in a code box. Type in a terminal:

gedit /etc/fstab

Should I execute these from my installation of Mint, or should I boot from that Supergrub CD and do it there? BTW I thought that command like "gedit ***" will just open that file in GEdit for editing (the problem is I got KDE CE and there is no GEdit there, I suppose). Oh and what is that "codebox" thing?

Fred wrote:You also need to run the Mint live cd and look in the menu for a program called Gparted. Open it and post a picture of your partition table for each drive. When you do this both drives need to be connected so that XP boots by default.

I guess it doesn't matter what kind of Mint's ditribution this CD will be? I mean my DVD-drive can't read my KDE CE dvd right now (( so I may be needing to download Live CD from, say, non-KDE version.
I'm sorry for being that n00bish.
Again thanks for the help.
N/A
EKSelenc
Level 1
Level 1
 
Posts: 8
Joined: Sun Aug 03, 2008 12:47 pm
Location: RF

Re: Making dual-boot with XP and Mint on different HDDs?

Postby Fred on Mon Aug 04, 2008 8:50 am

EKSelenc,

Sorry, but I am pressed for time right now. If someone hasn't translated the instructions for kde for you by the time I get back I'll fix it and answer your questions.

Later my friend.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Making dual-boot with XP and Mint on different HDDs?

Postby AK Dave on Mon Aug 04, 2008 1:41 pm

EKSelenc,

kdeedit instead of gedit

But you can do this with a gparted LiveCD. Make sure both drives are connected so that XP will boot, and then boot the gparted CD. You'll be able to screencap the partition tables. You'll then be able to mount the partition with Mint on it and find /boot/grub/menu.lst and /etc/fstab from there. Copy, paste, complete.

codebox =
Code: Select all
begin and end the segment of text that you want designated as a codebox with the [] tags for code /code. Easiest is to cut/paste the text, highlight it, and then click "code" from above.

Advantages:
It stands out from regular text
It is formatted differently
mono font
User avatar
AK Dave
Level 6
Level 6
 
Posts: 1043
Joined: Wed May 14, 2008 3:39 pm
Location: Anchorage, AK USA

Re: Making dual-boot with XP and Mint on different HDDs?

Postby EKSelenc on Mon Aug 04, 2008 3:34 pm

OK now I get it you've been talking about the "code" tag here on forum, I've been thinking that's some kind of Linux text feature...
I will try to get that configuration shown here as soon as I can.
Thanks.
N/A
EKSelenc
Level 1
Level 1
 
Posts: 8
Joined: Sun Aug 03, 2008 12:47 pm
Location: RF

Re: Making dual-boot with XP and Mint on different HDDs?

Postby EKSelenc on Mon Aug 04, 2008 6:38 pm

OK here it is.
XP partition:
http://img244.imageshack.us/img244/7140/gpartedgc8.jpg
Mint partition:
http://img142.imageshack.us/img142/2912/gpartedex6.jpg
/boot/grub/menu.lst (there are 2 files there: "menu.lst" and "menu.lst~". I've chosen one without the "~"):
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-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.
default      0

gfxmenu=/etc/grub/message.mint

## 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/hda1 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

## 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

## ## End Default Options ##

title      Linux Mint 4.0 KDE CE, kernel 2.6.22-14-generic
root      (hd0,0)
kernel      /boot/vmlinuz-2.6.22-14-generic root=/dev/hda1 ro quiet splash
initrd      /boot/initrd.img-2.6.22-14-generic
boot

title      Linux Mint 4.0 KDE CE, kernel 2.6.22-14-generic (recovery mode)
root      (hd0,0)
kernel      /boot/vmlinuz-2.6.22-14-generic root=/dev/hda1 ro single
initrd      /boot/initrd.img-2.6.22-14-generic
boot

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

### END DEBIAN AUTOMAGIC KERNELS LIST

/etc/fstab:
Code: Select all
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# /dev/hda1
UUID=2acbb472-777c-459a-a820-2ca149e3f970 /               ext3    defaults,errors=remount-ro 0       1
# /dev/hda5
UUID=8638CD6838CD57B7 /media/hda5     ntfs    defaults,umask=007,gid=46 0       1
# /dev/hda6
UUID=97e8cc1c-b32c-44d5-a6e1-88e201c63552 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec 0       0
/dev/hdc        /media/cdrom1   udf,iso9660 user,noauto,exec 0       0

So what should I do next?
N/A
EKSelenc
Level 1
Level 1
 
Posts: 8
Joined: Sun Aug 03, 2008 12:47 pm
Location: RF

Re: Making dual-boot with XP and Mint on different HDDs?

Postby Fred on Mon Aug 04, 2008 10:40 pm

EKSelenc,

Great... Ok, I want you to attach only the Linux drive so it will boot into Linux.

When you get a desktop I want you to open a terminal and type:

kdesu kate /etc/fstab

Put in your password and you will open that file for editing. Remove everything from that file and copy and paste what I have in the code box below for fstab into that now empty file. Save and close.

Open a terminal and type:

kdesu kate /boot/grub/menu.lst

Put in your password and the menu.lst file will open for editing. Remove everything in that file and copy and paste what I have in the code box below for menu.lst into that now empty file. Save and close.

Open a terminal and type:

sudo mkdir /media/Windows-C
sudo mkdir /media/Windows-D
sudo mkdir /media/hdb5

Close the terminal and shut your machine down.

Connect both your drives so that your Windows boots immediately. Put the SuperGrub disk I told you to download and burn into the cd drive and reboot the machine. Using Supergrub, boot into the Linux install. Don't fix anything with the SuperGrub disk, just use it to boot into Linux.

Once Linux has booted and you have a desktop, open a terminal and type:

sudo grub

root (hd1,0)

setup (hd0)

quit

Close the terminal. You are done. Remove the SuperGrub disk and reboot. You should get the Mint Boot screen where you can choose to boot Windows or Mint. I set Mint as the default.

fstab
Code: Select all
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0

# /dev/hdb1
/dev/hdb1     /               ext3    defaults,errors=remount-ro 0       1

# /dev/hdb5
/dev/hdb5 /media/hdb5     ntfs    defaults,umask=007,gid=46 0      2

# /dev/hda1
/dev/hda1 /media/Windows-C   ntfs    defaults,umask=007,gid=46 0      2

# /dev/hda5
/dev/hda5 /media/Windows-D   ntfs    defaults,umask=007,gid=46 0      2

# /dev/hdb6
/dev/hdb6    none            swap    sw              0       0

/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec 0       0
/dev/hdc        /media/cdrom1   udf,iso9660 user,noauto,exec 0       0



menu.lst
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-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.
default      0

gfxmenu=/etc/grub/message.mint

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

# 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/hdb1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd1,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

## 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

## ## End Default Options ##

title      Linux Mint 4.0 KDE CE, kernel 2.6.22-14-generic
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.22-14-generic root=/dev/hdb1 ro quiet splash
initrd      /boot/initrd.img-2.6.22-14-generic
boot

title      Linux Mint 4.0 KDE CE, kernel 2.6.22-14-generic (recovery mode)
root      (hd1,0)
kernel      /boot/vmlinuz-2.6.22-14-generic root=/dev/hdb1 ro single
initrd      /boot/initrd.img-2.6.22-14-generic
boot

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

### END DEBIAN AUTOMAGIC KERNELS LIST

title
root

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


If you have any questions feel free to post back.

Fred
Insanity: Doing the same thing over and over and each time expecting a different result.

Democracy is 2 wolves and a lamb voting on the menu. Liberty is an armed lamb protesting the electoral outcome. A Republic negates the need for an armed protest.
User avatar
Fred
Level 10
Level 10
 
Posts: 3356
Joined: Fri Jan 04, 2008 11:59 am
Location: NC USA

Re: Making dual-boot with XP and Mint on different HDDs?

Postby EKSelenc on Tue Aug 05, 2008 9:42 am

Allright it all works just fine.
Thanks a lot fellas.
However I'll still have more questions coming about these ATI drivers.
N/A
EKSelenc
Level 1
Level 1
 
Posts: 8
Joined: Sun Aug 03, 2008 12:47 pm
Location: RF

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: austin.texas, WesternSlope and 38 guests