Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-07-2010, 11:31 PM   #1
Registered: Dec 2009
Posts: 66

Rep: Reputation: 1
Linux-XP Dualboot Installation - Two HDs

Not too long ago I had Windows XP Home and Ubuntu 9.10 installed .. dualboot .. with the one HD partitioned for XP and Ubuntu. Just recently, my computer had a major, catastrophic failure. Both HD's crashed. How or why, I don't know. And to make things even more frustrating .. all my data, such as emails, software keys, licenses, serial numbers, passwords, etc., were lost! I have since gotten a new 80g sata HD with XP installed right now. I have noticed that Ubuntu 10.x (whatever) is soon to be released - April 29th. So I intend to wait until the new version of Ubuntu is released before I install Ubuntu. I am still waiting for the replacement HD for my second HD since it was still under warranty. Should be arriving in the next 2-3 weeks (I hope). It will be another 80g (I think) and possibly a sata drive. The bad drive being replaced was an IDE. So, I don't know if the second will be IDE or sata. Anyway, I want to install Ubuntu on the second HD apart, and separate from, the XP HD. I need complete, concise information on how to exactly set-up the two OSs such that when the computer is started, or rebooted, the GRUB menu will open and allow me to select which OS to start. I really don't want to partition the HDs for OS install. My apologies for the lengthy thread. And ... thanks.
Old 04-08-2010, 12:15 AM   #2
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Have a few usb/external drives the size of each internal drive.
An old knoppix 5.x will have testdisk on it.
Boot the knoppix cd.
You'll need to attach the drives after the boot process is complete.
Open the terminal by clicking the icon at the bottom.
$sudo -s
#ls /dev | grep hd && ls /dev/ |grep sd
Also look for the icon on the desktop.
You want to open testdisk with
Choose the first disk to save the files, the file types, and save to abn external drive. Do the same with the second.
You'll get a lot of trash but you should find about 50 to 65% of the files you are missing.

An easier way is to mount from knoppix and copy the files to a usb drive.
Old 04-08-2010, 12:53 AM   #3
LQ Guru
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,760

Rep: Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050
So that seems to answer the recovery question

As for installing Ubuntu onto second drive, it could not be easier.
Simply follow the prompts until you get to the select drive section and then simply select
the second drive and say to use all of it and your away.

As for grub, I have had hit and miss here as to whether or not the installation picks up the
windows install (sometimes yes sometimes no ).
Anyhow, not a biggy, you just need to edit either /boot/grub/menu.lst or /boot/grub/grub.cfg.

Now the second I am not 100% on but the first you can just add:

title <Windows alias which will appear at boot>
rootnoverify (hd0,0)
chainloader +1
Now the (hd0,0) means, first partition of first disk (which may be /dev/hda for example)

I am sure if you google for grub2 you will get the entry for grub.cfg

good luck
Old 04-08-2010, 01:10 AM   #4
Registered: Mar 2010
Location: Tennessee, USA
Distribution: Arch, Fedora
Posts: 59

Rep: Reputation: 18
I would recommend switching the XP drive to make it the second drive and then install Ubuntu on what would then be the first drive. This is because the BIOS should attempt to boot whichever bootable drive it finds first. GRUB, the bootloader for Ubuntu, can boot both. That way, you don't have to touch your XP drive.

You can find help online to configure GRUB to boot Windows. You might even be lucky enough that Ubuntu configures it as dual boot for you. You might want something like the following.

# First, the title that will appear in your boot menu
title Windows XP
# Make windows think that your drives are switched around
map (hd0) (hd1)
map (hd1) (hd0)
# Set the root drive/partition where you will be booting
rootnoverify (hd0,0)
# Use the Windows bootloader that is already on that drive to boot it
chainloader +1
Also, you may look at this post:
Old 04-08-2010, 06:41 AM   #5
LQ Newbie
Registered: Mar 2009
Distribution: Debian Squeeze
Posts: 8

Rep: Reputation: 0
I would suggest you install Ubuntu on the hard drive you want, then specify in your motherboards BIOS to explicitly boot from that hard drive.
Then, in the case of Grub 2, if you run os-prober and update-grub as root it should detect everything automoatically and configure it accordingly in grub.cfg.
Old 04-08-2010, 08:11 AM   #6
Registered: Dec 2009
Posts: 66

Original Poster
Rep: Reputation: 1
Thanks to all that responded. And, I didn't wish to start a war of who's right. So, at any rate, for now, I will just wait until I get my replacement HD and then download the new version of Ubuntu when it gets
Old 04-08-2010, 10:34 AM   #7
LQ Guru
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,760

Rep: Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050Reputation: 3050
No arguments ... just different takes

Hope it all works, don't forget to mark as SOLVED (once you copy the above stuff down of course)


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 linux sytems on two different HDs. nael_nas Linux - Newbie 1 06-02-2009 08:08 AM
2 Different HDs one with linux one with windows Oopsielont Linux - Newbie 2 07-24-2007 08:19 PM
dualboot/ two HDs Trio3b Mandriva 1 05-01-2005 03:11 AM
DualBoot: XP Re-installation-Grub bootloader not working.Help!! ghaurisankar Linux - General 2 10-05-2004 07:48 PM
Fedora installation problems and partioned hds MrFrosty Linux - Newbie 1 03-04-2004 04:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration