Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4514  / 2 Years ago, tue, january 25, 2022, 1:51:33

I have installed Ubuntu 12.04 (upgraded from 11.10) 32-bit and Windows-7 64-bit simultaneously in my computer. I want to install windows-8 but I haven't any backup of Ubuntu 12.04 to retrieve grub after installing windows. So, my question is :-



Is it possible to repair grub with different version of Ubuntu Live CD? If possible then how could I do that and how risky that process?


More From » grub2

 Answers
1

If the questions are:



Is it possible to repair grub with different version of Ubuntu Live CD?



If possible then how could I do that and how risky that process?



The answers are:



Yes, it is possible and safe. It does not involve any risk to repair the Grub.



Should just do it through chroot:



Insert the Ubuntu LiveCD into the CD/DVD drive and reboot the computer. The machine boots from the LiveCD.



Click the “Try Ubuntu Without Installing” icon from the LiveCD “Start” menu. Ubuntu boots from the LiveCD.



Click “Applications” from the top taskbar in the Ubuntu desktop, and then click “Accessories.”



Click the “Terminal” option. The Ubuntu command-line terminal opens.



Type the following command at the prompt and press the “Enter” key. Replace “sdax” with the name of your “root” partition linux 8300.



sudo -i
fdisk -l
mount /dev/sdax /mnt
mount --bind /dev /mnt/dev
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
chroot /mnt
grub-mkconfig -o /boot/grub/grub.cfg
grub-install --root-directory=/mnt /dev/sda
grub-install --recheck /dev/sda
umount /mnt
reboot

[#33444] Wednesday, January 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
attagjump

Total Points: 272
Total Questions: 127
Total Answers: 124

Location: Taiwan
Member since Fri, Sep 17, 2021
3 Years ago
;