LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-26-2006, 09:58 PM   #1
jfredin
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
Dual boot with XP


Sorry if this is just going over something already answered but it would help if people could just look at how I plan to proceed and let me know if I am going to step on a land mine.

Computer: Dell Dimension 4300
Master: WD 80GB running windows XP sp2
Slave: Seagate 80GB (NEW)

OK now for my situation.
The wife is stuck on Windows and we need it for several reasons.
I would like to install Ubuntu to the new drive on a small partition. (Ubuntu because I have used the live CD and it automatically detected everything very well)
The wife does not want to go through a boot menu to run XP and I want to leave entire Master HD unchanged.
I am a little nervous replacing the XP bootloader.

Here's what I want to do in this order:

Obviously Backup any data in XP.

Install Slave Drive

Put install disk in CDROM and install Ubuntu on slave (using it to partition the drive for 10GB for Ubuntu 10GB for future trial OSes and 60GB FAT 32 that can be accessed from all OSes)

Install the ubuntu bootloader on the slave drive, leaving the XP bootloader intact.

Placing a bootloader on a CD (GRUB maybe? suggestions would help) that would ask me which OS to boot.
*side note, computer will not boot from USB



Is there anything here that cannot be done or are in the wrong order?
Where might I run into difficulties?

Thank you for double checking my processes, sometimes I plan to do some things that put the cart before the horse and get me in big trouble.
 
Old 12-26-2006, 10:11 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,439

Rep: Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203
This gets asked all the time.
Separate drive is good. If you proceed as you plan, you can simply change the BIOS boot drive, and things will "just work". You'll even have a boot entry for Windoze when you use the Ubuntu disk.
Try making 'doze the default and hiding the grub menu - you just need to hit <ESC> to get the menu, and then select Linux.
If that flies, leave it like that - else, just make sure the BIOS order is changed before you hand the box back to her.

KISS is generally best.
 
Old 12-26-2006, 10:20 PM   #3
jfredin
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Original Poster
Rep: Reputation: 0
So you suggest replacing the XP boot loader and having GRUB automatically point to XP?

I would like to make it so I can leave the boot order as CD first then Primary Master. It is like that right now, it takes an extra 2 seconds to see if the CDROM is empty but then it loads XP with out any action required. I would have to put my bootloader in the CDROM each time I wanted to start ubuntu. Is this not recommended? I know that I can have a dual boot with replacing the XP boot but I would like to leave it alone.
 
Old 12-26-2006, 10:28 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,439

Rep: Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203Reputation: 4203
Nope - leave XP alone; don't want to risk the marriage ...
When you install Ubuntu, install grub to the MBR of the secondary disk.
When you change the (BIOS) boot disk order, that disk becomes the disk selected.

Change it back before you power the machine off. An unnecessary PITA as far as I'm concerned, but do-able.
Maybe your missus will accept grub if you make Windoze the default, and a short timeout.
If you do it this way, you can try both easily.
 
Old 12-26-2006, 10:32 PM   #5
jfredin
LQ Newbie
 
Registered: Dec 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Can I put GRUB or LILO on a CD and use that to point at witch MBR to read?
 
Old 12-26-2006, 10:47 PM   #6
runnerfrog
Member
 
Registered: Jul 2006
Location: Paraná, Argentina
Distribution: Frugalware 0.6 (Terminus) - Kubuntu 7.04 (Feisty Fawn Herd 5)
Posts: 217

Rep: Reputation: 31
EDIT: posted after/during previous posts. Sorry for interrupting.

