Reinstalare Grub
Ai instalat Windows si nu mai poti intra in Linux. Nicio problema, ai intrat unde trebuia
Ai nevoie de orice livecd disponibil. Daca nu ai ti-as recomanda livecd-ul minimal de la Gentoo. Download
Dupa ce ne asiguram ca livecd-ul este functional incepem procesul de reinstalare grub
Reinstalare grub
Avem nevoie sa stim pe ce partitie a fost instalat linuxul.
Ca root dati urmatoarea comanda:
# fdisk -l Device Boot Start End Blocks Id System /dev/sda1 * 1 5167 41503896 7 HPFS/NTFS /dev/sda2 5168 5229 498015 83 Linux /dev/sda3 5230 38913 270566730 5 Extended /dev/sda5 5230 5353 995998+ 82 Linux swap / Solaris /dev/sda6 5354 36477 250003498+ 83 Linux
Dupa cum se observa am 3 partitii:
/dev/sda2 /boot
/dev/sda5 swap
/dev/sda6 /
Cei care nu aveti partitie separata pentru /boot nu va faceti probleme. Sariti peste montatul partitiei
# mkdir /mnt/linux
# mount /dev/sda6 /mnt/linux
# mount /dev/sda2 /mnt/linux/boot
# mount -t proc none /mnt/linux/proc
# mount -o bind /dev /mnt/linux/dev
# cp /proc/mounts /mnt/linux/etc/mtab
# chroot /mnt/linux /bin/bash
# grubgrub> root (hd0,5) #vezi explicatie grub
grub> setup (hd0)
grub> quit
Grub-ul a fost reinstalat puteti restarta
Explicatie numerotare partitii in grub:
root (hdx,y)
setup (hdx)
| x | normal | y | normal |
| 0 | sda | 0 | sda1 |
| 1 | sdb | 1 | sda2 |
| 2 | sdc | 2 | sda3 |
Inlocuiti x si y in functie de configuratia dvs.
Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments
No comments yet.
Leave a comment