Boot Device problem after replacing Linux hard drive
- From: howie.solomon@xxxxxxxxx
- Date: 27 Mar 2007 23:05:14 -0700
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/hdaDisk /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/hdbDisk /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
.
- Follow-Ups:
- Re: Boot Device problem after replacing Linux hard drive
- From: howie . solomon
- Re: Boot Device problem after replacing Linux hard drive
- Prev by Date: hw to get good expertise on linux
- Next by Date: Re: hw to get good expertise on linux
- Previous by thread: hw to get good expertise on linux
- Next by thread: Re: Boot Device problem after replacing Linux hard drive
- Index(es):
Relevant Pages
|