Recovering GRUB/Arch Linux after installing Windows 7

58

GRUB has an internal way to do it, which I've found may work when grub-install does not. It requires an existing /boot/grub, which you should have lying around.

On a LiveCD, open up the GRUB CLI (su -c grub) and run:

find /boot/grub/stage1
root (hdX,Y)
setup (hdX)
Share:
58

Related videos on Youtube

evelyn
Author by

evelyn

Updated on September 18, 2022

Comments

  • evelyn
    evelyn over 1 year

    Like title, how can i detect my webpage have ?

    • Jai
      Jai almost 8 years
      Use localstorage to set a specific value and have a check if that has not been changed.
  • new123456
    new123456 over 12 years
    @Chiggins It should. GRUB knows how exactly to locate its own stuff within most any partition type, and shouldn't require any extra mounting.
  • Chiggins
    Chiggins over 12 years
    Alright cool, thanks for that. I'll give it a shot when I get home.
  • evelyn
    evelyn almost 8 years
    but if i want to do something after page refresh?
  • Alex
    Alex almost 8 years
    You can try this: $('body').unload(function() { //do something });