Dual-booting Fedora 25 and Windows 10 on Thinkpad T560 with UEFI

Tuesday, February 28, 2017

I just bought a new Lenovo Thinkpad T560. It runs both Windows 10 and Fedora 25 quite well, but I had a lot of trouble getting the system to dual-boot. In hopes of helping somebody, here are the steps I had to take to get it to work. I'm assuming you're starting with a new laptop with Windows 10 installed, since that's what it comes with from the factory.

  1. Before doing anything else, open Power Options in Windows and turn off "fast startup" so that Windows fully shuts down.
  2. Open Disk Management and shrink the Windows partition, leaving enough space for the Linux installation. Luckily, the Windows 10 Disk Management tool makes this very easy and very fast — it wasn't so in the past!
  3. Head over to a different machine already running Fedora, and grab the netinst iso image. I got mine from here; see the links on the right-hand side of the page.
  4. Create USB boot media using livecd-iso-to-disk:
    # livecd-iso-to-disk Fedora-netinst-x86_64-25-1.3.iso /dev/sdb1
  5. The Thinkpad has UEFI Secure Boot enabled by default, which prevents it from booting off of this USB drive. Reboot the laptop and enter the Thinkpad setup utility by hitting F1 at the boot screen. Disable Secure Boot, and enable UEFI + Legacy boot. Save and exit the setup utility.
  6. At the boot screen again, hit F12 to enter the boot menu and choose the USB drive.
  7. Follow the Fedora installer like normal, taking care of course to only create partitions in the free space and not overwrite any existing partitions. Since this is a laptop with one drive, I didn't see any need for LVM and I chose the "standard" partitioning + encryption.
  8. After Fedora setup finished, I wasn't able to boot off the hard drive at all, not even into windows. So, boot off of the USB drive again. Choose the recovery option. It will find the new Fedora installation.
  9. chroot into your system:
    # chroot /mnt/sysimage
  10. Fedora's installer seems to have detected the system as a BIOS (not EFI) booting system. Let's fix that. Open parted:
    # parted /dev/sda
  11. At the parted prompt, toggle the pmbr_boot flag off:
    (parted) toggle disk_toggle pmbr_boot
    (parted) q
    You can verify this worked by issuing print. The "Disk Flags" list should not contain pmbr_boot. At this point, Windows should be bootable if you hit F12 at the startup screen and choose the Windows Boot Manager, but Fedora still won't boot.
  12. Locate your EFI partition, which is the one with type EFI System. Mine is /dev/sda1, and yours probably is too.
    # fdisk -l
    Disk /dev/sda: 477 GiB, 512110190592 bytes, 1000215216 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: (a UUID here)
    Device         Start        End   Sectors   Size Type
    /dev/sda1       2048     534527    532480   260M EFI System
    /dev/sda2     534528     567295     32768    16M Microsoft reserved
    /dev/sda3     567296  205367295 204800000  97.7G Microsoft basic data
  13. Get the EFI partition's UUID:
    # blkid /dev/sda1
  14. Add a line to /etc/fstab so it always gets mounted:
    UUID=abcd-0123 /boot/efi vfat defaults 0 2
  15. Mount it:
    # mount -a
    You should see some files in /boot/efi now.
  16. Install stuff needed for EFI boot. Remember, you are still booted into the USB recovery system, but these will install into the right place since the system is chroot'ed.
    # dnf install grub2-efi grub2-efi-modules shim
  17. Because the system is still booted off of the USB drive, grub2-mkconfig doesn't think the system is an EFI system at this point. We'll need to manually copy the GRUB config file:
    # cp /boot/grub2/grub.cfg /boot/efi/EFI/fedora/grub.cfg
  18. Open /boot/efi/EFI/fedora/grub.cfg (e.g. with vi) and search/replace linux16 and initrd16 with linuxefi and initrdefi.
  19. Now reboot and hit F12 at the boot screen to open the boot menu. Choose to boot off of the hard drive. You should get the GRUB menu and Fedora should boot!
  20. To be sure that this will survive kernel updates, once you've successfully booted into Fedora, try this and make sure it still boots:
    # grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
  21. Go back into the Thinkpad setup utility, switch it to boot from UEFI only, and re-enable Secure Boot.

