Mudanças entre as edições de "Grub"
De MochilaWiki
Ir para navegaçãoIr para pesquisarLinha 7: | Linha 7: | ||
grub-mkconfig /boot/grub/grub.cfg | grub-mkconfig /boot/grub/grub.cfg | ||
</source> | </source> | ||
+ | |||
+ | == recuperar grub no Fedora == | ||
+ | <source lang="bash"> | ||
+ | mount /dev/mapper/vg_sereno-lv_root /mnt/ | ||
+ | mount /dev/sda5 /mnt/boot/ | ||
+ | mount -o bind /dev /mnt/dev | ||
+ | mount -o bind /proc /mnt/proc | ||
+ | mount -o bind /sys /mnt/sys | ||
+ | mount -t tmpfs /mnt/tmpfs /mnt/tmp | ||
+ | chroot /mnt | ||
+ | grub2-install /dev/sda | ||
+ | grub2-mkconfig -o /boot/grub2/grub.cfg | ||
+ | </source> | ||
+ | |||
* http://gnu2all.blogspot.com/2012/02/fedora-adicionando-outras-distribuicoes.html | * http://gnu2all.blogspot.com/2012/02/fedora-adicionando-outras-distribuicoes.html | ||
* http://www.dedoimedo.com/computers/grub-2.html | * http://www.dedoimedo.com/computers/grub-2.html |
Edição das 22h16min de 22 de março de 2014
apt-get install os-prober
em debian squeeze
grub-mkconfig /boot/grub/grub.cfg
recuperar grub no Fedora
mount /dev/mapper/vg_sereno-lv_root /mnt/
mount /dev/sda5 /mnt/boot/
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
mount -t tmpfs /mnt/tmpfs /mnt/tmp
chroot /mnt
grub2-install /dev/sda
grub2-mkconfig -o /boot/grub2/grub.cfg