March 26, 200818 yr Currently I am evaluating the use of WDS to deploy images that contain a recovery partition. ATM I am imaging a test machine from which I will be testing out capturing methods, so I wrote up this quick script (yes literally wrote it on a pad of paper) for how I can structure my diskpart scripting during the deploy phase. Please review the following and LMK if you see anything I should revise or be aware of. The Volume IDs are the real ones I need to use.Pre-image Diskpart script:select disk 0cleancreate part pri size='62220' id='0x07'select part 1activeassign letter='c:'format fs='ntfs' quickcreate part ext size='14096' id='0x12'select part 2activeassign letter=d:'format fs='fat32' quickPost-image diskpart script:select disk 0select part 2activeattributes set hiddenattributes set nodefaultdriveletter
March 26, 200818 yr I don't see an issue with it. I am not quite sure why you are using the id=byte/guid. Please explain.I assume you are doing desktops so you don't know need dynamically find the primary disk ID.
March 27, 200818 yr Author Because we cannot use RE for XP recovery options, we use another method. This changes the drive ID to x12 instead of x07 so if we are to expect it to match previous computers we shipped out, we need to duplicate it as best as possible. We can already see the current ID with Ghost which shows the C drive to be 7 and the recovery partition to be 12.
March 28, 200818 yr Author Alright I am manually testing this script and there appear to be some issues with it. 1. It won't let me assign the ID byte when creating the partition. I will instead set the partition ID during the cleanup phase by using 'attributes set id=0x12' instead.2. When you create an extended partition, the default numbering for it is 0 (zero).3. I cannot make part 0 active because it says it is not a data volume.HELP: I need to insert the following after creating the extended partition?create partition extended [offset=n] [noerr]I will try it out, or is it recommended to create the logical partition instead of the extended one?Also, obviously my cleanup script needs to be changed from selecting part 2 to part 0.
March 28, 200818 yr Author New Diskpart script (revised)select disk 0cleancreate part pri size=62220select part 1activeassign letter=c:format fs=ntfs quickcreate part ext size=14096select part 0create part log size=14096select part 2assign letter=d:format fs=fat32 quickexitRevised Cleanup scriptselect disk 0select part 1attributes vol set hiddenattributes vol set nodefaultdriveletterset id=12I Was about to attempt a second time imaging but I somehow broke my WIM... looks like I am SOL for the moment. I will get to do more work on it next week when I can do a recapture again.Anyways, I found my ID changing cmd in another thread I made someplace on this forum:http://www.msfn.org/board/Imagex-question-t103807.html
April 4, 200818 yr Author So far this isn't cloning properly because I am still doing something wrong. I just dropped the source image again (with ghost) and checked everything with diskpart. The second partition is listed as OEM type, but I can't find anything online to say how to create an OEM part with diskpart. List part results:PART # - TYPE - SIZE - OFFSETPart 1 - Primary - 61GB - 32KBPart 2 - OEM - 14GB - 61GBList vol results:VOL# - Ltr - FS - TYPE - SIZE - Status - Info0 - C - NTFS - Partition - 61GB - Healthy - 1 - - FAT32 - Partition - 14GB - Healthy - hiddenDetail Part 1Type: 07Hidden: noActive: YesDetail Part 2Type: 12Hidden: yesActive: noWhere can I find info to create a partition with the OEM type? Using the Extended and Logical partitions aren't going to work after all.
April 5, 200818 yr How about this?SELECT DISK 0CLEANCREATE PART PRI SIZE=14096SELECT PART 1ASSIGN LETTER=D:FORMAT FS=FAT32 QUICKCREATE PART PRI SIZE=62220ACTIVEASSIGN LETTER=C:FORMAT FS=NTFS QUICKEXITPost:SELECT DISK 0SELECT PART 1ATTRIBUTES VOL SET HIDDENATTRIBUTES VOL SET NODEFAULTDRIVELETTERSET ID=27
May 14, 200818 yr Author OK thanks if I didn't say it before. I was able to faithfully recreate the recovery partition properly using imagex and diskpart. Now my situation is that I need to be able to boot into the recovery partition. It involves using a program called "MBRInst" by a company called XSS. I looked on the recovery program system builder CD that we are given but it does not have this program. It appears that the company is using a library that they interface from their application to write the bootcode into the MBR. I've already talked to our rep and he basically said that the developers won't help anyone unless the corporate contract is over $1mil/year, which means we're not one of them.... And they would be the ones I could get this program from. But it also seems that this mbrinst.exe program is also used by HP and should be in their drive image. Is there a way someone could send me that program? PM me if interested or lock this thread if inappropriate.Thanks. Edited May 14, 200818 yr by Tripredacus
Create an account or sign in to comment