diff --git a/kernel/src/fs/GPT.cpp b/kernel/src/fs/GPT.cpp index 58142faa..f9a8e922 100644 --- a/kernel/src/fs/GPT.cpp +++ b/kernel/src/fs/GPT.cpp @@ -41,7 +41,7 @@ namespace GPT u64 partition_table_start = header.partition_table_lba * GPT_SECTOR_SIZE; - u32 partition_index = 0; + u32 partition_index = 1; auto* table = TRY(make_array(header.num_partitions)); auto guard = make_scope_guard([table] { delete[] table; }); diff --git a/kernel/src/fs/MBR.cpp b/kernel/src/fs/MBR.cpp index 0aad45d4..369b1ef8 100644 --- a/kernel/src/fs/MBR.cpp +++ b/kernel/src/fs/MBR.cpp @@ -59,7 +59,7 @@ namespace MBR if (hdr.signature[0] != MBR_SIGNATURE_1 || hdr.signature[1] != MBR_SIGNATURE_2) return false; - u32 partition_index = 0; + u32 partition_index = 1; for (int i = 0; i < 4; i++) {