ubuntu can’t boot from harddisk
January 23rd, 2009my friends just install ubuntu 7.04 on Intel Atom (with Intel EFI board?) from ubuntu live cd, the installation goes well till finish. But it wont boot from the harddrive, but if we boot it from the live cd menu “Boot from first harddisk” .. it boot well. I checked the BIOS boot-order setting was correct. So I was thinking it was the motherboard of the Intel Atom ? I was reading about elilo, grub2, etc.
But the solution was so simple, after i boot using the cd (”Boot from first hdd”), i got into console
# fdisk /dev/sda
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 2432 19535008+ 83 Linux
/dev/sda2 9435 9729 2369587+ 5 Extended
/dev/sda3 2433 9434 56243565 83 Linux
/dev/sda5 9435 9729 2369556 82 Linux swap / Solaris
Partition table entries are not in disk order
there’s no bootable flag, which is usually OK (will boot just fine). The solution was simple:
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
Command (m for help): a <=== type A
Partition number (1-5): Command (m for help): a
Partition number (1-5): 1 <=== type the partition number to set active
Command (m for help): p
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2432 19535008+ 83 Linux
/dev/sda2 9435 9729 2369587+ 5 Extended
/dev/sda3 2433 9434 56243565 83 Linux
/dev/sda5 9435 9729 2369556 82 Linux swap / Solaris
Partition table entries are not in disk order
Command (m for help): p
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2432 19535008+ 83 Linux
/dev/sda2 9435 9729 2369587+ 5 Extended
/dev/sda3 2433 9434 56243565 83 Linux
/dev/sda5 9435 9729 2369556 82 Linux swap / Solaris
Partition table entries are not in disk order
Command (m for help): w <==== save changes
# reboot





