Opened 10 years ago

Last modified 4 months 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:
Has a Patch: no 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 10 years ago.
02.jpg (215.9 KB) - added by luroh 10 years ago.
03.jpg (174.9 KB) - added by luroh 10 years ago.
04.jpg (234.6 KB) - added by luroh 10 years ago.
05.jpg (222.3 KB) - added by luroh 10 years ago.
06.jpg (224.5 KB) - added by luroh 10 years ago.
07.jpg (236.3 KB) - added by luroh 10 years ago.
08.jpg (221.6 KB) - added by luroh 10 years ago.
09.jpg (218.6 KB) - added by luroh 10 years ago.
10.jpg (202.0 KB) - added by luroh 10 years ago.
11.jpg (203.1 KB) - added by luroh 10 years ago.
12.jpg (154.6 KB) - added by luroh 10 years ago.
13.jpg (157.6 KB) - added by luroh 10 years ago.
14.jpg (156.1 KB) - added by luroh 10 years ago.

Change History (22)

comment:1 Changed 10 years ago by luroh

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.

Changed 10 years ago by luroh

Attachment: 01.jpg added

Changed 10 years ago by luroh

Attachment: 02.jpg added

Changed 10 years ago by luroh

Attachment: 03.jpg added

Changed 10 years ago by luroh

Attachment: 04.jpg added

Changed 10 years ago by luroh

Attachment: 05.jpg added

Changed 10 years ago by luroh

Attachment: 06.jpg added

Changed 10 years ago by luroh

Attachment: 07.jpg added

Changed 10 years ago by luroh

Attachment: 08.jpg added

Changed 10 years ago by luroh

Attachment: 09.jpg added

Changed 10 years ago by luroh

Attachment: 10.jpg added

Changed 10 years ago by luroh

Attachment: 11.jpg added

Changed 10 years ago by luroh

Attachment: 12.jpg added

Changed 10 years ago by luroh

Attachment: 13.jpg added

Changed 10 years ago by luroh

Attachment: 14.jpg added

comment:2 Changed 9 years ago by x-ist

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 Changed 8 years ago by scottmc

Blocking: 7665 added

comment:4 Changed 8 years ago by luroh

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 Changed 2 years ago by axeld

Owner: changed from axeld to nobody
Status: newassigned

comment:6 Changed 9 months ago by waddlesplash

Keywords: boot-failure added

comment:7 Changed 9 months ago by waddlesplash

Blocking: 7665 removed

comment:8 Changed 4 months ago by waddlesplash

Still an issue after the PM merge?

Note: See TracTickets for help on using tickets.