I have two hard drives. First hard drive Samsung HD0, the second Western DIGITAL HD1.Windows loaded from the first hard drive Samsung HD0, that is, the loader bootmgr on HD0. Kernel Windows 7 on Western DIGITAL HD1.If I run a bootfile to launch IFD of Western DIGITAL HD1, get lost MBR partition table on the disk Western DIGITAL HD1. Because the priority HDD in the BIOS - Samsung.

How to beat this bug?Is it possible to use script Windows version TBOSDTS for determining the priority HDD in BIOS and validation correct run bootfile on priority HDD? How Use script diskpart sel disk=system possible, but not desirable ...Thank you.

I have two hard drives. First hard drive Samsung HD0, the second Western
DIGITAL HD1.
Windows loaded from the first hard drive Samsung HD0, that is, the loader
bootmgr on HD0. Kernel Windows 7 on Western DIGITAL HD1.
If I run a bootfile to launch IFD of Western DIGITAL HD1, get lost MBR
partition table on the disk Western DIGITAL HD1. Because the priority HDD in
the BIOS - Samsung.

How to beat this bug?
Is it possible to use script Windows version TBOSDTS for determining the
priority HDD in BIOS and validation correct run bootfile on priority HDD?
How

/noui -- [optional] This switch prevents the message box
from
showing if a problem occurs. The errorlevel
returned
by BOOTFILE can be used in a script to detect a
problem.

/ignoresig -- [optional] This switch allows the saved MBR to be
restored even if the NT disk signatures do not
match.

/verbose -- [optional] Outputs additional information

This will not help.

I asked a simple question:
How to check with commands TBOSDTS drive HDD priority (HD0 or HD1 or ...)
.. Nothing more.
Because the bootfile is not fully thought out, I want to do a scan self.
Thank you.

for DOS/Linux you just run bootfile and it assumes /restore (switch not
available) and scans all drives to restore.

You can get the BIOS drive number as you mentioned, but if you're running
from a boot disk, the BIOS order may not match the boot order because they
don't change the order of the drives until you boot the hard drive. If you
had a simple setup you could say the drive with the active partition was the
boot drive, but it's common for multiple drives to have an active partition.

But as far as bootfile, you put the files on a drive letter that exists on
the boot drive.

"ostapvoip" wrote in message news:4653@public.tbosdt...

?ou wrote:
As I mentioned before, you can run bootfile /restore from Windows to reset
the MBR on the other drive - it scans all drives.

??. Only problem is that it does not work out Linux and DOS. They do not
have that option. Only I didn't loaded Windows.
Therefore will

Maybe you do not understand my problem?I am wondering how to get the number priority HDD from Windows (before running bootfile+image) without using diskpart (I do not like diskpart).If properly understood - with Windows version TBOSDT can not get the number priority disk was last loaded Windows. Yes?

I want to write a script that warns the user that bootfile does not run on the drive. And stop c:\bootfile.exe c:\my.img.

Unfortunately windows doesn't seem to report the bios drive number of a
particular drive. You'd have to find a registry entry that tells you which
drive is which or look for an active SRP partition, or parse the BCD. If
there was a drive letter available on the boot drive (which windows calls
the system drive or system volume) then you could use gethdinfo after
enabling drive letters to find the drive with that drive letter. Windows
reports the OS drive letter (which windows calls the boot drive or boot
volume). Not to be confused with %SystemDrive% which is the boot volume.
Using a bunch of logic, you may be able to figure it out across different
systems (looking for the active partitions, comparing with drive letters,
etc.. - but it is possible that the main boot drive doesn't have any drive
letters available on it).

"ostapvoip" wrote in message news:4655@public.tbosdt...

Maybe you do not understand my problem?
I am wondering how to get the number priority HDD from Windows (before
running bootfile+image) without using diskpart (I do not like diskpart).
If properly understood - with Windows version TBOSDT can not get the number
priority disk was last loaded Windows. Yes?

I want to write a script that warns the user that bootfile does not run on
the drive.
And stop c:\bootfile.exe c:\my.img.