You are not logged in.

#1 2016-03-25 11:41:31

drog
Member
From: Chile
Registered: 2012-07-03
Posts: 30
Website

Systemd boot entry for windows 10 in another hdd

Hi, how can add a entry to systemd-boot to windows which is in another hdd?

$ efibootmgr -v
BootCurrent: 000C
Timeout: 0 seconds
BootOrder: 000C,000A,0004,0003,000B,0006,0007,0008,0009
Boot0000  Setup	FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0001  Boot Menu	FvFile(86488440-41bb-42c7-93ac-450fbf7766bf)
Boot0002  Recovery	FvFile(ab4579c4-3bc5-4489-a88e-0f21e6cebf85)
Boot0003* SATA HDD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)
Boot0004* SATA CD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)
Boot0005* CD-ROM:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,be9d0102e211f3489efa0b983c96839b)
Boot0006* USB CD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot0007* USB FDD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot0008* USB HDD:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot0009* NETWORK:	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot000A* Windows Boot Manager	HD(2,GPT,4d2503e0-d3cb-47f2-9a48-ee9eb5dbd3e5,0xe1800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...I................
Boot000B* grub	HD(8,GPT,ed09e496-b0dc-484e-96c5-2b7835b01c07,0x6865c000,0x100000)/File(\EFI\grub\grubx64.efi)
Boot000C* Linux Boot Manager	HD(3,GPT,42670644-f72d-428d-9816-343f1edec8da,0x186a0000,0x5f800)/File(\EFI\systemd\systemd-bootx64.efi)
$ parted -l
Model: ATA ST1000LM024 HN-M (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  473MB   472MB   ntfs         Basic data partition          hidden, diag
 2      473MB   578MB   105MB   fat32        EFI system partition          boot, esp
 3      578MB   595MB   16.8MB               Microsoft reserved partition  msftres
 4      595MB   1000GB  1000GB  ntfs         Basic data partition          msftdata


Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sdb: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      1049kB  17.8MB  16.8MB               Microsoft reserved partition  msftres
 2      17.8MB  210GB   210GB   ntfs         Basic data partition          msftdata
 3      210GB   210GB   200MB   fat32                                      boot, esp
 4      210GB   231GB   21.0GB  ext4
 5      231GB   250GB   19.1GB  ext4

i mount the partition with bootloader of windows
mount /dev/sda2 /mnt/test
then copy the Microsoft folder to /boot/EFI/
but not works


$ tree /boot

/boot
|-- EFI
|   |-- Boot
|   |   `-- BOOTX64.EFI
|   |-- Microsoft
|   |   |-- Boot
|   |   |   |-- BCD
|   |   |   |-- BCD.LOG
|   |   |   |-- BCD.LOG1
|   |   |   |-- BCD.LOG2
|   |   |   |-- BOOTSTAT.DAT
|   |   |   |-- Fonts
|   |   |   |   |-- chs_boot.ttf
|   |   |   |   |-- cht_boot.ttf
|   |   |   |   |-- jpn_boot.ttf
|   |   |   |   |-- kor_boot.ttf
|   |   |   |   |-- malgun_boot.ttf
|   |   |   |   |-- malgunn_boot.ttf
|   |   |   |   |-- meiryo_boot.ttf
|   |   |   |   |-- meiryon_boot.ttf
|   |   |   |   |-- msjh_boot.ttf
|   |   |   |   |-- msjhn_boot.ttf
|   |   |   |   |-- msyh_boot.ttf
|   |   |   |   |-- msyhn_boot.ttf
|   |   |   |   |-- segmono_boot.ttf
|   |   |   |   |-- segoe_slboot.ttf
|   |   |   |   |-- segoen_slboot.ttf
|   |   |   |   `-- wgl4_boot.ttf
|   |   |   |-- Resources
|   |   |   |   |-- bootres.dll
|   |   |   |   `-- es-ES
|   |   |   |       `-- bootres.dll.mui
|   |   |   |-- boot.stl
|   |   |   |-- bootmgfw.efi
|   |   |   |-- bootmgr.efi
|   |   |   |-- cs-CZ
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- da-DK
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- de-DE
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- el-GR
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- en-US
|   |   |   |   |-- bootmgfw.efi.mui
|   |   |   |   |-- bootmgr.efi.mui
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- es-ES
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- fi-FI
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- fr-FR
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- hu-HU
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- it-IT
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- ja-JP
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- kd_02_10df.dll
|   |   |   |-- kd_02_10ec.dll
|   |   |   |-- kd_02_1137.dll
|   |   |   |-- kd_02_14e4.dll
|   |   |   |-- kd_02_15b3.dll
|   |   |   |-- kd_02_1969.dll
|   |   |   |-- kd_02_19a2.dll
|   |   |   |-- kd_02_8086.dll
|   |   |   |-- kd_07_1415.dll
|   |   |   |-- kd_0C_8086.dll
|   |   |   |-- kdstub.dll
|   |   |   |-- ko-KR
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- memtest.efi
|   |   |   |-- nb-NO
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- nl-NL
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- pl-PL
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- pt-BR
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- pt-PT
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- qps-ploc
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- ru-RU
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- sr-Latn-CS
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- sv-SE
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- tr-TR
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- zh-CN
|   |   |   |   `-- memtest.efi.mui
|   |   |   |-- zh-HK
|   |   |   |   `-- memtest.efi.mui
|   |   |   `-- zh-TW
|   |   |       `-- memtest.efi.mui
|   |   `-- Recovery
|   |       |-- BCD
|   |       |-- BCD.LOG
|   |       |-- BCD.LOG1
|   |       `-- BCD.LOG2
|   `-- systemd
|       `-- systemd-bootx64.efi
|-- initramfs-linux-fallback.img
|-- initramfs-linux.img
|-- intel-ucode.img
|-- loader
|   |-- entries
|   |   `-- arch.conf
|   `-- loader.conf
`-- vmlinuz-linux

Offline

#2 2016-03-25 13:03:26

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: Systemd boot entry for windows 10 in another hdd

Mostily, systemd-boot will look in the same ESP, to find the kernel and proceed the boot sequence.
Maybe the BIOS will look to the first ESP and more ESP might be a conflict.


do it good first, it will be faster than do it twice the saint wink

Offline

#3 2016-03-27 01:05:33

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Systemd boot entry for windows 10 in another hdd

drog wrote:

Hi, how can add a entry to systemd-boot to windows which is in another hdd?

I don't think you can unless you share the Windows ESP on the other hard drive with Arch and mount it to /boot

It is possible to make a custom NVRAM entry to boot Windows on a second drive:

# efibootmgr -d /dev/sdX -p Y -c -L "Windows" -l /EFI/Microsoft/Boot/bootmgfw.efi

Replace X & Y with the drive letter and partition number of the Windows EFI system partition.


Jin, Jîyan, Azadî

Offline

#4 2016-03-27 06:55:16

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: Systemd boot entry for windows 10 in another hdd

It could be a trial to setup rEFInd. To see whether it will be able to start things as expected.


do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB