I had Xubuntu installed on my laptop on hard disk drive /dev/sda on partition /dev/sda1.
Something bad happened and when I restarted my laptop, a black screen appeared with "kernel panic" message.
So I decided to install Lubuntu from a live CD. I installed it on /dev/sda5 (it has a 6 GB size).
It was initially a swap partition, but I decided that I didn't need to have a swap partition, because I have 2 GB RAM.
So, I installed Lubuntu without problems. After a restart, a black screen with the following message appeared:
no such partition
So I booted again from the live CD and changed the boot partition to /dev/sda5 in fdisk. After a restart, I can only see the 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
How can I repair GRUB to be able to boot to /dev/sda5 with Lubuntu?