Opened 8 years ago

Last modified 3 months ago

#6890 assigned bug

[intel] can't find boot volume after r38970 (regression)

Reported by: diver Owned by: bebop
Priority: normal Milestone: R1
Component: Partitioning Systems/Intel Version: R1/Development
Keywords: boot-failure Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

User kim1963 reports that Haiku doesn't boot for him since hrev38970 (#6487)
Forum thread: http://qube.ru/forums/chto-sdelali-s-38970-i-dalee-sborkami
Google translate: link

He is able to boot current revisions after replacing intel partition add-on from hrev38969.

Attachments (2)

drivesetup.png (21.4 KB) - added by diver 8 years ago.
screenshot1.png (52.4 KB) - added by Flame 8 years ago.
HaikuOS livecd hrev41245 hybrid 4/2 - new (hrev38970+) intel partition add-on. No mbr.

Download all attachments as: .zip

Change History (15)

comment:1 Changed 8 years ago by luroh

Owner: changed from marcusoverhagen to bebop
Status: newassigned

Perhaps bebop has an idea what's going on here.

comment:2 Changed 8 years ago by bebop

From what I understand from the google translation, it seems like the boot loader is not finding the partition, is this correct? If so I don't think that any changes to the add-on could have broken this. If this is not the case, a syslog and/or a copy of the mbr would be helpful.

comment:3 in reply to:  2 Changed 8 years ago by bonefish

Replying to bebop:

From what I understand from the google translation, it seems like the boot loader is not finding the partition, is this correct? If so I don't think that any changes to the add-on could have broken this.

The add-on code for scanning the partitions is also compiled for the boot loader. And as I understand the translation, he replaced both the kernel add-on and the boot loader with their old versions to get Haiku to boot again.

comment:4 Changed 8 years ago by siarzhuk

He has tested his system using hrev39648 with following roll-back changes:

Index: PartitionMap.cpp 
=================================================================== 
--- PartitionMap.cpp    (revision 39648) 
+++ PartitionMap.cpp    (working copy) 
@@ -834,6 +834,14 @@ 
                off_t nextOffset = 0; 
                for (int32 i = 0; i < byOffsetCount; i++) { 
                        Partition* partition = byOffset[i]; 
+ 
+#if 1                   
+                       if (partition->Offset() < nextOffset) { 
+                               TRACE(("intel: PartitionMap::Check(): overlapping partitions!" 
+                                       "\n")); 
+                               result = false; 
+                               break; 
+#else           
                        if (partition->Offset() < nextOffset && i > 0) { 
                                Partition* previousPartition = byOffset[i - 1]; 
                                off_t previousSize = previousPartition->Size() 
@@ -848,6 +856,7 @@ 
                                                "size to %lld\n", i - 1, previousSize)); 
                                        previousPartition->SetSize(previousSize); 
                                } 
+#endif                          
                        } 
                        nextOffset = partition->Offset() + partition->Size(); 
                } 

The problem disappeared and he has successfully boot his system. The "haiku_loader" and "intel" partition addons were replaced for this test.

comment:5 Changed 8 years ago by diver



Whole drive initialized as BFS, hence no mbr.

Changed 8 years ago by diver

Attachment: drivesetup.png added

comment:6 Changed 8 years ago by bebop

Thank you for the patch and screen shot. I will look into this on monday, as I am currentley away from my machine.

comment:7 Changed 8 years ago by diver

ping.

Changed 8 years ago by Flame

Attachment: screenshot1.png added

HaikuOS livecd hrev41245 hybrid 4/2 - new (hrev38970+) intel partition add-on. No mbr.

comment:8 Changed 8 years ago by Flame

HaikuOS livecd r41245 hybrid 4/2 - new (r38970+) intel partition add-on. No mbr.

HaikuOS livecd hrev41245 hybrid 4/2 - new (hrev38970+) intel partition add-on. No mbr.

Last edited 8 years ago by Flame (previous) (diff)

comment:9 Changed 8 years ago by scottmc

Blocking: 7665 added

comment:10 Changed 4 years ago by diver

Component: Drivers/DiskPartitioning Systems/Intel

comment:11 Changed 8 months ago by waddlesplash

Keywords: boot-failure added

comment:12 Changed 8 months ago by waddlesplash

Blocking: 7665 removed

comment:13 Changed 3 months ago by waddlesplash

Still an issue?

Note: See TracTickets for help on using tickets.