Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#241 closed bug (fixed)

KDiskDeviceManager fails to load partitions on secondary ide-channel drives.

Reported by: mattmadia@… Owned by: axeld
Priority: normal Milestone: R1
Component: System/Kernel Version:
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

description: hrev16556 Will not boot when located on motherboard's primary IDE controller's secondary channel.

onscreen debug output: KDiskDeviceManager::_Scan(/dev/disk/scsi/1/1/0/raw)

found device: /dev/disk/scsi/1/1/0/raw

bfs: mounted "7pe" (root node at 131072, device = /dev/disk/scsi/0/0/0/0) module: Searchfor file_cache/launch_speedup/v1 failed. could not open launch speedup! error starting"/bin/sh" error =-1 {END OF OUTPUT. Haiku stops booting. }

anecdotal: "7pe" :: /dev/disk/ide/ata/0/master/0/0_0 "haiku" :: /dev/disk/ide/ata/1/slave/0/0_0

Installing hrev16556 to "7pe" re-initializing "7pe" and installing Haiku to that allows Haiku to successfully boot.

hardware: dell dimenion xpsr450 440bx 1.3celeron two hardrives, one on each channel. dvd-rom as master on secondary channel.

Change History (7)

comment:1 Changed 13 years ago by korli

Reproduced in VirtualPC with : "bfs1" :: /dev/disk/ide/ata/0/master/0/0_0 "haiku":: /dev/disk/ide/ata/1/slave/0/0_0

Having nothing on the primary controller doesn't expose the bug. It seems a kernel component uses the first found bfs partition name instead of the booted bfs partition.

KDiskDeviceManager::_Scan(/dev/disk/scsi)

found isa!!

has connection? yes KDiskDeviceManager::_Scan(/dev/disk/scsi/0)

found isa!!

has connection? yes KDiskDeviceManager::_Scan(/dev/disk/scsi/0/0)

found isa!!

has connection? yes KDiskDeviceManager::_Scan(/dev/disk/scsi/0/0/0)

found isa!!

has connection? yes KDiskDeviceManager::_Scan(/dev/disk/scsi/0/0/0/raw)

found device: /dev/disk/scsi/0/0/0/raw

KDiskDeviceManager::_Scan(/dev/disk/scsi/1)

found isa!!

has connection? yes KDiskDeviceManager::_Scan(/dev/disk/scsi/1/0)

found isa!!

has connection? yes KDiskDeviceManager::_Scan(/dev/disk/scsi/1/0/0)

found isa!!

has connection? yes KDiskDeviceManager::_Scan(/dev/disk/scsi/1/0/0/raw)

found device: /dev/disk/scsi/1/0/0/raw

KDiskDeviceManager::_Scan(/dev/disk/scsi/1/1)

found isa!!

has connection? yes KDiskDeviceManager::_Scan(/dev/disk/scsi/1/1/0)

found isa!!

has connection? yes KDiskDeviceManager::_Scan(/dev/disk/scsi/1/1/0/raw)

found device: /dev/disk/scsi/1/1/0/raw

bfs: mounted "Haiku" (root node at 65536, device = /dev/disk/scsi/0/0/0/raw) module: Search for file_cache/launch_speedup/v1 failed. could not open launch speedup! vm_soft_fault: va 0x0 not covered by area in address space vm_page_fault: vm_soft_fault returned error -2147478783 on fault at 0x0, ip 0x8007bbae, write 0, user 0, thread 0x19 _user_image_relocated(-1871299940): Failed to get image info: 80006003 error starting "/bin/sh" error = -1

comment:2 Changed 13 years ago by korli

Cc: bonefish@… added

comment:3 Changed 13 years ago by axeld

Indeed, the kernel currently doesn't take the time to find the correct device; a matching partition offset will do. It's the problem of matching a BIOS device to the right disk device - we don't do that yet.

comment:4 Changed 13 years ago by axeld

Fixed in hrev16895.

comment:5 Changed 13 years ago by axeld

Resolution: fixed

comment:6 Changed 13 years ago by axeld

Status: newclosed

comment:7 Changed 13 years ago by korli

Tested ok in VirtualPC

Note: See TracTickets for help on using tickets.