I have an old Lenovo Ideapad z570 laying around and would like to bring it to live again.
After successful installation of Ubuntu I realised that it is really slow and I don't want it, so decided to try Debian instead (amd64 version used). Installation parameters were : use whole disk, no partition for /home, added swap partition, gnome desktop env.
On reboot there was only "grub>" console and after learning how to use it I was able to boot in the OS.
Commands that worked for me in grub :
grub> set root=(hd0,2)
grub> linux /vmlinuz root=/dev/sda2
grub> initrd /initrd.img
grub> boot
In the terminal emulator commands like
# update-grub
# grub-install /dev/sda
were executed on my root location without any errors. I thought it worked but after reboot nothing changed.
Partitions on hard drive:
sda1 - efi
sda2 - root
sda3 - swap
For some stupid reason I thought that it will be a good idea to wipe whole drive with zeros to install from "fresh" and now I don't have even grub console!
Using grub console from USB I was able to find that my system is now on hd1,2:
After setting root, linux, initrd and boot I had this: