Menu

#6 NTFS support

closed
nobody
None
6
2012-04-01
2012-02-14
Pete Batard
No

Hi Henriq,

As I have now added NTFS support in my app [1], that uses ms-sys to create bootable NTFS USB from Windows installation ISO images among other things, I am submitting my ms-sys NTFS support addon for your consideration.
The boot record data was taken from the one generated by 'bootsect.exe', which is found on Windows 7 installation media, and in my testing, seems to work quite well in booting 'bootmgr' based NTFS partitions.

As you may be aware however, writing the boot record and copying a 'bootmgr' file alone is not enough to make an NTFS partition bootable. For the partition to actually boot, it also needs to be remounted in an NTFS aware OS (Windows or Linux with NTFS driver, though I haven't tried the latter) so that NTFS records get updated accordingly. I understand that this limitation may restrict an ms-sys usage quite a bit...

If you are interested, the files I added are:
o ntfs.c: https://github.com/pbatard/rufus/blob/master/src/ms-sys/ntfs.c
o inc/br_ntfs_0x0.h: https://github.com/pbatard/rufus/blob/master/src/ms-sys/inc/br_ntfs_0x0.h
o inc/br_ntfs_0x54.h: https://github.com/pbatard/rufus/blob/master/src/ms-sys/inc/br_ntfs_0x54.h
These files are all under the same license as ms-sys.

Note that these are the only files I added/modified for NTFS support, as I am using ms-sys it as a library rather than an executable.

Regards,

/Pete

[1] https://github.com/pbatard/rufus

Discussion

  • Henrik Carlqvist

    Thanks alot for your contribution! As I am unable to test this functionality myself and the usefulness in ms-sys is limited I plan to add this functionality on a new experimental/testing 2.3.x-version of ms-sys. I hope to be able to work on this within a few weeks.

    regards Henrik

     
  • Henrik Carlqvist

    • priority: 5 --> 6
     
  • Henrik Carlqvist

    • status: open --> closed
     
  • Henrik Carlqvist

    Implemented in version 2.3.0 of ms-sys

     

Log in to post a comment.