LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Dual-boot Ubuntu/Win2k (https://www.linuxquestions.org/questions/ubuntu-63/dual-boot-ubuntu-win2k-387368/)

pixellany 11-28-2005 04:33 PM

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

BittaBrotha 11-28-2005 06:56 PM

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.

pixellany 11-28-2005 07:09 PM

MBR on first drive---I think this is the default??

BittaBrotha 11-28-2005 10:42 PM

Can you post your /boot/grub/menu.lst file?

pixellany 11-29-2005 07:31 AM

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


BittaBrotha 11-29-2005 10:22 PM

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

pixellany 11-29-2005 11:02 PM

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

BittaBrotha 11-29-2005 11:57 PM

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.

pixellany 11-30-2005 11:01 AM

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.


All times are GMT -5. The time now is 06:32 AM.