Changes by: szaka
Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30148/ntfsprogs
Modified Files:
mkntfs.c
Log Message:
mkntfs: set the physical drive and the extended boot signature to 0x80
in the Extended BPB which are needed to boot from disk
Index: mkntfs.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/mkntfs.c,v
retrieving revision 1.136
retrieving revision 1.137
diff -u -p -r1.136 -r1.137
--- mkntfs.c 4 Feb 2006 19:53:22 -0000 1.136
+++ mkntfs.c 14 Mar 2006 21:20:21 -0000 1.137
@@ -4617,10 +4617,8 @@ static BOOL mkntfs_create_root_structure
bs->bpb.hidden_sectors = cpu_to_le32(opts.part_start_sect);
ntfs_log_debug("hidden sectors = %llu (0x%llx)\n", opts.part_start_sect,
opts.part_start_sect);
- /*
- * If there are problems go back to bs->unused[0-3] and set them. See
- * ../include/layout.h for details.
- */
+ bs->physical_drive = 0x80; /* boot from hard disk */
+ bs->extended_boot_signature = 0x80; /* everybody sets this, so we do */
bs->number_of_sectors = cpu_to_sle64(opts.num_sectors);
bs->mft_lcn = cpu_to_sle64(g_mft_lcn);
bs->mftmirr_lcn = cpu_to_sle64(g_mftmirr_lcn);
|