1) Install UFD and SATA hard disk into system with power off.
2) Power on and boot PC to BIOS boot drive menu with F12, select UFD with WinPE 2.0 (both SATA drive and UFD are considerd hard drives by the BIOS).
3) Use diskpart to prepare hard disk:
diskpart /s d:\script.txt
select disk 0
clean
create partition primary
select partition 1
active
exit
4) format c: /fs:ntfs /y /v:harddisk
5) d:\imagex.exe /apply d:\filename.wim 1 c:
I run into a problem when using a brand new harddisk compared to a previously initialized harddisk. Diskpart sees a previously initialized harddisk as "drive 0" and the UFD is "drive 1". Diskpart sees only the UFD as a "drive 0" when a brand new empty harddisk is installed. As you can imagine this messes up my diskpart script because it wipes my UFD clean when a new hard disk is installed.
Can I get diskpart to look at both drive states the same way without externally initializing each harddisk? Ideally my scripts can "autosense" the harddisk in both drive conditions and work properly accordingly. Any ideas?
Regards,
John
This post has been edited by jmueske: 21 May 2008 - 02:54 PM



Help
Back to top









