Richardcavell
July 8th, 2009, 06:06 PM
Hi,
Ubuntu was installed to the second and third partitions of an internal IDE hard disk. The intention is that the second partition will be /boot and the third partition will be /.
Then Windows XP was installed to the first partition. It appears that the BIOS is loading from the first partition by default, which is the Windows XP bootloader. There is no BIOS option to load from the second partition. It appears that GRUB is installed on the second partition correctly, but the machine is not loading from that.
What is the correct solution? Should GRUB be installed to the first partition or to the MBR? How does the fact that the second partition is /boot change things? Does it take the grub-install command with the --root-directory switch?
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x39a339a2
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2040 16382488+ 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 2041 2185 1164712+ 83 Linux
Partition 2 does not end on cylinder boundary.
/dev/sda3 2186 4373 17575110 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/sda4 4374 19457 121162230 5 Extended
Partition 4 does not end on cylinder boundary.
/dev/sda5 4374 4710 2706921 82 Linux swap / Solaris
/dev/sda6 4711 5269 4490136 83 Linux
/dev/sda7 5270 19457 113965078+ 7 HPFS/NTFS
Ubuntu was installed to the second and third partitions of an internal IDE hard disk. The intention is that the second partition will be /boot and the third partition will be /.
Then Windows XP was installed to the first partition. It appears that the BIOS is loading from the first partition by default, which is the Windows XP bootloader. There is no BIOS option to load from the second partition. It appears that GRUB is installed on the second partition correctly, but the machine is not loading from that.
What is the correct solution? Should GRUB be installed to the first partition or to the MBR? How does the fact that the second partition is /boot change things? Does it take the grub-install command with the --root-directory switch?
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x39a339a2
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2040 16382488+ 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 2041 2185 1164712+ 83 Linux
Partition 2 does not end on cylinder boundary.
/dev/sda3 2186 4373 17575110 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/sda4 4374 19457 121162230 5 Extended
Partition 4 does not end on cylinder boundary.
/dev/sda5 4374 4710 2706921 82 Linux swap / Solaris
/dev/sda6 4711 5269 4490136 83 Linux
/dev/sda7 5270 19457 113965078+ 7 HPFS/NTFS