Thanks for your support, is very interesting that you found.
Can I make some additional tests?
menteora
Thanks for your support, is very interesting that you found.
Can I make some additional tests?
menteora
[quote=“jdd49, post: 2005, member: 623”]I just wanted to add a comment. I’m not sure exactly what the ms-sys program does, but Fog essentially already does the same thing. Fog has the standard mbr’s for xp, vista, and 7 stored in init.gz. It restores them with the command
[B]dd if=$mbrfile of=$hd bs=512 count=1 &>/dev/null[/B]
It looks to me that ms-sys is restoring the same standard mbr, if you restore the standard mbr to a system that doesn’t use the standard mbr, such as a system with 2 or 3 partitions, then it probably won’t boot.
Just some thoughts.[/quote]
Hi jdd49,
ms-sys fix the mbr, don’t restore the standard one, it’s similar to windows recovery console fixmbr command.
I tested ms-sys on a Lenovo pc with 2 partitions (recovery and windows xp) and worked well.
menteora
[quote=“keltorsori, post: 1880, member: 607”]Any chance you can share your init.gz fix? No matter what I do to my windows 7 images, I always have to go repair them after I deploy.[/quote]
I forgot to say that ms-sys allows to fix the other operating systems:
[INDENT]-7, --mbr7 Write a Windows 7 MBR to device
-i, --mbrvista Write a Windows Vista MBR to device
-m, --mbr Write a Windows 2000/XP/2003 MBR to device
-9, --mbr95b Write a Windows 95B/98/98SE/ME MBR to device
-d, --mbrdos Write a DOS/Windows NT MBR to device[/INDENT]
You can try,
by
menteora
This is my work:
[QUOTE]echo " * Image Restored";
done[/QUOTE]
I inserted the following command:
[QUOTE]if [ “$osid” == “1” ]
then
echo " * Fix Windows Xp Mbr:“;
echo
ms-sys -m /dev/sda
echo
echo " * Restore Flag Boot:”;
sfdisk -A1 /dev/sda
fi[/QUOTE]
As you can see, I tested it only in Windows Xp with a multipartition disk image.
I hope could be useful,
menteora
[QUOTE]If you mean restore of the image, it is located at bin/fog inside of init [/QUOTE]
thanks, that’s what I meant.
[QUOTE]Any chance you can share your init.gz fix? No matter what I do to my windows 7 images, I always have to go repair them after I deploy.
[/QUOTE]
Of course, I will share it when I will implement it in bin/fog file
Hi to all,
I modified the init.gz file system to fix automatically the mbr with ms-sys.
Where is the script that does the repair of the image?
I want to put my code at the end of the script file.
thanks,
menteora