bugGNU GRUB - Bugs: bug #29582, Grub Fails free magic error when...


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

bug #29582: Grub Fails free magic error when present with hardware raid logical drive

Submitted by:  Keyzer Suze <keyzersuze>
Submitted on:  Sat 17 Apr 2010 01:42:59 PM UTC  
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  Keyzer Suze
Open/Closed:  Closed Release: 
Release:  1.98 Reproducibility:  Every Time
Planned Release:  None

Mon 04 Apr 2011 08:03:08 AM UTC, comment #4: 

> Hi
> Sorry not using hw any more
> Alex

Closing accordingly. If you or someone else with the same controller is hit by the same bug, feel free to reopen

Vladimir Serbinenko <phcoder>
Project Administrator
Sat 02 Apr 2011 12:31:44 AM UTC, comment #3: 

I've received the info that some RAID controller overwrite sectors in the zone of MBR gap. In latest upstream we have a Reed-Solomon checking for such cases. Could you retest?

Vladimir Serbinenko <phcoder>
Project Administrator
Sun 18 Apr 2010 10:29:09 AM UTC, comment #2: 


I have applied the patch, made a small difference, did not come up with failed magic, screen went blank and then reboots

So I have to turn off the bios for the adaptec and all is okay !


Keyzer Suze <keyzersuze>
Sat 17 Apr 2010 03:04:33 PM UTC, comment #1: 

How much RAM do you have? It looks like either BIOS supplies a wrong memory map or corrupts a high memory. Try applying the following patch:

=== modified file 'kern/i386/pc/init.c'
--- kern/i386/pc/init.c 2010-02-06 23:52:31 +0000
+++ kern/i386/pc/init.c 2010-04-17 15:04:04 +0000
@@ -178,12 +178,12 @@

       /* Ignore >4GB.  */
-      if (addr <= 0xFFFFFFFF && type == GRUB_MACHINE_MEMORY_AVAILABLE)
+      if (addr <= 0x7FFFFFFF && type == GRUB_MACHINE_MEMORY_AVAILABLE)
    grub_size_t len;

-   len = (grub_size_t) ((addr + size > 0xFFFFFFFF)
- ? 0xFFFFFFFF - addr
+   len = (grub_size_t) ((addr + size > 0x7FFFFFFF)
+ ? 0x7FFFFFFF - addr
  : size);
    add_mem_region (addr, len);

Vladimir Serbinenko <phcoder>
Project Administrator
Sat 17 Apr 2010 01:42:59 PM UTC, original submission:  


I have a Gigabyte GA-MA790FXT-UD5P with the latest software, currently have 9 hard drives attached
1 x 32 ssd
8 x 1T hd

I installed a adaptec 51645 hardware raid controller

I have attached 5 x 2T drives and carved up

lun 0 - 32G
lun 1 - 8T (approx)

when I allow the card to enable its bios and thus boot from lun 0, I get a

welcome to grub<cr>
free magic is broken at 0xf000e816: 0xffffffff
Aborted. Press any key to exit.

any key reboot machine.

when i disable the bios I am able to boot the machine with not problem and linux sees the 8T drive and the 32G lun as well - it is part of a raid set with 32G ssd.

I am using debian testing/unstable (sid) - grub 1.98-1

I have pictures - but I have copied over the essetianal info.  This happens every times I boot from the ssd and the hardware control has its bios enabled. When I boot from lun 0 from the adaptec is doesn't even make it the grub text - and I have grun-installed to that hard drive.

This is a slight problem I had intended on taking out the SSD and using just the adaptec


Keyzer Suze <keyzersuze>


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 phcoder (Posted a comment)
  • -email is unavailable- added by keyzersuze (Submitted the item)
  • -email is unavailable- added by keyzersuze

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-04-04 phcoder StatusNone => Fixed
        Open/ClosedOpen => Closed
    2010-04-17 keyzersuze Carbon-Copy- => Added keyzer.suze@gmail.com

    Back to the top

    Powered by Savane 3.7