Initially you should need to have the LIVE CD if you desire going to recover an Linux Mint or the Ubuntu Box. Then Download the Ubuntu Jaunty, Karmic whatsoever you desire. Open the system by means of the Live CD After that press Alt+F2 and then enter gnome-terminal command. And go on by entering tha command:
This will show the partition table of the system.
After that you should have to mount Linux (sda1 at this point), I have no exterior boot partition as you can observe:
Code:
$sudo mount /dev/sda1 /mnt
$sudo mount --bind /dev /mnt/dev
$sudo mount --bind /proc /mnt/proc
After that write the command but this is non-compulsory. It will just copies the resolv.conf.
Code:
$sudo cp /etc/resolv.conf /mnt/etc/resolv.conf
At this instant chroot into the environment which we completed:
alter the /etc/default/grub file to fit your system.
Code:
#nano -w /etc/default/grub
Play with the alternatives if you would like. at the present install/recover Grub2 via :
Code:
#grub-install /dev/sda
though you might acquire errors with that code then make use of the command :
Code:
#grub-install --recheck /dev/sda
at this time you can exit the chroot, umount the system and restart your system:
Code:
#exit
$sudo umount /mnt/dev
$sudo umount /mnt/proc
$sudo umount /mnt
$sudo reboot
Bookmarks