差分
このページの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: | ||
< | < | ||
+ | 512バイトセクタの場合 | ||
# newfs_msdos -F 32 -S 512 -c 4 ada0p1 | # newfs_msdos -F 32 -S 512 -c 4 ada0p1 | ||
/ | / | ||
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 | ||
+ | / | ||
+ | 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 | ||
</ | </ | ||
行 79: | 行 87: | ||
./efi | ./efi | ||
./efi/boot | ./efi/boot | ||
- | ./efi/boot/bootx64.efi | + | ./efi/boot/BOOTx64.efi |
./ | ./ | ||
</ | </ | ||
行 99: | 行 107: | ||
BIOSの設定を保存し再起動するとUEFI環境でFreeBSDが立ち上がるハズ。 | BIOSの設定を保存し再起動するとUEFI環境でFreeBSDが立ち上がるハズ。 | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | 上図のような「FreeBSD EFI boot block」といったブート画面が出てれば多分OK。 |