diff --git a/src/bin/makebootable/platform/bios_ia32/makebootable.cpp b/src/bin/makebootable/platform/bios_ia32/makebootable.cpp index 823d498513..cb6b595524 100644 --- a/src/bin/makebootable/platform/bios_ia32/makebootable.cpp +++ b/src/bin/makebootable/platform/bios_ia32/makebootable.cpp @@ -386,8 +386,7 @@ main(int argc, const char *const *argv) if (!noPartition) { partition_info partitionInfo; if (ioctl(fd, B_GET_PARTITION_INFO, &partitionInfo) == 0) { - // hard coded sector size: 512 bytes - partitionOffset = partitionInfo.offset / 512; + partitionOffset = partitionInfo.offset; } else { fprintf(stderr, "Error: Failed to get partition info: %s", strerror(errno));