LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-11-2005, 03:25 PM   #1
eminence
LQ Newbie
 
Registered: May 2005
Location: Idaho, United States
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 0
Arrow Interesting Install Issue (Dual Boot)


I have recently put Ubuntu Linux on a 200GB Maxtor HDD, and Windows XP Home seperately on a 120G Seagate. When I installed each of them, the other hard drive wasn't in the machine, so they have never 'seen' each other. I have the XP disk in as master, and I don't want to put them both in at the same time in fear of XP screwing with its partition table or something when it boots.

I would like to use the NT bootloader to choose between Windows and Linux (instead of GRUB), and eventually be able to back up my XP files onto the Ubuntu disk while running Ubuntu.

I know it is possible to do this, but I don't know of anyone who has had the two independent installs already done before trying to dual boot with them.

I am using a fully updated Ubuntu (with GRUB, not LILO), and fully updated Windows XP home (with, obviously, the NT boot loader).

Thanks in advance,

eminence
 
Old 06-11-2005, 04:04 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
You can use anything to boot them both NT or grub or others but you will need to edit /etc/fstab if linux is the slave drive and I don't think windows will boot as slave, but I don't know much about that.
 
Old 06-11-2005, 04:46 PM   #3
eminence
LQ Newbie
 
Registered: May 2005
Location: Idaho, United States
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
I know that I can use either, I just want to know how (with the NT bootloader).
 
Old 06-11-2005, 04:50 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
http://www.google.com/search?hl=en&q...=Google+Search
 
Old 06-11-2005, 06:36 PM   #5
eminence
LQ Newbie
 
Registered: May 2005
Location: Idaho, United States
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Maybe I wasn't too clear. I could have googled it myself, I just wanted to know if it was any different since I already had both OSs installed and such.
 
Old 06-11-2005, 06:41 PM   #6
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
Quote:
Originally posted by comprookie2000
You can use anything to boot them both NT or grub or others but you will need to edit /etc/fstab if linux is the slave drive and I don't think windows will boot as slave, but I don't know much about that.
Thats the only difference I can think of.
What I do just before I know I am going to add the linux as the slave is change fstab to hdb instead of hda.

Last edited by comprookie2000; 06-11-2005 at 06:44 PM.
 
Old 06-11-2005, 06:47 PM   #7
LinuxVB
Member
 
Registered: May 2005
Distribution: SuSE
Posts: 58

Rep: Reputation: 15
You need a removable drive drawer.

When you installed Linux you installed to the primary IDE drive.
Your installation is riddled with references to /dev/hda and the OS expects to find itself on the primary hard drive.
If you install your Linux drive in any other location, those references will be broken.

Just cd to /etc and grep hda * - you'll see all the /dev/hda references in your installation.
Try it again in /boot; binary files like initrd also expect Linux to be on hda.

You have a bigger problem than just configuring the NT bootloader.

Last edited by LinuxVB; 06-11-2005 at 06:51 PM.
 
Old 06-11-2005, 06:57 PM   #8
eminence
LQ Newbie
 
Registered: May 2005
Location: Idaho, United States
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
If I were to set the Linux HDD to master, then reconfigure GRUB to recognize the XP install and boot into that, would Windows try to do anything potentially harmful when it noticed what it would see as a strangely formatted disk? I suppose that I could use the GRUB bootloader, because then Linux would see itself as hda - but I don't know if Windows will like booting as slave, even if GRUB tells it to.
 
Old 06-11-2005, 07:26 PM   #9
QuakerJ
LQ Newbie
 
Registered: Mar 2004
Location: Nottingham, UK
Distribution: Fedora14 - Gnome2
Posts: 15

Rep: Reputation: 0
In Windows XP edit Boot.ini
Add another line below the line that starts
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS ...

You will have to experiment a bit but it should be something like
multi(0)disk(1)rdisk(1)partition(1)\boot\vmlinuz ...

Also change timeout=3 to
timeout=15
to allow you to be more relaxed about the hitting the selection for Linux.

