Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

testdisk put my partition table into sector order. Next I ran update-grub to rewrite the bootloader. Now every boot lands me at

error: no such partition. 
grub rescue>

The only thing that gets me booting is the solution http://superuser.com/a/182194/110335

using (hd0,msdos3)

When I run set in the grub rescue mode above, I see it persists with the former (hd0,msdos4)

What should I do to fix this? It's Ubuntu 11.10

share|improve this question

1 Answer 1

Eventually found it myself.

The command that got it booting properly again was

grub-install /dev/sda3

Since that was the partition marked active. Also it seems that in grub-speak, (hd0,3) and (hd0,msdos3) are interchangeable.

share|improve this answer

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.