I'd successfully installed Ubuntu 10.04.03 LTS with parallel to existing Window 7 Professional. Both the OSes were booting properly without any problem. After install I needed to do sudo update-grub to be able to get grub loader choices.
My HDD partitioning was as below (before the problem):
System partition (105 MB approx.)
C:\
D:\
Ubuntu partition (120 GB approx.)
Today, I created another partition F:\ from Windows 7 partition manager as follows.
System partition (105 MB approx.)
C:\
D:\
F:\
Ubuntu partition (120 GB approx.)
Also I accidentally assigned a drive letter to the Ubuntu partition as G:. Realizing my mistake I immediately removed the drive letter by hitting the remove menu from "Change Drive Letter and Paths".
After I restarted the PC, I'm getting the following error message screen:
error: unknown filesystem.
Entering rescue mode...
grub rescue>
on ls at this screen I get following output:
(hd0) (hd0,msdos4) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
I tried the following commands ranging from
(hd0), (hd0,msdos6), (hd0,msdos5), (hd0,msdos4), (hd0,msdos3), (hd0,msdos2), (hd0,msdos1)
set boot=(hd0,msdos6)
set prefix=(hd0,msdos6)/boot/grub
insmod normal
But I'm getting either following error:
error: unknown filesystem.
or:
error: no such partition
I don't have windows live cd with me, but I've bootable USB with the same Ubuntu OS I've installed and can boot from that USB.
I want to be able to boot into Window 7 and Ubuntu both. Please let me know what do I need to do.
Any help / suggestion is appreciated.
UPDATE 1
Output of fdisk -l
:
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xd8680f27
Device Boot Start End Blocks Id System
/dev/sda1 63 2047 992+ 42 SFS
Partition 1 does not start on physical sector boundary.
/dev/sda2 * 2048 206847 102400 42 SFS
/dev/sda3 206848 195350527 97571840 42 SFS
/dev/sda4 195350528 976771119 390710296 42 SFS
Disk /dev/sdb: 4023 MB, 4023385600 bytes
255 heads, 63 sectors/track, 489 cylinders, total 7858175 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x9182a35b
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 7858174 3929056 c W95 FAT32 (LBA)
ubuntu@ubuntu:~$
Update 2
You can find the paste bin link below created by boot-repair:
http://paste.ubuntu.com/14678090/
Thanks & BR in advance,
Alkesh