LinuxQuestions.org
Review your favorite Linux distribution.
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 04-07-2010, 10:31 PM   #1
Ineed2know
Member
 
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-07-2010, 11:15 PM   #2
Mr-Bisquit
Member
 
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.
Code:
$sudo -s
#ls /dev | grep hd && ls /dev/ |grep sd
Also look for the icon on the desktop.
You want to open testdisk with
Code:
#testdisk
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-07-2010, 11:53 PM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,510

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
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:

Code:
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, 12:10 AM   #4
kainosnous
Member
 
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.

Code:
# 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
makeactive
chainloader +1
Also, you may look at this post: http://www.linuxquestions.org/linux/...d_HD_with_Grub
 
Old 04-08-2010, 05:41 AM   #5
Zoot
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, 07:11 AM   #6
Ineed2know
Member
 
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
released.
 
Old 04-08-2010, 09:34 AM   #7
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,510

Rep: Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890Reputation: 2890
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)
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:01 AM.

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