At this point, Fedora should show up in the boot menu that appears when you hit F12, and it can be set as the default using the setup utility. To boot Windows, either choose the Windows Boot Manager from the boot menu, or choose Windows from the GRUB menu. Either way works.

Aside from this painful series of steps which almost made me want to give up and just wipe Windows off of it completely, the T560 actually works really well with Fedora. I guess Linux isn't what it was 15 years ago — wifi, audio, suspend, OpenGL, display brightness, everything just works fine out of the box. No screwing with wpa_supplicant, xorg.conf, or any of that! And the battery life on this machine is magnificent!

Tags: linux, fedora, installation | Posted at 15:23 | Comments (10)


Chin Lipkee on Friday, June 9, 2017 at 02:06

Thanks for your write up, I am using thinkpad T410s so there is no secure boot or UEFI, using only mbr. trying on install only fedora 25 on 4TiB USB. There are several issue that are not covered by your statement as I am still struggling with it.
1. The 1st boot need to be bios_boot of 2M(otherwise fail to install, as gpt need bios_boot to be install)
2. The second boot only is /boot/efi/EFI/fedora
3. After installation I found that /dev/ /sys/ /proc/ /tmp/ is empty so have to rsync from my other fc25 OS.
4. Still fail to boot, reason no efivar, so now trying to install efivar-master but the make compile can't find the path to my gcc so trying to enable to make program to install the efivar for the fedora 25.
5. Try to divide up my 4TiB into half so can use mbr but during installation only gpt is allowed.
Thanks in advance for any help in your direction.

Stuartrhift on Friday, June 16, 2017 at 23:56

There are numerous essay
providers that
that they are really
on best rated, so do not be | If you'd
like to have
great good
homework and thesis papers
by the due date.


glenK on Monday, October 23, 2017 at 17:46

<b> - Уникaльный бонус в Казино!

- 25 бесплатных вpaщeний в игре JAСK

- Сopви бoльшoй куш http://bit.ly/2zllP2Y ! </b>

<a href=http://bit.ly/2zllP2Y><IMG>https://image.prntscr.com/image/hZMrxbNBQ7u2aRZog14fQA.jpg</IMG></a>

Traceek on Saturday, November 18, 2017 at 16:54

Продвижение сайтов.
Комплексное интернет-продвижение сайтов без посредников и переплат в одном месте!
Сбор различных баз для продвижения в интернете
Эффективно и недорого. Писать в ICQ 656310373

psype on Wednesday, November 29, 2017 at 06:39

You can check discount gives as well as airfares on the various websites that cater to given that data on worldwide flights.
Consequently it can be reasonably troublesome deciding upon which model identify toward obtain.

<a href=http://otc-inhaler.com/catalog/Asthma/Proventil.htm>proventil contraindications</a>

Getting discount car insurance coverage just isn't that straightforward and one would definitely need plenty of assist to take action.
There was, not due to this fact prolonged up to now, a period anytime Xmas included no reward furnishing in any respect, and in just a few nations, that's however the standard.

<a href=http://buyingvaltrex.com/>buy valacyclovir online</a>

After all it isn't just for beauty causes that you should look at getting wrought iron gates put in as they've a practical purpose too.
This style of effort and laborious work in advance of yourself even obtain the method impresses using supervisors.


At Scrubguru all scrubs are excellent for work, they're stain resistant and the are very durable.
There is no motive to buy the most costly equipment when they just about all perform the identical carry out.

psype on Wednesday, December 6, 2017 at 17:43

A digital camera can be used to identify the unhealthy guys catching them crimson handed indoors or outdoors.
For any type of queries, you'll be able to merely consult with buyer help staff and they will kind out your issues.

<a href=http://neurontin400mg.com/>how long does gabapentin last</a>

You do want to contemplate your budget, expertise and age if you find yourself selecting a set.
Writer: Jemmy Miller Your prescription adjustments or your glasses look so scratched they're just sad (and useless).

<a href=http://buydapoxetinecheap.com/>depoxatine</a>

If they're sporting one thing casual then the watch must also complement the informal look.
Drug begins working in 10-60 minutes after being consumed.


It is very important determine a development with HOA guidelines which suit your way of life and make your keep in the development snug and pleasurable.
The herbal products are often created from utterly completely different elements, however are intended to have the identical results as the original products.

AvitoRu1lign on Friday, December 8, 2017 at 04:20

