anspectrum
February 13th, 2020, 08:49 AM
First of all I must say that my dual boot is working using EasyBCD. However, I would like to get rid of this third part app and use Ubuntu native grub loader for this purpose. Below is an objectified version of whats the situation:
1. Partition Table:
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 1126399 1124352 549M 7 HPFS/NTFS/exFAT // Windows 10 Auto-created boot partition
/dev/sdb2 1126400 153602047 152475648 72.7G 7 HPFS/NTFS/exFAT //Windows 10 Installation partition
/dev/sdb3 153602048 204802047 51200000 24.4G 83 Linux //Ubuntu Installation partition
/dev/sdb4 204802048 500117503 295315456 140.8G 5 Extended
/dev/sdb5 204804096 212996095 8192000 3.9G 82 Linux swap / Solaris
/dev/sdb6 212998144 500117503 287119360 136.9G 7 HPFS/NTFS/exFAT
2. Block IDs
/dev/sda1: LABEL="New Volume" UUID="F632697B326941AB" TYPE="ntfs" PARTUUID="a11cac6d-02"
/dev/sdb1: LABEL="System Reserved" UUID="F660F7AC60F7722B" TYPE="ntfs" PARTUUID="0ba4d493-01"
/dev/sdb2: UUID="1C360FF5360FCF28" TYPE="ntfs" PARTUUID="0ba4d493-02"
/dev/sdb3: UUID="a993a479-c088-4f75-b0d4-a2c4a29d63aa" TYPE="ext4" PARTUUID="0ba4d493-03"
/dev/sdb5: UUID="2f4d3e27-ec6a-4d01-b308-ea51f6ff6367" TYPE="swap" PARTUUID="0ba4d493-05"
/dev/sdb6: UUID="7C62D0856A71A0B0" TYPE="ntfs" PARTUUID="0ba4d493-06"
3. Ubuntu Grub Entry in grub.cfg
menuentry 'Windows 10 (loader) (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-F660F7AC60F7722B' {
insmod part_msdos
insmod ntfs
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 F660F7AC60F7722B
else
search --no-floppy --fs-uuid --set=root F660F7AC60F7722B
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
4. Problem Nature:
I installed Win-10 first and Ubuntu later (well the order of installation does not really matter in this case). Ubuntu created the necessary loader entry as depicted in point 3. The problem is when I choose Win-10 to boot, I get sketchy Ubuntu screen like transitioning phase from Ubuntu to Win-10. The machine remains in this state, though not halted as I can see keys (like CAPS-LOCK) still responding. After this I used Win-10 bootable USB (well Ive made bootable Win-10 and Ubuntu USB) to fix Win-10 boot loader and as expected Ubuntu loader was removed.
5. Fixing using EasyBCD:
While in Windows, installed EasyBCD and created second entry for Ubuntu in its menu. After this I was able to boot into either Win-10 or Ubuntu. Later in Ubuntu, I re-installed grub in MBR.
6. Current Situation:
Machine boots using Ubuntu loader and I can choose either Ubuntu or Win-10. If I choose Win-10, The control is handed over to the menu entries created using EasyBCD (I can see that if I put a little bit of delay in EasyBCD entries menu). If I remove EasyBCD Win-10 entry, again I am unable to boot into Win-10.
7. What I am aiming for:
Native Ubuntu grub loader to boot Ubuntu or Win-10 without using EasyBCD (or other third party tools). My dual boot setup had been working just fine while I was using Win-7 or even Win-XP alongwith Ubuntu in dual boot fashion. Seems like Win-10 has changed things a bit.
Please suggest what I can try. Sorry for a bit long post but hopefully it will be beneficial for others as well in the future.
1. Partition Table:
Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 1126399 1124352 549M 7 HPFS/NTFS/exFAT // Windows 10 Auto-created boot partition
/dev/sdb2 1126400 153602047 152475648 72.7G 7 HPFS/NTFS/exFAT //Windows 10 Installation partition
/dev/sdb3 153602048 204802047 51200000 24.4G 83 Linux //Ubuntu Installation partition
/dev/sdb4 204802048 500117503 295315456 140.8G 5 Extended
/dev/sdb5 204804096 212996095 8192000 3.9G 82 Linux swap / Solaris
/dev/sdb6 212998144 500117503 287119360 136.9G 7 HPFS/NTFS/exFAT
2. Block IDs
/dev/sda1: LABEL="New Volume" UUID="F632697B326941AB" TYPE="ntfs" PARTUUID="a11cac6d-02"
/dev/sdb1: LABEL="System Reserved" UUID="F660F7AC60F7722B" TYPE="ntfs" PARTUUID="0ba4d493-01"
/dev/sdb2: UUID="1C360FF5360FCF28" TYPE="ntfs" PARTUUID="0ba4d493-02"
/dev/sdb3: UUID="a993a479-c088-4f75-b0d4-a2c4a29d63aa" TYPE="ext4" PARTUUID="0ba4d493-03"
/dev/sdb5: UUID="2f4d3e27-ec6a-4d01-b308-ea51f6ff6367" TYPE="swap" PARTUUID="0ba4d493-05"
/dev/sdb6: UUID="7C62D0856A71A0B0" TYPE="ntfs" PARTUUID="0ba4d493-06"
3. Ubuntu Grub Entry in grub.cfg
menuentry 'Windows 10 (loader) (on /dev/sdb1)' --class windows --class os $menuentry_id_option 'osprober-chain-F660F7AC60F7722B' {
insmod part_msdos
insmod ntfs
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 F660F7AC60F7722B
else
search --no-floppy --fs-uuid --set=root F660F7AC60F7722B
fi
parttool ${root} hidden-
drivemap -s (hd0) ${root}
chainloader +1
}
4. Problem Nature:
I installed Win-10 first and Ubuntu later (well the order of installation does not really matter in this case). Ubuntu created the necessary loader entry as depicted in point 3. The problem is when I choose Win-10 to boot, I get sketchy Ubuntu screen like transitioning phase from Ubuntu to Win-10. The machine remains in this state, though not halted as I can see keys (like CAPS-LOCK) still responding. After this I used Win-10 bootable USB (well Ive made bootable Win-10 and Ubuntu USB) to fix Win-10 boot loader and as expected Ubuntu loader was removed.
5. Fixing using EasyBCD:
While in Windows, installed EasyBCD and created second entry for Ubuntu in its menu. After this I was able to boot into either Win-10 or Ubuntu. Later in Ubuntu, I re-installed grub in MBR.
6. Current Situation:
Machine boots using Ubuntu loader and I can choose either Ubuntu or Win-10. If I choose Win-10, The control is handed over to the menu entries created using EasyBCD (I can see that if I put a little bit of delay in EasyBCD entries menu). If I remove EasyBCD Win-10 entry, again I am unable to boot into Win-10.
7. What I am aiming for:
Native Ubuntu grub loader to boot Ubuntu or Win-10 without using EasyBCD (or other third party tools). My dual boot setup had been working just fine while I was using Win-7 or even Win-XP alongwith Ubuntu in dual boot fashion. Seems like Win-10 has changed things a bit.
Please suggest what I can try. Sorry for a bit long post but hopefully it will be beneficial for others as well in the future.