Opened 15 years ago

Last modified 5 years ago

#3569 assigned bug

Haiku assumes wrong boot drive when booting from USB

Reported by: luroh Owned by: nobody
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/pre-alpha1
Keywords: boot-failure Cc:
Blocked By: Blocking:
Platform: All

Description

(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.

  1. Booting starts from a USB stick.
  2. 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.
  3. 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.

Attachments (14)

01.jpg (347.1 KB ) - added by luroh 15 years ago.
02.jpg (215.9 KB ) - added by luroh 15 years ago.
03.jpg (174.9 KB ) - added by luroh 15 years ago.
04.jpg (234.6 KB ) - added by luroh 15 years ago.
05.jpg (222.3 KB ) - added by luroh 15 years ago.
06.jpg (224.5 KB ) - added by luroh 15 years ago.
07.jpg (236.3 KB ) - added by luroh 15 years ago.
08.jpg (221.6 KB ) - added by luroh 15 years ago.
09.jpg (218.6 KB ) - added by luroh 15 years ago.
10.jpg (202.0 KB ) - added by luroh 15 years ago.
11.jpg (203.1 KB ) - added by luroh 15 years ago.
12.jpg (154.6 KB ) - added by luroh 15 years ago.
13.jpg (157.6 KB ) - added by luroh 15 years ago.
14.jpg (156.1 KB ) - added by luroh 15 years ago.

Change History (22)

comment:1 by luroh, 15 years ago

Captain's log, stardate 32974.

The symptom has changed to a "PANIC: could not mount boot device!" at the fourth bootsplash icon. Formatting the existing BFS volumes solves the problem. Pictures of 'syslog' will follow.

by luroh, 15 years ago

Attachment: 01.jpg added

by luroh, 15 years ago

Attachment: 02.jpg added

by luroh, 15 years ago

Attachment: 03.jpg added

by luroh, 15 years ago

Attachment: 04.jpg added

by luroh, 15 years ago

Attachment: 05.jpg added

by luroh, 15 years ago

Attachment: 06.jpg added

by luroh, 15 years ago

Attachment: 07.jpg added

by luroh, 15 years ago

Attachment: 08.jpg added

by luroh, 15 years ago

Attachment: 09.jpg added

by luroh, 15 years ago

Attachment: 10.jpg added

by luroh, 15 years ago

Attachment: 11.jpg added

by luroh, 15 years ago

Attachment: 12.jpg added

by luroh, 15 years ago

Attachment: 13.jpg added

by luroh, 15 years ago

Attachment: 14.jpg added

comment:2 by x-ist, 14 years ago

A similar problem here. I installed Haiku on my USB flash stick. From time to time I burn a latest nightly to CD and try to boot from it. Although I configure the bootloader to use the CD at some point during loading it finds the USB stick installation and continues to load from there, disregarding the CD. However, when the USB stick is unplugged Haiku is loaded normally from CD.

comment:3 by scottmc, 13 years ago

Blocking: 7665 added

comment:4 by luroh, 13 years ago

Minor clarification and update: the issue is repeatable on my desktop computer by dd'ing a raw image to a USB stick and trying to boot from it. However, a USB stick with a raw image can be successfully booted from by disabling the SATA controller in BIOS.

An anyboot image dd'ed to a stick boots fine as is.

comment:5 by axeld, 7 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:6 by waddlesplash, 6 years ago

Keywords: boot-failure added

comment:7 by waddlesplash, 6 years ago

Blocking: 7665 removed

comment:8 by waddlesplash, 5 years ago

Still an issue after the PM merge?

Note: See TracTickets for help on using tickets.