Now there are options to do. I followed the below path:
Make a temp directory.
Mount the root filesystem (/) on the temp directory.
Then chroot it.
(initramfs) mkdir /mnt
(initramfs) mount /dev/device-name /mnt
(initramfs) chroot /mnt
$ vi
Question
I'm stuck in initramfs on Linux Mint v15 and I need to edit /bin/grub/grub/cfg. I have the sda1 device mounted but not sure what to do to edit. I try exec ./usr/bin/vi and it throws a kernel panic.
Solution
Now there are options to do. I followed the below path:
Make a temp directory.
Mount the root filesystem (/) on the temp directory.
Then chroot it.
(initramfs) mkdir /mnt
(initramfs) mount /dev/device-name /mnt
(initramfs) chroot /mnt
$ vi
OTHER TIPS
Ok, once I took a deep breath and thought about the problem, I just booted off the install cd, went to recovery mode and fixed the problem. Now everything is good.
Just remember, the first tool in fixing any problem is taking a deep breath and relaxing :-)