I had Xubuntu installed on my laptop on harddrive /dev/sda on partition /dev/sda1.
Something bad happened and when I restarted my laptop black screen appeared with "kernel panic" message.
So I decided to install Lubuntu from live CD. I installed it on /dev/sda5 (it has 6 GB size). It was initially swap partition, but I decided that I don't need to have swap partition because I have 2 GB RAM.
So, I installed Lubuntu without problems. After restart a black screen with the following message appeared:
no such partition
So I booted again from live CD and changed in fdisk the boot partition to /dev/sda5. After restart I only can see grub command line.
fdisk -l shows
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes /512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c212c
Device Boot Start End Blocks Id System
/dev/sda1 1 18706 150253568 83 Linux
/dev/sda2 18706 19458 6034433 5 Extended
/dev/sda5 * 18706 19458 6034432 83 Linux
Could you advise me how to repair Grub to be able to boot to /dev/sda5 with Lubuntu?