<b>Пополение баланса Авито (Avito) за 50%</b> | <b>Телеграмм @a1garant</b>

<b>Приветствую вас, дорогие друзья!</b>

Будем рады предоставить Всем вам сервис по пополнению баланса на действующие активные аккаунты Avito (а также, абсолютно новые). Если Вам надо определенные балансы - пишите, будем решать. Потратить можно на турбо продажи, любые платные услуги Авито (Avito).

<b>Аккаунты не Брут. Живут долго.</b>

Процент пополнения в нашу сторону и стоимость готовых аккаунтов: <b>50% от баланса на аккаунте.</b>
Если нужен залив на ваш аккаунт, в этом случае требуются логин и пароль Вашего акка для доступа к форме оплаты, пополнения баланса.
Для постоянных клиентов гибкая система бонусов и скидок!

<b>Гарантия: </b>

<b>И, конечно же ничто не укрепляет доверие, как - Постоплата!!!</b> Вперед денег не просим...

Рады сотрудничеству!

<b>Заливы на балансы Авито</b>

деньги в долг в самаре от частных лиц на авито
как восстановить аккаунт с помощью номера телефона на авито
как вернуть деньги если вас обманули на авито
создать два аккаунта на авито
деньги под проценты авито

AvitoRu1lign on Saturday, December 9, 2017 at 03:11

<b>Пополение баланса Авито (Avito) за 50%</b> | <b>Телеграмм @a1garant</b>

<b>Приветствую вас, дорогие друзья!</b>

Всегда рады предоставить Всем вам услуги по пополнению баланса на действующие активные аккаунты Avito (а также, совершенно новые). Если Вам требуются определенные балансы - пишите, будем решать. Потратить можно на турбо продажи, любые платные услуги Авито (Avito).

<b>Аккаунты не Брут. Живут долго.</b>

Процент пополнения в нашу сторону и стоимость готовых аккаунтов: <b>50% от баланса на аккаунте.</b>
Если нужен залив на ваш аккаунт, в этом случае требуются логин и пароль Вашего акка для доступа к форме оплаты, пополнения баланса.
Для постоянных клиентов гибкая система бонусов и скидок!

<b>Гарантия: </b>

<b>И, конечно же ничто не укрепляет доверие, как - Постоплата!!!</b> Вперед денег не просим...

Рады сотрудничеству!

<b>Заливы на балансы Авито</b>

когда разблокируют аккаунт на авито
удаление аккаунтов на avito
авито с балансом купить
авито петрозаводск деньги в долг
авито деньги в долг в сургуте

psype on Saturday, December 16, 2017 at 13:02

You can also compare the computer equipment provide from the others.
You might really feel the pressure of choosing one thing you thought you liked for the simple reality you have been below peer stress of time constraints.

<a href=http://propeciafast.com/>buy generic propecia online</a>

This solely took about two weeks, after which we have been up and working.
You will have to observe what you are shopping for in a netbook.

<a href=http://buy-ventolin-online.com/>ventolin for babies cough</a>

Electric window candles can be utilized for decorating the house on many different occasions like when you need to have fun the birthday occasion of your child or you wish to make the home look elegant.
The first solution we'll go over inside just this moment factor of How In path of Buy Rich III, 20 Assets of Passive Dollars is Own Lending.


You can get more variety of comfortable toys for your baby in a small budget.
What looks as if an ideal policy might not be and the easiest way to verify you might be getting the perfect policy is to match it to others.

psype on Thursday, January 4, 2018 at 08:58

However that Buy Levitra the way that first.
If you are looking for to bulk up on quite a few muscle then the warfare stack is in regards to the thing for you.

<a href=http://buylevitra24h.com/>order vardenafil online</a>

In search of Prime quality?
Cleansing merchandise -- Use natural and biodegradable cleaning agent such as baking powder, vinegar and sizzling water.

<a href=http://buyingvaltrex.com/>hsv valtrex</a>

Many individuals have driveways, paths and different out of doors areas that they want to maintain ice-free for safety and to keep up a correspondence with the outside world, and to attain this they use rock salt.
Writer: Rakesh jain Top-of-the-line issues I like to do is sit around the coffee table and speak for hours at length.


These offers comparable to contract and clearance help you to purchase the phones of your selection at minimal rates.
Cialis allows you preserve a large amount of dollars on ED.

Add a comment

Email: (optional, not displayed to public)