Restoring a backup to a new DOS bootable disk

I'm trying to follow instructions from https://ms-sys.sourceforge.net/ which show how to create a bootable disk and then restore a backup, but can't make this work on FreeBSD. Here are the instructions:-

Code:
Example 2, restoring a backup to a fresh hard disk:

Step 1, use GNU parted to create your FAT32 partition and file system:

parted (then create partition and file system)

Step 2, write the MBR:

ms-sys -w /dev/hda

Step 3, write the FAT32 partition boot record:

ms-sys -w /dev/hda1

Step 3b, write partition info and drive id to partition:

ms-sys -p /dev/hda1

This step might be needed depending on which program was used to format the
partition. If the program was formatted with gnu parted this step could be
skipped. It is also possible to combine this flag with the previous step
like this: ms-sys -wp /dev/hda1

Step 4, mount your new filesystem:

mount /dev/hda1 /mnt

Step 5, read your backup

cd /mnt; tar -xzvf /path/to/my_windows_backup_file.tgz

My step 1 is:-
Code:
gpart destroy -F da0
gpart create -s mbr da0
gpart add -t fat32 da0

Then I have:
Code:
ms-sys -w /dev/da0
ms-sys -w /dev/da0s1
ms-sys -p /dev/da0s1

After running ms-sys -w /dev/da0s1, da0s1 disappears.

What am I doing wrong?
 
Back
Top