You will note that grub1 commands in this shell did not respond positively.
With the GRUB2 commands you can be able to get into your Linux installation (in my case: Debian wheezy) without any Live CD or other OS installation.
Enter the following command in sequence.
I have given (hdX,Y) as generic syntax, where
X is your hard disk number and
Y is the partition number.
In linux command line, pass your appropriate boot and root device. I have mentioned it as /dev/sdZX. /dev/sda1 (boot in root partition)
[/dev/dm-2 (boot) and /dev/dm-7(root)] (separate partitions)
Note: Here is how it can be done with Live CD.
Your comments are welcome on corrections and omissions.
How to chroot Ubuntu using Live CD to fix GRUB rescue prompt
Boot CDROM through GRUB
Arch Linux: Kernel panic after update – a solution
Automated Data backup of Ubuntu Linux using Remote Backup software rsnapshot in Debian
How to safely remove ubuntu in dual boot installation