I have an SSD with 3 partitions, the first for windows 10 and the other two for ubuntu 16.04 (one for root and the other for home). I had installed windows 10 first, then ubuntu 16.04, and installed the grub loader on the ssd.
Later, when I booted into windows 10, I accidentally set the windows partition as active, and noticed that a partition disappeared (the one with root). When I restarted my computer I go into grub rescue.
I ran the command "ls", and it listed a bunch of partitions. When I ran the command "set", the prefix and root were a partition that wasn't listed in ls. So I'm guessing a partition was deleted (probably the ubuntu root one).
I'm stuck in grub rescue. How do I recover my pc?