Welcome.
Quote:
Install the ubuntu bootloader on the slave drive, leaving the XP bootloader intact.
No GNU/Linux distro will touch that, forget about it.
Quote:
Placing a bootloader on a CD (GRUB maybe? suggestions would help) that would ask me which OS to boot.
Say what? You are complicating things before you even start.
Learn this, from the tldp.org (anything there is very useful for many people so have the site in your bookmarks):
GNU/Linux Hard Drive Naming Convention:
Quote:
/dev/hda: is the master IDE drive on the primary IDE controller. /dev/hdb the slave drive on the primary controller. /dev/hdc , and /dev/hdd are the master and slave devices on the secondary controller respectively. Each disk is divided into partitions. Partitions 1-4 are primary partitions and partitions 5 and above are logical partitions inside extended partitions. Therefore the device file which references each partition is made up of several parts. For example /dev/hdc9 references partition 9 (a logical partition inside an extended partition type) on the master IDE drive on the secondary IDE controller.
/dev/sda: The first SCSI drive on the first SCSI bus. The following drives are named similar to IDE drives. /dev/sdb is the second SCSI drive, /dev/sdc is the third SCSI drive, and so forth.
So then you'll know where you'll be installing. So _install_, knowing that you'll need a swap partition too with about 110% of your ram size. You know you don't have to format the Windows partition, so go for it.
Once you have it installed, if you choose say the GRUB, and the Windows XP is in the hda1 partition, then you backup and the edit the file /boot/grub/menu.lst, find a line "default 1", count how many titles you have until the windows partition title (hda1=hd0,0), then put that number instead of 1 in the example, to say, don't know "default 4" or something, then do "sudo grub-install hd0" to replace the previous GRUB. Your grub then is pointing to the Windows XP bootloader, if you want to enter GNU/Linux, have to select it from the grub before it hits the XP bootloader.
If you do not format any partition you need, you'll be fine, so learn the GNU/Linux HD naming convention and go forward.
Be very welcome to the free software community, feel free to post errors (and useful outputs) and do please read something from the lot of documentation you have before posting or search inside linuxquestions.org, specially to know if I'm wrong up there.

Last edited by runnerfrog; 12-26-2006 at 11:12 PM.
 
Old 12-26-2006, 11:04 PM   #7
runnerfrog
Member
 
Registered: Jul 2006
Location: Paraná, Argentina
Distribution: Frugalware 0.6 (Terminus) - Kubuntu 7.04 (Feisty Fawn Herd 5)
Posts: 217

Rep: Reputation: 31
Quote:
Can I put GRUB or LILO on a CD and use that to point at witch MBR to read?
You can put it in a diskette too, why not, is not better?:
http://www.gnu.org/software/grub/man...ot-floppy.html

EDIT: On a second thought, in Ubuntu, this other will be better:
sudo fdformat /dev/fd0
sudo mkfs -t msdos /dev/fd0
sudo mount -t msdos /dev/fd0 /media/floppy
sudo mkdir -p /media/floppy/boot/grub
sudo cp /lib/grub/i386-pc/stage* /media/floppy/boot/grub
sudo cp /boot/grub/menu.lst /media/floppy/boot/grub/menu.lst

Last edited by runnerfrog; 12-27-2006 at 11:04 AM.
 
Old 12-28-2006, 05:49 PM   #8
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
You can alway try wingrub witch leaves windows as default

you would edit the menu.lst in wingrub to look like this

color cyan/blue blue/cyan

default=0

timeout=5

hiddenmenu



title Ubuntu, kernel 2.6.17-10-generic

root (hd1,0)

kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdb1 ro quiet splash

initrd /boot/initrd.img-2.6.17-10-generic

quiet

savedefault

boot



title Ubuntu, kernel 2.6.17-10-generic (recovery mode)

root (hd1,0)

kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/hdb1 ro single

initrd /boot/initrd.img-2.6.17-10-generic

boot



title Ubuntu, memtest86+

root (hd1,0)

quiet

boot


I have some else that uses the system and i need to leave the MBR as is.
it will place a line in the boot.ini file for you that looks like this

C:\GRLDR="Linux System"
 
  


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
When I boot my comp. (dual boot sys-Suse 10.1 & Win XP) the first boot stalls. philip niedermeyer Linux - Desktop 5 11-13-2006 06:04 PM
Installing dual Boot 98/Linux - WONT 'LILO' Dual Boot !? L1nux3d Linux - Laptop and Netbook 15 02-11-2006 05:36 AM
Fedora Core 3 Dual Boot, Dual Hard drives, Grub Boot Loader Denali03 Linux - Newbie 1 03-04-2005 01:44 PM
hOw to dual boot linux suse with a dual boot win98/xp pc walterkai SUSE / openSUSE 1 12-14-2004 05:04 PM
Advice (and some) Needed: Dual-HDD, Dual-Boot - Linux, WinXP elnomadkvn Linux - General 1 03-28-2004 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:41 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
Open Source Consulting | Domain Registration