[haiku-development] Re: Partition Table Woes (Was: Filesystem corruption and Alpha-1)

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 02 Jul 2009 08:59:26 +0200 CEST

André Braga <meianoite@xxxxxxxxx> wrote:
> Em 01/07/2009, às 20:06, Urias McCullough <umccullough@xxxxxxxxx>
> escreveu:
> > But Haiku can also been booted from a partition-less drive -
> > E.G. a raw image dd'd over an entire disk - so there must be some
> > other magic in there as well to deal with situations where no
> > partition map exists?
> Quite some magic: there's a "BFS" partitioning system add-on :)
>
> I believe it's used for this, and it seems to have provisions for
> allowing reading a BFS image inside another filesystem. And booting
> too, perhaps. I think this is mmu_man's work. Or maybe Ingo's. I
> don't
> know, and can't check the commit logs right now.

You're pretty much on the wrong track here. The haiku_loader just scans
the disks for known partitioning systems *and* file systems. It never
needs an actual partitioning system; but it does check the offset given
to it by the stage1 boot loader to see from which partition to boot.

Bye,
   Axel.


Other related posts: