Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've just installed Windows 7 after installation of Ubuntu 13.10. Can I use Gparted Live CD to restore GRUB? I ask, because my Internet connection is very slow and Gparted Live is small (150 MB).

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Not sure how lightweight Gparted's liveCD is.

Install MBR from liveCD/DVD/USB, Ubuntu install on sda5 and want grub2's bootloader in drive sda's MBR: Find linux partition, change sda5 if not correct:

sudo fdisk -l

confirm that linux is sda5

sudo mount /dev/sda5 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda

The above command should work but they now suggest this command for grub 1.99 with Natty 11.04 or later - uses boot not root.:

sudo grub-install --boot-directory=/mnt/boot /dev/sda

If that returns any errors run:

sudo grub-install --recheck --root-directory=/mnt/ /dev/sda

If no errors on previous commands reboot into working system and run this:

sudo update-grub

I unusually suggest Boot-Repair but do not know if it runs or not (it does work in several distributions) as it needs some standard utilities. It is not a huge download (mostly bash script) and does have a Lubuntu based version to download.

https://help.ubuntu.com/community/Boot-Repair

share|improve this answer
    
I noticed, that in Gparted Live CD, there isin't chroot, so I must download Ubuntu Live CD ;( –  enedil Dec 25 '13 at 19:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.