Haiku assumes wrong boot drive when booting from USB
|Reported by:||luroh||Owned by:||nobody|
|Has a Patch:||no||Platform:||All|
(spinoff from #3532)
When booting from a USB stick, Haiku picks up the presence of an old deleted Haiku partition on my SATA drive and sets it as /boot.
- Booting starts from a USB stick.
- At some point during boot, the system detects an old deleted Haiku partition on the SATA drive and decides to set it as /boot. This explains why the system loads slowly during bootsplash but fast once it reaches Desktop.
- Fully booted, the USB stick is now /Haiku1.
To avoid 2 from happening, I not only have to delete the old Haiku partition on the SATA drive, but reformat the partition with an alien file system to completely rid it from its BFS-edness.
axeld in #3532:
The problem is that the BIOS does not tell Haiku that it booted from USB. Once in the kernel, Haiku usually has to guess the drive from which it had been booted before; it uses some kind of heuristics, but apparently, they could be improved as your case shows.