
나는 하이브리드 MBR 레코드(GPT/MBR)를 만드는 방법에 대한 매우 자세한 가이드를 따랐습니다.여기
이제 gdisk
하이브리드 MBR이 있다고 말합니다. 하지만 UEFI에서만 부팅할 수 있고 BIOS에서는 부팅할 수 없습니다(외장 하드 드라이브를 사용합니다). 간단한 실행으로 grub-install
UEFI 부분만 설치되는 것 같습니다. 나는 보았다논의 보호 항목이 디스크의 첫 번째 항목이 되어야 한다는 요구 사항에 대해 설명했기 때문에 이를 첫 번째 항목으로 만들었고 이것이 근본 원인은 아닙니다.
그렇다면 문제는 GRUB를 설치하여 BIOS/MBR과 UEFI/GPT에서 시작되는 OS를 모두 부팅하는 방법입니다.
$ sudo gdisk /dev/sdd
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present
Found valid GPT with hybrid MBR; using GPT.
Command (? for help): r
Recovery/transformation command (? for help): o
Disk size is 468862128 sectors (223.6 GiB)
MBR disk identifier: 0x7213C4A0
MBR partitions:
Number Boot Start Sector End Sector Status Code
1 1 208895 primary 0xEE
2 * 208896 1196031 primary 0x83
3 1196032 135413759 primary 0x83
4 200425472 468860927 primary 0x83
Recovery/transformation command (? for help): p
Disk /dev/sdd: 468862128 sectors, 223.6 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 21773ad9-3d43-4832-85b7-6c841d20ce75
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 468862094
Partitions will be aligned on 1-sector boundaries
Total free space is 62183 sectors (30.4 MiB)
Number Start (sector) End (sector) Size Code Name
1 63 80324 39.2 MiB EF00 Basic data partition
2 208896 1196031 482.0 MiB 8300 Basic data partition
3 1196032 135413759 64.0 GiB 8300
4 135413760 168968191 16.0 GiB 0700 Basic data partition
5 168968192 200425471 15.0 GiB 0700 Basic data partition
6 200425472 468860927 128.0 GiB 8300
7 81920 149503 33.0 MiB EF02
$ sudo parted /dev/sdd
GNU Parted 3.2
Using /dev/sdd
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA OCZ-VECTOR150 (scsi)
Disk /dev/sdd: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 32.3kB 41.1MB 41.1MB fat32 Basic data partition boot, esp
7 41.9MB 76.5MB 34.6MB bios_grub
2 107MB 612MB 505MB ext4 Basic data partition
3 612MB 69.3GB 68.7GB ext4
4 69.3GB 86.5GB 17.2GB linux-swap(v1) Basic data partition msftdata
5 86.5GB 103GB 16.1GB ntfs Basic data partition msftdata
6 103GB 240GB 137GB ext4
$ sudo 그럽 설치
Installing for x86_64-efi platform.
Installation finished. No error reported.
답변1
BIOS/MBR 및 UEFI/GPT에서 시작되는 OS를 모두 부팅하도록 GRUB를 설치하는 방법은 무엇입니까?
당신은바이오스 부팅 파티션라벨이 붙은 bios_grub
. 이 파티션은 GRUB 설치 전에 생성되어야 합니다.
GRUB가 BIOS 기반 시스템의 GPT 파티션 디스크에서 부팅하려면 BIOS 부팅 파티션이 필요합니다. 이 파티션은 /boot 마운트 지점과 관련이 없으며 GRUB에서 직접 사용됩니다. 여기에 파일 시스템을 생성하거나 마운트하지 마십시오.
만드는 방법바이오스 부팅 파티션? 최소 크기는 얼마입니까?
GPT 시스템에서 BIOS 부팅 파티션을 생성할 때 크기가 최소 31KiB인지 확인해야 합니다. (GPT로 포맷된 디스크는 일반적으로 특별히 작지 않으므로 충분한 성장 공간을 허용하기 위해 1MiB와 같은 최소 크기보다 크게 만드는 것이 좋습니다.) 또한 적절한 파티션 유형이 있는지 확인해야 합니다. . GNU Parted를 사용하면 다음과 같은 명령을 사용하여 이를 설정할 수 있습니다.
parted /dev/disk set partition-number bios_grub on