Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2019 12:11:32 +0200
From:      =?UTF-8?Q?Jean-Pierre_Andr=c3=a9?= <jean-pierre.andre@wanadoo.fr>
To:        freebsd-hackers@freebsd.org
Cc:        ntfs-3g-devel@lists.sf.net
Subject:   Re: mkntfs doesn't install NTFS's bootcode during formatting
Message-ID:  <qg720k$5j80$1@blaine.gmane.org>
In-Reply-To: <20190710192048.00001ca2@gmail.com>
References:  <20190710192048.00001ca2@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Domagoj Smol=C4=8Di=C4=87 wrote:
> FreeBSD 11.2-RELEASE-p9
>      fusefs-ntfs-2017.3.23
 >
 > When slice/partition is being formatted, bootcode(';=20
containsMicrosoft Windows XP/VISTA bootloader BOOTMGR') isn't applied,=20
thus rendering it unbootable.
 > Under Win, after 'bootsect /nt60 ...' has been used on NTFS created=20
with mkntfs, THEN it becomes bootable.
This BOOTMGR bootcode is proprietary, and it depends on the
targeted Windows version, hence mkntfs cannot insert it.
However mkntfs creates the boot sector of the partition, which
is part of the ntfs file system structure.

Nevertheless can you explain in what circumstances this would
be useful. On several occasions, I have formatted an ntfs
partition before installing Window 7 or Windows 10, and these
installers insert the boot code they want without formatting
the partition. I do not have XP or Vista any more, but I
would be very surprised if they do not insert their own boot
code as well (possibly while reformatting the partition).

 >
 > When slice/partition is being formatted directly under Win, bootcode=20
IS also being applied.
No, this is not done while formatting. The Windows formatting
is limited, and the full formatting occurs when the partition
is mounted the first time. So, when upgrading Windows, you can
format with the old version before installing the new one.

 > So, if you need a bootable NTFS, why to bother in a first place with=20
mkntfs, then transferring device to Win machine and using command line=20
under Win to run 'bootsect' tool, when you can simply click 'Format...'=20
& Start?!?
Can you explain what you want to boot into ?

Jean-Pierre





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?qg720k$5j80$1>