Skip to main content

Benx Shen's Library tagged howto   View Popular

17 Nov 09

Bug #477104 in grub (Ubuntu): “After 9.10 grub update can not boot into Wubi install”

  • "cat /boot/grub/grub.cfg" gives a screen full of garbage. Even "cat /etc/passwd" gives garbage. "ls" can find the files just fine. I can still boot manually by giving the proper "linux" and "initrd" arguments. These files are NOT ACTUALLY CORRUPTED, they can be read just fine in ubuntu. Only grub can no longer read them. That's problem #1.
  • Summary: Moving, renaming, or regenerating ANY file, whether it's the kernel, initrd or grub.cfg results in those files becoming unreadable by grub2, probably because they're not being found in the correct place on the drive, resulting in garbage for text files, and invalid magic numbers for binaries. Also, grub-install's modification of C:\wubildr has no effect, and it also leaves behind a mess in /boot/grub on the linux side.
  • 2 more annotations...

Caller and Callee « ActiveState Code

  • Recipe 576925: Caller and Callee











    A recipe to find out which function is the caller of the current function.












    Python


    1
    2
    3
    4
    5
    6
    7
    import inspect

    def callee():
    return inspect.getouterframes(inspect.currentframe())[1][1:4]

    def caller():
    return inspect.getouterframes(inspect.currentframe())[2][1:4]
1 - 20 of 89 Next › Last »
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo