Script SDI

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

When I use the SDI manager to create sdi files, I step through the exact
same process everytime, and I was wondering how do I script that out.

Here is what I do,

I always create imageXXX.sdi in c:\sdi files
The size is always 2100 megs
then I go into diskmanagement, format the drive and mark it as active, which
is always mapped as E
then copy my image from the D drive into the SDI file, E drive,
then unmount it.

Any ideas?
Thanks
Jason
 
If you're using sdiloader to create a file-backed virtual disk drive, you
don't really need that. Instead use SDIMgr.wsf to do all SDI-related tasks.
Create a real partition on your disk drive, say drive D, copy the XPe image
onto it and then run a command like the following to capture the partition
(or a whole disk drive) into an sdi file:
Cscript SDIMgr.wsf imageXXX.sdi /new /readpart:D:

You can call SDIMgr from your script.

As for the disk drive preparation work (partitioning, formatting, etc), use
diskpart.exe, which is a command-line equivalent of the Disk Management
snap-in. Use it with /S option and provide a text file that includes all
the actions you need to perform on the target drive.

You can then use SDIMgr again to unpack the sdi file onto the target
partition or drive:
Cscript SDIMgr.wsf imageXXX.sdi /writepart:C:

KS

This posting is provided "AS IS" with no warranties and confers no rights.
 
How do I create a real partition on a drive that is already in use, and the
primary is the full size? Do I need to use partition magic?
 
I haven't used partition magic. You could just add another disk drive to
your dev machine, IDE or USB if it's a laptop.

KS

This posting is provided "AS IS" with no warranties and confers no rights.
 
Back
Top