disk partition question

M

mike-ca

i want to install an embedded image(image.sdi 650MB) to a 20G disk only
want create one partition on that disk with logic letter c

i tried
diskpart
select disk 0
clean
create partition primary
assign letter=c
select partition 1
active
exit
format c: /fs:ntfs /q
sdimgr image.sdi /writepart:c: /yes

after it is booted, it only created a C drive with all the copied
file from image.sdi, however the size of C drive is only 650MB not
20GB. is there a way i can make C drive size to be 20 GB.

thanks
 
A

Adora Belle Dearheart

mike-ca said:
i want to install an embedded image(image.sdi 650MB) to a 20G disk only
want create one partition on that disk with logic letter c

i tried



after it is booted, it only created a C drive with all the copied
file from image.sdi, however the size of C drive is only 650MB not
20GB. is there a way i can make C drive size to be 20 GB.

thanks
Personally, I use a similar system which instead of copying from an .sdi
file - which is why the partition is 650MB, as that's the size of the
image - I use xcopy to grab the image from a network drive.
 
J

Jason

I've ran into the same issue, where my SDI image was only 1gig in size and
even if I used diskpart to create a partition of the full size of the drive,
the Diskmanagment only showed 1 gig.

Remeber, you are not "installing" you SDI iamge, but writing the SDI BLOB to
the drive.

First I created a partition , ran the sdi thing, then used DISKPART to
extend that partition to the size I wanted.
Oh, I never formatted the drive. The SDI image was of type NTFS anyway.

Here is what I used. I burnt my image to a WIN PE cd/DVD rom using
oscdimg.exe
I put this in OC2.bat i386/system32

diskpart /s clean.txt
cls
cscript sdimgr.wsf TEXPe8.sdi /writedisk:0 /yes
cls
diskpart /s extend.txt

Clean.txt ....
Select Disk 0
clean
create partition primary

extend.txt....
Select Disk 0
Select Partition 1
extend disk 0

HTH
jason
 
M

mike-ca

Jason,

thank you for your help! following your suggestion, I made it work.
however, I wasn't able to run the "sdimgr image.sdi /writedisk:0 /yes"
command

when I created the final image I used the command "sdimgr image.sdi
/readpart:c:" becuase if i use "sdimgr image.sdi /readdisk:0 /yes", it
will make image.sdi as big as the disk 0 which is about 20GB. the
image created using /readpart option cannot be used by /writedisk
option later since it dosn't have a DISK BLOB. here is what i did
diskpart
select disk 0
clean
create partition primary size=650
assign letter=c
exit
sdimgr image.sdi /writepart:c: ....
select disk 0
select partition 1
active
extend disk 0

i think the key is using 'extend disk 0" as you pointed it out. i only
tried this on a Virtual PC, but i assume it will work on a real system
as well. oh, in case if you want to use Virtual PC, you have to get
"device.pmn" from Virtual PC by running tap.exe on Virtual PC itself,
not on Host, otherwise the image will not boot.

once again, thanks for your useful tip.
 
M

mike-ca

thanks Jason for the tips. i got it work yesterday. however, i wasn't
able to use the command "sdimgr image.sdi /writedisk:0"

when i created post-FBA image(image.sdi), i used "sdimgr image.sdi
/readpart:c: /yes", since using "sdimgr image.sdi /readdisk:0" will
creat a image of size 20GB instead of 650MB. however the image created
using "readpart" option will not work with the "writedisk" option
latter on since image.sdi doesn't have a DISK BOLB". here is what i
did
diskpart
select disk 0
create partition primary=650
assign letter=c
exit
sdimgr image.sdi /writepart:c: /yes .....
diskpart
select disk 0
select partition 1
active
extend disk 0

i think the key is "extend disk 0", i tried it on a virtual pc, works
fine. oh, in case your wants to run xpe inside of virtual pc. you
have to run tap.exe on virtual pc not the host machine, otherwise, it
will not boot.

once again, thanks for the helpful tip!
 
M

mike-ca

thanks Jason for the tips. i got it work yesterday. however, i wasn't
able to use the command "sdimgr image.sdi /writedisk:0"

when i created post-FBA image(image.sdi), i used "sdimgr image.sdi
/readpart:c: /yes", since using "sdimgr image.sdi /readdisk:0" will
creat a image of size 20GB instead of 650MB. however the image created
using "readpart" option will not work with the "writedisk" option
latter on since image.sdi doesn't have a DISK BOLB". here is what i
did
diskpart
select disk 0
create partition primary=650
assign letter=c
exit
sdimgr image.sdi /writepart:c: /yes .....
diskpart
select disk 0
select partition 1
active
extend disk 0

i think the key is "extend disk 0", i tried it on a virtual pc, works
fine. oh, in case your wants to run xpe inside of virtual pc. you
have to run tap.exe on virtual pc not the host machine, otherwise, it
will not boot.

once again, thanks for the helpful tip!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top