Tuesday, July 17, 2012

Restore Grub2 after re-installation of Windows

Whenever we go for a dual booting in a system grub(Linux) overlaps the boot loader(Windows) & mbr has been rewritten so system doesn't fit to its base. So Grub is to be updated. There are other processes but we must prefer with a Livecd to enroll our banefits & it's also so simple. First boot from the livecd then Open the Terminal & run


sudo -i
mount /dev/sda7 /mnt
mount /dev/sda6 /mnt/boot  #skip this one if not have a separate /boot partition
grub-install --root-directory=/mnt/ /dev/sda

If you miss “grub.cfg” file,use following to recreate:
mount --bind /proc /mnt/proc
mount --bind /dev /mnt/dev
mount --bind /sys /mnt/sys
chroot /mnt update-grub
umount /mnt/sys
umount /mnt/dev
umount /mnt/proc
exit
sudo update-grub

Disable Apport Error Report Dialog in Ubuntu 12.04

In fresh Ubuntu 12.04 installation, it keeps popping up annoying apport error report dialog on very log-in even after sending the error report. Here you are going to send the error report but the after the next minute it again pops.This simple tutorial will show you how to disable this dialog in Ubuntu.
Open up terminal from the dash home or press Ctrl+Alt+T, edit “/etc/default/apport” file with this command:
sudo gedit /etc/default/apport
enable=0

Save the file, and done!