bugGNU GRUB - Bugs: bug #10783, fails to read MBR correctly; gets...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #10783: fails to read MBR correctly; gets all zeros;

Submitter:  None
Submitted:  Sat 23 Oct 2004 04:03:42 PM UTC
   
 
Category:  Installation Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Stan Osborne
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Release:  0.95
Reproducibility:  Every Time Planned Release:  None

Sat 15 Dec 2007 04:42:39 PM UTC, comment #1: 

We've moved to GRUB 2 as a development platform. Please can you check if this bug still applies there, and if it does, reopen it?

Thanks

Robert Millan <robertmh>
Group administrator
Sat 23 Oct 2004 04:03:42 PM UTC, original submission:  


GRUB 0.95 built from source is being used on a custom RH 9.0
system.  This system is partitioning and installing a
turnkey application based on RH 9.0.   The custom RH 9.0
system is booting from an USB attached ATA disk.  The target
Linux system is copied onto RAID1 partitions built from a
pair of mirrored ATA disks.   This problem occurs when
trying to install grub on either of the ATA drives.

By using debugging techinques I have confirmed that grub
uses the correct BIOS disk value (0x80 or 0x81).   But the
rawread function is returing a buffer full of zero values
istead of the current MBR.  The use of dd to directly read
the MBR returns mostly non-zero values.  The use of sfdisk
and other tools confirm the partition table is ok.

mount /dev/hda1 /mnt/boot

cat /mnt/boot/device.map
(hd0)     /dev/hda1
(hd1)     /dev/hdc1
(hd2)     /dev/sda1

grub-install --debug --root-directory=/mnt hd0

    GNU GRUB  version 0.95  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]
grub> dump (hd0,0)/grub/stage1 /tmp/grub-install.img.TmXIbe

Error 5: Partition table invalid or corrupt
grub> quit

   Phoenix - AwardBIOS v6.00PG, An Energy Star Ally
   Copyright (C) 1984-2002, Phoenix Technologies, LTD

Portwell, Inc. PPAP-250 BIOS Rev.:R1.01 (01152004)

Main Processor : Intel Pentium III 1.0B GHz(133x7.5)
Memory Testing :  523264K OK + 1024K Shared Memory

  Main Memory Clock is 133 MHz
  Primary Master : HTS548080M9AT00 MG4OA53A
   Primary Slave : None
Secondary Master : HTS548080M9AT00 MG4OA53A
 Secondary Slave : None

                          Phoenix Technologies, LTD
                             System Configurations
+==============================================================================+
| CPU Type          : Intel Pentium III   Base Memory       :    640K          |
| CPU ID/ucode ID   : 068A/01             Extended Memory   : 522240K          |
| CPU Clock         : 1.0B GHz            Cache Memory      :    256K          |
|------------------------------------------------------------------------------|
| Diskette Drive A  : None                Display Type      : EGA/VGA          |
| Diskette Drive B  : None                Serial Port(s)    : 3F8 2F8          |
| Pri. Master Disk  : LBA,ATA 100,   80GB Parallel Port(s)  : None             |
| Pri. Slave  Disk  : None                SDRAM at Row(s)   : 0 1              |
| Sec. Master Disk  : LBA,ATA 100,   80GB Display Cache Size: None             |
| Sec. Slave  Disk  : None                                                     |
+==============================================================================+

USB Storage Device : USB 2.0 Storage Device
Pri. Master Disk  HDD S.M.A.R.T. capability .... Disabled
Sec. Master Disk  HDD S.M.A.R.T. capability .... Disabled

# partition table of /dev/hda
unit: sectors

/dev/hda1 : start=       63, size=   208782, Id=fd, bootable
/dev/hda2 : start=   208845, size=  6297480, Id=fd
/dev/hda3 : start=  6506325, size=  4192965, Id=fd
/dev/hda4 : start= 10699290, size=145597095, Id= 5
/dev/hda5 : start= 10699353, size=  2104452, Id=82
/dev/hda6 : start= 12803868, size=143492517, Id=fd

dd if=/dev/hda count=1 | od -x
1+0 records in
1+0 records out
0000000 48eb 1090 d08e 00bc b8b0 0000 d88e c08e
0000020 befb 7c00 00bf b906 0200 a4f3 21ea 0006
0000040 be00 07be 0438 0b75 c683 8110 fefe 7507
0000060 ebf3 b416 b002 bb01 7c00 80b2 748a 0203
0000100 00ff 2000 0001 0000 0200 80fa 80ca 53ea
0000120 007c 3100 8ec0 8ed8 bcd0 2000 a0fb 7c40
0000140 ff3c 0274 c288 be52 7d79 34e8 f601 80c2
0000160 5474 41b4 aabb cd55 5a13 7252 8149 55fb
0000200 75aa a043 7c41 c084 0575 e183 7401 6637
0000220 4c8b be10 7c05 44c6 01ff 8b66 441e c77c
0000240 1004 c700 0244 0001 8966 085c 44c7 0006
0000260 6670 c031 4489 6604 4489 b40c cd42 7213
0000300 bb05 7000 7deb 08b4 13cd 0a73 c2f6 0f80
0000320 f084 e900 008d 05be c67c ff44 6600 c031
0000340 f088 6640 4489 3104 88d2 c1ca 02e2 e888
0000360 f488 8940 0844 c031 d088 e8c0 6602 0489
0000400 a166 7c44 3166 66d2 34f7 5488 660a d231
0000420 f766 0474 5488 890b 0c44 443b 7d08 8a3c
0000440 0d54 e2c0 8a06 0a4c c1fe d108 6c8a 5a0c
0000460 748a bb0b 7000 c38e db31 01b8 cd02 7213
0000500 8c2a 8ec3 4806 607c b91e 0100 db8e f631
0000520 ff31 f3fc 1fa5 ff61 4226 be7c 7d7f 40e8
0000540 eb00 be0e 7d84 38e8 eb00 be06 7d8e 30e8
0000560 be00 7d93 2ae8 eb00 47fe 5552 2042 4700
0000600 6f65 006d 6148 6472 4420 7369 006b 6552
0000620 6461 2000 7245 6f72 0072 01bb b400 cd0e
0000640 ac10 003c f475 00c3 0000 0000 0000 0000
0000660 0000 0000 0000 0000 0000 0000 0000 0180
0000700 0001 fefd 0c3f 003f 0000 2f8e 0003 0000
0000720 0d01 fefd 947f 2fcd 0003 1788 0060 0000
0000740 9541 fefd 99bf 4755 0063 fac5 003f 0000
0000760 9a81 fe05 ffff 421a 00a3 a2a7 08ad aa55
0001000


Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by robertmh (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-12-15 robertmh Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code