Boot Device problem after replacing Linux hard drive



I have a dual boot system (Win2k & Mandrake Linux).
Due to S.M.A.R.T disk errors I had to replace my
Linux hard drive (/dev/hdb). I just got things
working, well almost.

The remaining problem is that my BIOS startup
doesn't automatically find a bootable disk
like it used to.

BIOS churns for a few seconds then says:

"Reboot and Select proper Boot Device
or insert boot media in selected Boot device"

Now if I just press enter at this point then the
LILO boot screen pops up and offers me my choices
for windows or Linux as normal and I can boot
into either OS successfully. Before replacing my
Linux disk the LILO boot screen came up automatically.

Win2k on /dev/hda
Mandrake 10.2 on /dev/hdb

I have a LILO MBR on /dev/hda with the following:

default="windows"
boot=/dev/hda
map=/boot/map
keytable=/boot/us.klt
prompt
nowarn
timeout=80
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/hdb1
initrd=/boot/initrd.img
append="acpi=ht splash=silent"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hdb1
initrd=/boot/initrd.img
append="splash=silent acpi=ht"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hdb1
initrd=/boot/initrd.img
append="failsafe splash=silent acpi=ht devfs=nomount"
read-only
other=/dev/hda1
label="windows"
table=/dev/hda

I also have a LILO MBR on /dev/hdb (tried lots of
stuff to get to this point).
Can I even have LILO MBRs on two different drives?

LILO MBR on /dev/hdb with the following:

default="linux"
boot=/dev/hdb
map=/boot/map
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
disk=/dev/hdb bios=0x80
image=/boot/vmlinuz
label="linux"
root=/dev/hdb1
initrd=/boot/initrd.img
append="acpi=ht splash=silent"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hdb1
initrd=/boot/initrd.img
append="splash=silent acpi=ht"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hdb1
initrd=/boot/initrd.img
append="failsafe splash=silent acpi=ht devfs=nomount"
read-only
other=/dev/hda1
label="windows"
table=/dev/hda
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80

The hard disk boot order is BIOS selectable
and I have the Windows drive (Primary Master)
first, then the Linux drive (Primary Slave) second.
If I change the hard disk boot order in the
BIOS setup screen there seems to be no difference.
Still can't find a bootable disk and when I press
enter the system boots from LILO on /dev/hda.

Is there something more I need to do with LILO
or my drives to indicate a bootable disk?

BTW, I read in sector 0 from each drive into a file
and did a hex dump to see if each drive has
the boot signature code "0x55 0xaa" at the end of
the sector, and they both do.

Thanks, Howie

More hard disk info:

fdisk -l -u /dev/hda
Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 63 61432559 30716248+ c W95 FAT32
(LBA)
/dev/hda2 61432560 234420479 86493960 f W95 Ext'd
(LBA)
/dev/hda5 61432623 234420479 86493928+ 7 HPFS/NTFS

fdisk -l -u /dev/hdb
Disk /dev/hdb: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders, total 586072368 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 63 19531313 9765625+ 83 Linux
/dev/hdb2 19531314 253906314 117187500+ 5 Extended
/dev/hdb5 19531377 20029328 248976 82 Linux swap
/dev/hdb6 20029392 253906314 116938461+ 83 Linux

.



Relevant Pages

  • Re: installation problems
    ... RH 9 had trashed my Linux partition and rendered my PC unbootable. ... >you can create the floppy from and can be created on a differnet ... >on the CD as the floppy boot image. ... and since flash drives seem to be listed in /proc as scsi devices, ...
    (comp.os.linux.misc)
  • Re: Boot Problem
    ... Was either disk set up as a Microsoft dynamic disk? ... Do not change the boot sector signature. ... I ensure all OK by swapping over drives. ... installing XP as it insisted there was no drive to install itself on! ...
    (microsoft.public.windowsxp.hardware)
  • Re: 2 drives needed to boot - how to fix
    ... my cloned drive and my system won't boot. ... seems my system wants both hard drives to be able to boot. ... Which is your primary master disk - the old or the new disk? ... Could you, in effect, start over by making a fresh install of the XP OS ...
    (microsoft.public.windowsxp.general)
  • Re: NTLDR is missing
    ... Make sure that there are no disks in any removable drives when you boot. ... NTLDR is missing, why does it happen? ... Computer hard disk drive is not properly setup in BIOS. ...
    (microsoft.public.windowsxp.basics)
  • Re: [SLE] Problems with initrd after mkinitrd
    ... A disk can have three real heads and report a dozen or a hundred! ... > natural metric for partitioning drives that use LBA. ... > - One, less frequent, is the failure of some of the cloned drives to boot ...
    (SuSE)