LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-10-2010, 12:56 PM   #1
ronnyfv
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Rep: Reputation: 0
Boot two hard disks: XP and Kubuntu


Hi,

i didn't find a thread with this specific issue (some similars but not the exact situation) so i post this question

I have installed xp at the main hdd. It has 3 partitions. Then I installed Kubuntu 10.04 on the slave hdd.

When I boot, it doesnt recognize kubuntu. When i searched at My PC in XP, didn't recognized the slave hdd.

I switched the hdd (slave to master and viceversa) and it didn't go well either.

Any thoughts? Thanks
 
Old 09-10-2010, 01:25 PM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,145

Rep: Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503
From your description, it sounds like you did not install a boot manager that can boot either system. Since windows XP boots, there must be a windows boot record on the primary disk. Windows has no idea how to boot a linux system.

When you installed Kubuntu, there was an option to install Grub2. Did you use it? If yes, where did you put grub2?

Grub2 should be on the master boot record on the primary disk. It should 'see' the windows system and add an entry to allow you to boot to windows or kubuntu.
 
Old 09-10-2010, 01:54 PM   #3
ronnyfv
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

first of all thanks. I asumed grub2 was installed because i phisically removed the windows hdd and when booting kubuntu gave me an option of picking which OS use.

I think the problem is grub was installed in the slave hdd. Can I install grub2 at the master hdd from kubuntu? how can that be done?
 
Old 09-10-2010, 02:11 PM   #4
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,145

Rep: Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503
Quote:
I asumed grub2 was installed because i phisically removed the windows hdd and when booting kubuntu gave me an option of picking which OS use.
Grub may well be installed on the second disk, and was is if you saw a prompt asking what system to boot. The problem when you removed the primary disk, and made the secondary the primary, is the grub boot information now does not match the hardware configuration. Linux uses a different way of identifying disks. On windows you know them as 'C' 'D' etc. In linux they will be hda for the first disk, and hdb for the second etc. So if you installed ubuntu to the first partition on the second disk, that would be hdb1. Now when you moved the disk, it is now hda, and the os is on hda1. Grub doesn't know you moved it. So, even if grub got read, it thinks the OS is on hdb1, but you moved it to hda1.

Now, can you install it after the fact? I think you can. I have never had to do it. You might want to look at the ubuntu forums. They have a very good wiki, with a ton of information in it. I would bet you are not the first person to need to do this.

I'll have a look and see if I can find a How-to to walk you through it, and I'll post back.
 
Old 09-10-2010, 04:10 PM   #5
Soadyheid
Senior Member
 
Registered: Aug 2010
Location: Near Edinburgh, Scotland
Distribution: Cinnamon Mint 17.3 and 18 at present.
Posts: 1,244

Rep: Reputation: 266Reputation: 266Reputation: 266
I've got various systems configured with one OS on the primary or first disk and Linux on the second. As has already been mentioned, make sure both disks are connected, XP on the first. Start the Kubuntu install (I haven't tried it but assume it's similar to Ubuntu as they're related! ) You'll eventually get to the disk partitioning section. Disks will show as hda and hdb as mentioned by camorri above. hda should show as XP and hdb as Linux due to your first install attempt. Make sure you select hdb and do a fresh install (not an update Huh? it's just easier, that's why). At the end of the install, you'll be asked if you want to install grub on hda (this is the default choice) so say yes and allow the install to complete. When you boot the system, the default OS is now Kubuntu and you should be able to chose XP from the grub menu. Ta Dah! You've now got a dual boot machine!

Play Bonny!
 
Old 09-10-2010, 06:33 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,540

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
You have a couple of (easier) options:
- change the BIOS to have the "secondary" disk as the first boot device.
- boot the Ubuntu liveCD, and read this. Go down to "Method 3 - chroot". You will need to probably do "grub-install /dev/sda" after the chroot - just make sure you use your XP disk (sda).
 
Old 09-10-2010, 07:11 PM   #7
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,145

Rep: Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503Reputation: 503
The link syg00 posted looks great. Let us know how it goes.
 
Old 09-10-2010, 10:17 PM   #8
ronnyfv
LQ Newbie
 
Registered: Sep 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you guys


I did it, doing the firs option of syg I was actually easier. Well, before doing that I put the ubuntu hdd as the master and re installed it. Eventually it didn' work, because the bios was running the "windows hdd" as the first boot device, even if it was slave.

Now I have another problem. I hink it might be pc's capability or memory.

I get in kubuntu, it asks me the user and password, and after i write it and push enter, it leads me to another page, starts loading an image (a hdd) and suddenly prompts the initial user and password view...

Ups, I forgot to give some info:
Mainboard: ASROCK P4VM800
Intel Celeron 2,13 GHz x86
1,18 GB RAM


Quote:
Originally Posted by syg00 View Post
You have a couple of (easier) options:
- change the BIOS to have the "secondary" disk as the first boot device.
- boot the Ubuntu liveCD, and read this. Go down to "Method 3 - chroot". You will need to probably do "grub-install /dev/sda" after the chroot - just make sure you use your XP disk (sda).

PD: I'm not english native speaker, so some things I write may sound really strange or confusing. Sorry.

Last edited by ronnyfv; 09-10-2010 at 10:31 PM.
 
Old 09-10-2010, 11:44 PM   #9
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
Great that you got your issue resolved. I did the same thing befor and was like huh. Only instead of installing grub on /dev/sda I installed it on /dev/sda1 which cause me more issues lol. But if you got your issue(s) workout out please mark the thread as solved.
 
  


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
Two hard disks - dual boot ( XP - Linux ) using microsoft boot loader, not grub cristy88 Linux - General 2 12-17-2007 06:26 PM
Dual Boot with 2 Hard-disks cooldeal Linux - Newbie 4 01-04-2006 03:53 PM
Two hard disks better for dual boot? zigzago Linux - Hardware 5 03-18-2005 03:29 AM
Two distros, two hard disks - boot scheme rabidundead Linux - Hardware 16 04-07-2004 08:52 PM
Two boot loaders in two hard disks qnguyendang Linux - General 1 02-06-2003 08:01 PM


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