Opened 16 years ago

Closed 15 years ago

#2478 closed bug (fixed)

makebootable makes everything unbootable

Reported by: emitrax Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Funny summary, but that's exactly what happens.

I'm trying to install haiku on real hardware from linux, and when I run makebootable on the partition where I just dd'ed haiku-image I get the following error

emitrax@freak ~/programming/haiku/haiku $ sudo generated/objects/linux/x86/release/tools/makebootable/platform/bios_ia32/makebootable /dev/hdb3 
 Partition::SetTo(): active: 0
 Partition::SetTo(): active: 0
 Partition::CheckLocation() - end after session: 70005358080 (session: 33822351360)
 intel: _ParsePrimary(): partition 1: bad location, ignoring
 Partition::SetTo(): active: 0
 Partition::CheckLocation() - end after session: 81956689920 (session: 33822351360)
 intel: _ParsePrimary(): partition 2: bad location, ignoring
 Partition::SetTo(): active: 0 

When I reboot the system, not matter what I try to run (ubuntu mostly), I get the following error from grub:

Error 18: Selected cylinder exceeds maximun supported by BIOS 

To fix it, I had to run a linux live cd, run cfdisk and rewrite the partition table.

Let me know if you need anything else.

Change History (3)

comment:1 by emitrax, 16 years ago

BTW: This is my the first disk where I have installed the bootloader, along with my linux root partition.

 Disk /dev/hda: 20.0 GB, 20020396032 bytes
 255 heads, 63 sectors/track, 2434 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Disk identifier: 0xc6dfc6df
    Device Boot      Start         End      Blocks   Id  System
 /dev/hda1   *           1          63      506047   82  Linux swap / Solaris
 /dev/hda2              64        2434    19045057+  83  Linux

And this is my second disk where I keep a few partition. For the record, there used to be two bfs partition, one for BeOS Max Edition (which I used to install haiku) and one for haiku, and they both used to boot fines.

 Disk /dev/hdb: 81.9 GB, 81964302336 bytes
 255 heads, 63 sectors/track, 9964 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Disk identifier: 0x8f800000
    Device Boot      Start         End      Blocks   Id  System
 /dev/hdb1               1        3647    29294496   83  Linux
 /dev/hdb2            3648        8511    39070080    5  Extended
 /dev/hdb3            8512        9964    11671222+  83  Linux
 /dev/hdb5            3648        6079    19535008+  83  Linux
 /dev/hdb6            6080        8511    19535008+  83  Linux

The partition I'm now trying to install haiku on is hdb3.

comment:2 by mmadia, 15 years ago

Is this ticket valid? IIRC, the correct way to run makebootable from nonHaiku/BeOS is:

jam run ":<build>makebootable" /dev/disk/path/to/partition

comment:3 by bonefish, 15 years ago

Resolution: fixed
Status: newclosed

Probably fixed in hrev32674.

Note: See TracTickets for help on using tickets.