BPB patching support (untested)
This commit is contained in:
parent
850e937329
commit
b38a498394
6 changed files with 99 additions and 59 deletions
|
@ -21,10 +21,7 @@
|
|||
|
||||
#include <grub/dl.h>
|
||||
|
||||
/* Common function for normal and rescue mode commands. */
|
||||
typedef enum
|
||||
{
|
||||
GRUB_CHAINLOADER_FORCE = 0x1
|
||||
} grub_chainloader_flags_t;
|
||||
void
|
||||
grub_chainloader_patch_bpb (void *bs, grub_device_t dev, grub_uint8_t dl);
|
||||
|
||||
#endif /* GRUB_CHAINLOADER_MACHINE_HEADER */
|
||||
|
|
|
@ -106,14 +106,16 @@ struct grub_ntfs_bpb
|
|||
grub_uint16_t sectors_per_track;
|
||||
grub_uint16_t num_heads;
|
||||
grub_uint32_t num_hidden_sectors;
|
||||
grub_uint32_t reserved_3[2];
|
||||
grub_uint32_t reserved_3;
|
||||
grub_uint8_t bios_drive;
|
||||
grub_uint8_t reserved_4[3];
|
||||
grub_uint64_t num_total_sectors;
|
||||
grub_uint64_t mft_lcn;
|
||||
grub_uint64_t mft_mirr_lcn;
|
||||
grub_int8_t clusters_per_mft;
|
||||
grub_int8_t reserved_4[3];
|
||||
grub_int8_t clusters_per_index;
|
||||
grub_int8_t reserved_5[3];
|
||||
grub_int8_t clusters_per_index;
|
||||
grub_int8_t reserved_6[3];
|
||||
grub_uint64_t num_serial;
|
||||
grub_uint32_t checksum;
|
||||
} __attribute__ ((packed));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue