From f69c61a5daf3e9e80dd6dce0bcd2a46dc4c43518 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Fri, 15 Jul 2011 07:19:13 +0200 Subject: [PATCH] Allow booting from FAT logical partition by setting FAT hidden field in the same way than for primary partition. --- src/fat_adv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fat_adv.c b/src/fat_adv.c index 69c6ebf0..b6cf8dbc 100644 --- a/src/fat_adv.c +++ b/src/fat_adv.c @@ -1113,9 +1113,11 @@ static void create_fat_boot_sector(disk_t *disk_car, partition_t *partition, con memcmp(fat_header->system_id,"MSWIN4.1",8)) memcpy(fat_header->system_id,"MSWIN4.1",8); /* FIXME, need to know where the extended or logical partition start */ +#if 0 if(partition->status==STATUS_LOG) fat_header->hidden=le32(disk_car->geom.sectors_per_head); else +#endif fat_header->hidden=le32((partition->part_offset/disk_car->sector_size)); fat_header->sectors_per_cluster=sectors_per_cluster; fat_header->reserved=le16(reserved);