Tags: grub,bash

Classer par : Date / Titre /

  1. il y a 2 ans par spirit et sauvegardé par 1 autre
    1. # Boot on a live CD and open a console. sda1 is supposed to be the partition containing the OS
    2. # 1/ Restore GRUB
    3. mount -t proc none /dev/sda1/proc
    4. mount -o bind /dev /dev/sda1/dev
    5. chroot /dev/sda1/ /bin/bash
    6.  
    7. /usr/sbin/grub
    8. grub > root(hd0,0)    # 0->a, 1->b ...      #1->0, 2->1 ...
    9. grub > setup(hd0)
    10. grub > quit
    11.  
    12. # 2/ Check if partition is bootable
    13. fdsik /dev/sda
    14. fdisk > p      # print the partition table
    15. fdisk > a      # toggle a bootable flag
    16. fdsik > 1
    17. fidsk > w
    18.  
    19. # 3/ Reboot !! That's done
    Copier ceci sur votre site: <script type="text/javascript" src="http://www.posteet.com/embed/667"></script>

Première / Précédent / Suivant / Dernière / Page 1 sur 1 (1 posteets)