How to make d-i install GRUB to different HD?

Bob D. bob_beyng553 at comcast.net
Sat Oct 9 20:52:48 UTC 2004


Problem:
Error msg. during Ubuntu install reboot "NTLDR is missing". Reboots
*always* fail at this point. Cannot boot to Ubuntu or XP. I'm pretty
sure the installer is putting GRUB to the wrong HD and causing the
problem. Using daily 20041009 just now, same problem.

Not bug 1566 as my C/H/S values are correct for all drives. Somewhat
like bug 1532, but I cannot boot into Ubuntu or XP...I never see GRUB.
Linux partitions are created by parted during install from existing free
space. Deleting all Linux partitions (doing nothing else) with Partition
Magic allows XP to boot again.

Issue:
During partitioning, the installer shows me that SDA=scsi1=80GB HD
(SATA), SDB=scsi2=80GB HD (2nd drive, SATA), and SDC=scsi5=18.3 GB HD
(on Tekram PCI host adapter). SDC is my boot drive for XP and Ubuntu.

Here's my Ubuntu menu.lst (used Knoppix to retrieve):

============================================

[snip]
title        Ubuntu, kernel 2.6.8.1-3-386
root        (hd2,1)
kernel        /boot/vmlinuz-2.6.8.1-3-386 root=/dev/sdc2 ro quiet splash
initrd        /boot/initrd.img-2.6.8.1-3-386
savedefault
boot

title        Ubuntu, kernel 2.6.8.1-3-386 (recovery mode)
root        (hd2,1)
kernel        /boot/vmlinuz-2.6.8.1-3-386 root=/dev/sdc2 ro single
initrd        /boot/initrd.img-2.6.8.1-3-386
savedefault
boot

title        Memory test
root        (hd2,1)
kernel        /boot/memtest86+.bin

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the
Debian
# ones.
title        Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux
OS
# on /dev/sdc1
title        Windows NT/2000/XP
root        (hd2,0)
savedefault
makeactive
chainloader    +1

[/snip]
===============================

At install time, I tell the installer to place GRUB in the MBR and the
installer reports back it is installing to hd0. If I'm reading things
right, hd0 is my SDA 80GB HD, not SDC, the 18.3GB HD it should be.

Am I correct and, if so, how during the install do I tell the installer
a different HD to install GRUB into?

TIA!

Bob





More information about the ubuntu-users mailing list