I have dual boot system, but while booting my system with window 7, I deleted swap partition mistakenly. Now it is showing no such partition grub rescue.
I installed very important software in Ubuntu and I don't want to reinstall it again. Is there any method to resolve it?
Best Answer
You don't need Internet connection, just you need Ubuntu in CD/Flash.
Boot from live CD/Flash and do steps:
/dev/sdaX
, where X is your installed partition (Type gparted in dash and open it).Then mount
/dev/sda4
by the following commands (you can replace it by partition that you will see in gparted application):Now we mounted the
/dev/sda4
that installed Ubuntu here. just run below command to switch toroot
directory of Ubuntu patrtition:And run below command to install grub to main partition
/dev/sda
:Update grub and exit and reboot your system. it will fix.
I hope this helps.