Wednesday, August 18, 2010

Cannot boot Ubuntu 10.04 after installation of Ubuntu or after installation of Windows Seven


You have just installed Ubuntu 10.04 but you cannot boot to it. System boot straights to Windows Seven and you are feeling deceived. I also faced this issue.

May be there’s a problem with Ubuntu 10.04 distro that’s happening with some PCs having Windows Seven. Well here’s a fix. Follow the steps.


Ø Boot the system using Live CD.

Ø Press Alt+F2 and enter gnome-terminal command. And continue by entering:

$ sudo fdisk -l


It shows partition table. Here’s mine.

/dev/sda1 29 8369 66999082+ 83 Linux
/dev/sda2 * 8370 13995 45190845 7 HPFS/NTFS
/dev/sda3 13996 14593 4803435 5 Extended
/dev/sda5 13996 14593 4803403+ 82 Linux swap / Solaris

Now mount Linux boot partition. As you can see from the output of previous command it was sda1 for my system.

$ sudo mount /dev/sda1 /mnt
$ sudo mount --bind /dev /mnt/dev
$ sudo mount --bind /proc /mnt/proc

Now chroot into the enviroment:

$ sudo chroot /mnt


After chrooting, we need not add sudo before commands.
You may want to edit /etc/default/grub file to fit your system (timeout options etc)

# vi /etc/default/grub

After edition press ESC & then :wq to store and exit. Now install/recover Grub2 via command:

# grub-install --recheck /dev/sda

Now you can exit the chroot, umount the system and reboot your system:

# exit
$ sudo umount /mnt/dev
$ sudo umount /mnt/proc
$ sudo umount /mnt
$ sudo reboot

1 comment:

  1. Casinos in New York – Mapyro
    Casinos 강원도 출장샵 in 오산 출장마사지 New York, NY · CasinoCityNew York, NY. 양주 출장마사지 96316 - Casinos 강릉 출장샵 in New York. Casinos in 포천 출장안마 New York, New York, NY. 96316. Map. 1. 1. 9.6316.

    ReplyDelete