1

I had Ubuntu 12.04 pre-installed on my laptop with /home partition of about 246GB (and all other partitions like / and /boot etc. with variable sizes). I shrinked the drive and made a new one of 100GB from /home and installed windows 8 there. After that Grub menu was not being shown as obvious.

Then I booted live cd (same Ubuntu 12.04) and did "recommended repair" by boot-repair. It said everything went fine but when I start the system, Grub does not show the option to select windows OS.

Only those, with Linux-generic and recovery kind of options, but not Windows Loader.

Here is the log file from boot-repair.

17
  • upload gparted screenshot to imgur.com and post the link here. Dec 6, 2013 at 13:08
  • You need to repair your windows bootloader.Try this,it should really help you askubuntu.com/questions/381601/… Dec 6, 2013 at 13:20
  • Isn't that what has happened here? I installed windows and it worked fine so that means it had already overwritten the grub. Then I booted into live cd and repair it.
    – Tarun
    Dec 6, 2013 at 16:40
  • but you say in the question that Grub does not show the option to select windows OS.plz tell what's your actual problem is. Dec 6, 2013 at 16:42
  • My actual problem is this only that the grub does not show the OS selection menu. But isn't it that the steps you just said have already been implemented in the process I've done till now?
    – Tarun
    Dec 6, 2013 at 16:46

2 Answers 2

1

enter image description here

  • From the screenshot,it was clearly shown that you installed Windows on a logical partition.Windows doesn't boot from a logical partition,it only boots from a primary partition.

  • So delete /dev/sda8 and install windows on a primary partition other than extended partition.

  • For this,follow the below steps.

    1. Boot ubuntu-live-disk(so that your ubuntu partition will be unmounted and you will be able to resize it) and install gparted by running the below commands on terminal,

      sudo apt-get update
      sudo apt-get install gparted && sudo gparted
      
    2. Right click on the /dev/sda8 ntfs partition and delete it by selecting delete option.

    3. Now the unallocated spaces before and after /dev/sda8 combine into one.(unallocated space= 3.74 MB+100.09 GB+4.74MB).

    4. Then you have to move the total unallocated space,just below to the /dev/sda7 linux-swap partition,so that the total unallocated space will be throw out of the extended partition.For this,

    5. Right click on the dev/sda6 and select Resize/Move option.Click on the slider and move it to the left atmost.

    6. Now the unallocated space comes just below to the /dev/sda6.

      enter image description here

    7. Try the same like i did on step 5 to move the unallocated space just below to the /dev/sda7 linux swap partition.

    8. Now the total unallocated space of about 100 GB are comes at the last of the extended partition.Now right-click on the extended partition and click on the Resize/Move option then you can be able to shrink or shorten the extended partition to throw 100 GB unallocated space out of the extended partition.

    9. Right click on the unallocated space just below to the extended partition and select New option.

    10. From that create a new primary ntfs partition.And then install Windows os on it.

47
  • How do I make a primary partition? I can only shrink the /home partition (sda7) which I did. How to make it primary? edit: Windows did load (over writing grub) but later I used boot-repair to get it dual booted.
    – Tarun
    Dec 6, 2013 at 19:14
  • After searching, I got to know that sda1-sda4 are primary partitions. But I don't think there is any way to get the new partition to be any of those sda1-sda4. Can you tell if there is some? Thanks
    – Tarun
    Dec 6, 2013 at 19:46
  • Thank You very much. I will surely try the way how you brought the logical partition out of extended but I still have some doubts, which if you could solve, will be very much appreciated. But I can't use the chat here. If you can give any other contact info, that will be great. For the time being, I've repaired Windows and using it only.
    – Tarun
    Dec 7, 2013 at 6:23
  • you can post as comments here.After that don't forget to delete that. Dec 7, 2013 at 6:28
  • I cannot upvote since I lack the min number of reps: Alright, 1. If windows can boot only from primary partition, how is it able to boot when only windows is used (as I am using currently replacing grub by windows boot manager)?
    – Tarun
    Dec 7, 2013 at 6:35
0

open grub file under /etc/defaults/grub

check for your windows partition information .

finally don't forget to update grub by

sudo update-grub 

and reboot your machine. It should work.

1
  • There is no info regarding windows and maybe that's why it doesn't show the Windows in the grub menu. Here is the grub file: pastebin.com/kZcQAT9f
    – Tarun
    Dec 6, 2013 at 17:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .