Thursday, July 31, 2014

Ubuntu dual-boot installation Grub error 18



I'm trying a dual-boot installation of Ubuntu 9.04 parallel to an exisiting Windows XP. On first Ubuntu boot I get a Grub error 18. As I already found out the reason therefore is a unfortunate combination of problems:




  1. The Ubuntu partitions are at the end of the partion table probably too far in the back to get found by the old BIOS.

  2. I'm installing on a rather old laptop with a BIOS where I can't set the HDD mode (from LBA to CHS or normal). This was mentioned as a workaround to get Grub boot from drives too large for old BIOS (in my case 250GB).



One workaround mentioned was to create a boot partition as a first partition on the drive. But as the Ubuntu installer can't move partions, just resize them I can't make any free space that way.




Would there be any problem regarding my existing Windows installation if I used another partitioning tool to resize and move my first Windows partition a bit to the back?



If doing so would I still be able to reenable the Windows boot manager with fixboot/fixmbr?


Answer



Creating a new small first primary Ext2 partition for /boot with GParted did the trick. Then ran the Ubuntu Desktop installation and chose manual partioning. There I set /boot as the mountpoint for the small partition and put the rest of the Ubuntu partitions at the end. Works fine and Grub is able to boot both Ubuntu and Windows.



Just wondering if Windows fixboot/fixmbr could cope with the moved first Windows partition?


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...