freebsd:migrate_freebsd_legacy_gpt_boot_to_uefi

差分

このページの2つのバージョン間の差分を表示します。

この比較画面にリンクする

次のリビジョン
前のリビジョン
次のリビジョン 両方とも次のリビジョン
freebsd:migrate_freebsd_legacy_gpt_boot_to_uefi [2019-09-17 15:30]
Decomo 作成
freebsd:migrate_freebsd_legacy_gpt_boot_to_uefi [2019-09-20 21:45]
Decomo
行 13: 行 13:
  
 ===== 手順 ===== ===== 手順 =====
 +
 +やることはESPを作ってEFI用のブートローダを置くだけだったりする。
  
 ==== ESPの作成 ==== ==== ESPの作成 ====
行 47: 行 49:
  
 <code> <code>
 +512バイトセクタの場合
 # newfs_msdos -F 32 -S 512 -c 4 ada0p1 # newfs_msdos -F 32 -S 512 -c 4 ada0p1
 /dev/ada0p1: 1044464 sectors in 261116 FAT32 clusters (2048 bytes/cluster) /dev/ada0p1: 1044464 sectors in 261116 FAT32 clusters (2048 bytes/cluster)
 BytesPerSec=512 SecPerClust=4 ResSectors=32 FATs=2 Media=0xf0 SecPerTrack=63 Heads=16 HiddenSecs=0 HugeSectors=1048576 FATsecs=2040 RootCluster=2 FSInfo=1 Backup=2 BytesPerSec=512 SecPerClust=4 ResSectors=32 FATs=2 Media=0xf0 SecPerTrack=63 Heads=16 HiddenSecs=0 HugeSectors=1048576 FATsecs=2040 RootCluster=2 FSInfo=1 Backup=2
 +
 +4kセクタの場合
 +sudo newfs_msdos -F 32 -S 4096 -c 1 nvd0p1
 +/dev/nvd0p1: 130812 sectors in 130812 FAT32 clusters (4096 bytes/cluster)
 +BytesPerSec=4096 SecPerClust=1 ResSectors=4 FATs=2 Media=0xf0 SecPerTrack=63 Heads=255 HiddenSecs=0 HugeSectors=131072 FATsecs=128 RootCluster=2 FSInfo=1 Backup=2
 </code> </code>
  
行 79: 行 87:
 ./efi ./efi
 ./efi/boot ./efi/boot
-./efi/boot/bootx64.efi+./efi/boot/BOOTx64.efi
 ./efi/boot/startup.nsh ./efi/boot/startup.nsh
 </code> </code>
行 99: 行 107:
  
 BIOSの設定を保存し再起動するとUEFI環境でFreeBSDが立ち上がるハズ。 BIOSの設定を保存し再起動するとUEFI環境でFreeBSDが立ち上がるハズ。
 +
 +{{ :freebsd:freebsd_uefi_boot_screen.png |}}
 +
 +上図のような「FreeBSD EFI boot block」といったブート画面が出てれば多分OK。
  • freebsd/migrate_freebsd_legacy_gpt_boot_to_uefi.txt
  • 最終更新: 2021-05-26 10:14
  • by Decomo