LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-28-2005, 04:33 PM   #1
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Dual-boot Ubuntu/Win2k


Yes I searched first......

To the best of my memory, this happened the same way with 5.04 AND 5.10...

Win2k is on first partition of first HD, and is working with no issues.

Install Ubuntu on another drive (first partition), and tell the installer to install grub bootloader.

Re-boot fails---grub reports error 22 and never gets to the boot menu. (error 22 in the grub manual refers to a bad partition reference.)

Start over and do NOT install grub in the HD---tell the installer to make a boot floppy.

Now all works normally.


In between these two steps, I tried to manually make a boot floppy--it failed with the same "error 22"

I never had an issue like this with Redhat or SUSE
 
Old 11-28-2005, 06:56 PM   #2
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
Where do you install Grub, to MBR on the first drive or to the second drive Ubuntu's root partition?

1st drive would be /dev/hda and 2nd drive would be /dev/hdb.
 
Old 11-28-2005, 07:09 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
MBR on first drive---I think this is the default??
 
Old 11-28-2005, 10:42 PM   #4
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
Can you post your /boot/grub/menu.lst file?
 
Old 11-29-2005, 07:31 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Here is "menu.lst"---I am now booting from floppy, but I presume that this file would be the same as if booting from grub in the MBR.

As I said previously, I dont think grub ever got this far when booting from the MBR....

lines starting with "#" have been stripped

Code:
default		0
timeout		10

title		Ubuntu, kernel 2.6.12-9-386 
root		(hd2,0)
kernel		/boot/vmlinuz-2.6.12-9-386 root=/dev/hdg1 ro quiet splash
initrd		/boot/initrd.img-2.6.12-9-386
savedefault
boot

title		Ubuntu, kernel 2.6.12-9-386 (recovery mode)
root		(hd2,0)
kernel		/boot/vmlinuz-2.6.12-9-386 root=/dev/hdg1 ro single
initrd		/boot/initrd.img-2.6.12-9-386
boot

title		Ubuntu, memtest86+
root		(hd2,0)
kernel		/boot/memtest86+.bin  
boot

title		Other operating systems:
root

title		Microsoft Windows 2000 Professional
root		(hd0,0)
savedefault
chainloader	+1
 
Old 11-29-2005, 10:22 PM   #6
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
I'm a little confused by your grub menu.lst setup.

Grub should be similar to this:

hd0,0 is the first drive, first partition
hd1,0 is the second drive, first partition
hd1,1 is the second drive, second partition and so on.

Where exactly did you intall grub?

How did you get this?

root=/dev/hdg1 ro quiet splash
 
Old 11-29-2005, 11:02 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
All this was generated by the Ubuntu installer---and it works when called by grub from the floppy. (This menu listing is similar to what i have seen before......)

Win2K is on first drive---hd0,0
Ubuntu is on the 3rd---hd2.0

during install, I believe the installer put grub on the MBR on hd0---I would have to re-run it to be sure
 
Old 11-29-2005, 11:57 PM   #8
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
Shouldn't root be 'root=/dev/hdc1'?

/dev/hda=1 drive
/dev/hdb=2 drive
/dev/hdc=3 drive

Seems like something is pointing to the wrong device.
 
Old 11-30-2005, 11:01 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Original Poster
Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Again, the menu.lst that I posted WORKS....

Here's a clue: My 4 drives are on a Highpoint controller---not the main PATA bus. Windows does not care, and Linux sees them as hde, hdf, hdg, and hdh. (The main PATA bus goes to two optical drives---I dont know how that uses up hda thru hdd---except maybe that there are a total of 4 positions available....)

I've had other Linux distros working (eg FC4)--it seems that Ubuntu is the only one with this funny. I do need to research where the installer tries to put grub if you select installation on the hard drive.

Booting from the floppy created by the installer, everything works fine.
 
  


Reply



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
Win2k dual boot Creator Linux - Newbie 1 01-07-2002 07:09 AM
Win2K/RH7.1 Dual, RH won't boot from boot disk after install marktaff Linux - Software 4 08-24-2001 05:29 PM
D: gone in Win2k (after dual boot) Star Child Linux - Software 17 07-06-2001 10:39 AM
Dual Boot RH 7.1 with win2k j0n General 4 06-28-2001 01:56 AM
dual boot with win2k oki1konoky Linux - General 0 02-28-2001 09:39 PM

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

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