imaging a primary internal drive when image is on a secondary internal drive
search cancel

imaging a primary internal drive when image is on a secondary internal drive

book

Article ID: 263551

calendar_today

Updated On:

Products

Ghost Solution Suite

Issue/Introduction

Ghost cannot see the image on the internal storage device to image the primary windows drive

Environment

Release : 3.x

Cause

The image source storage device needs to be mounted first for ghost to see the image to be deployed onto the primary windows drive

Resolution

When imaging a computer the ghost command parameters would be: -CLONE,MODE=RESTORE,SRC=%IMAGE_FILENAME%,DST=1 -sure

where SRC=<image source drive> and DST=< drive number to image>

a great way to identify the SRC and DST is by using DISKPART while in the automation environment.

to get the disk number enter: list disk

this will show disks 0 thru {n}

to get the volume the image is on enter: 

select disk {N} 

disk detail

For example: 

X:\Diskpart (Press Enter)

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
* Disk 0    Offline          476 GB      0 B        *                  ( Destination drive )

  Disk 1    Offline           250 GB      0 B       *                  ( source of image drive )

DISKPART> select disk 1

DISKPART> disk detail

PC SN730 NVMe WDC 250GB
Disk ID: {B2D256AD-6327-4A24-ADCD-7AF8A97BFC53}
Type   : SCSI
Status : Offline
Path   : 0
Target : 0
LUN ID : 0
Location Path : PCIROOT(0)#PCI(1D04)#PCI(0000)#SCSI(P00T00L00)
Current Read-only State : No
Read-only  : No
Boot Disk  : No
Pagefile Disk  : No
Hibernation File Disk  : No
Crashdump Disk  : No
Clustered Disk  : No

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     D   Storage      NTFS   Partition    250 GB  Healthy    System

NOTE: Here D:  is the volume the image is located so we need to mount this to say  "H:\My Image Drive"

DISKPART> select volume 0
volume 0 is the selected volume.

DISKPART>assign mount="H:\My Image Drive"
Diskpart successfully assigned the drive letter or mount point.

DISKPART>exit

x:\ H:

H:\>cd My Mounted Drive

H:\My Mounted Drive> 

in this directory is the path to the gho file

so the result will be: -CLONE,MODE=RESTORE,SRC="H:\My Image Drive\path\to\myimage.gho",DST=1 -sure

NOTE: where DST=1 is Drive 0 in Diskpart