This will only work if your Linux boot partition is vfat - mine isn't (it's ext3) so I had to do something different.

1. Backup the MBR on /dev/hda (the XP disk). Do this by running from the linux on /dev/hdb this command
dd if=/dev/hda of=/boot/hda_mbr.back bs=512 count=1

2. In another small partition on the Linux disk I installed a minimal Fedora 1 distro. (Fedora 1 kernel is small enough to get a bootable floppy which is useful fall back.). I selected grub as the boot loader to go on the boot record of /dev/hda. The XP disk should be active so that the Fed 1 installation can discover the XP installation on disk 0. The installation will create a grub boot loader on /dev/hda with two options; Linix and DOS (XP is called DOS by grub but you can edit it display 'Windows XP' when it boots).

3. Boot the system and grub will offer you the minimal Fed1 or XP (aka DOS unless you edited the string).

4. Choose Fed 1 and edit /boot/grub/grub.conf to include your main Linux. The lines are very similar to the Fed 1 entry with different partition refs. (for grub partition 5 on hdb is hd(1,4)). Your main Linux is not a chainloader entry in grub.conf like the the XP entry. Make XP or your default. Save grub.conf and reboot.

5. You should see both Linuxes and XP as choices on boot up.


In friendship

QuakerJ
 
Old 06-11-2005, 07:50 PM   #10
eminence
LQ Newbie
 
Registered: May 2005
Location: Idaho, United States
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks QuakerJ, but I think that LinuxVB may be right, so does anyone know if just configuring GRUB would work like I said above?

Thanks again.
 
Old 06-13-2005, 11:01 PM   #11
eminence
LQ Newbie
 
Registered: May 2005
Location: Idaho, United States
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
Okay, I finally got this figured out, so if anyone else is in the same situation, here is what I did:

When I installed Linux, I had the HDD it was on set as slave, so it always referred to itself as hda.

I went into Windows and downloaded grubinstall.exe from http://www.geocities.com/lode_leroy/grubinstall/ . I installed that from windows (by copying everything in the zip to C:\boot and running the .exe within, then adding a 'C:\boot\stage1="GRUB Bootloader"' line to my c:\boot.ini). When I restarted, I chose the 'GRUB Bootloader' option from the NTLDR menu and entered in:

root (hd1,0) [Enter]
kernel /vmlinuz-2.6.10-5-386 root=/dev/hdb3 ro quiet splash [Enter]
initrd /initrd.img-2.6.10-5-386 [Enter]
boot [Enter]

This loaded Linux, so I then emailed my /boot/grub/menu.lst to myself and saved it as c:\boot\menu.lst. After I renamed all of the (hd0,0) references to (hd1,0) references in menu.lst, everything worked fine.

If you end up doing this, be sure to change kernel version numbers and HDD/partition numbers to match your configuration.

Thanks for all of your help,

eminence
 
Old 06-13-2005, 11:08 PM   #12
eminence
LQ Newbie
 
Registered: May 2005
Location: Idaho, United States
Distribution: Ubuntu
Posts: 15

Original Poster
Rep: Reputation: 0
I almost forgot to add, if you update you kernel (even using Synaptic or apt) you will have to change your menu.lst in c:\boot. Alternatively, you could create a symbolic link in /boot called vmlinuz_current pointing to your kernel, and update that everytime instead. Any way you do it, make sure you update those with the kernel or you will have to use the GRUB prompt to load Linux.
 
  


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
Dual Boot FC2 / Ubuntu - interesting results spicychicken Ubuntu 3 06-07-2005 06:48 AM
Dual Boot Issue ZeppelinDL Mandriva 0 04-17-2004 11:52 PM
Interesting Dual Boot problem ccc1005 Linux - General 2 08-08-2003 01:54 AM
Interesting RH 7.3 GRUB boot issue with no Video card present dpcook Linux - Software 3 12-16-2002 07:34 PM
RH 8.0 interesting install issue Risc91 Linux - Distributions 5 10-04-2002 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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