[quote=“Tom Elliott, post: 20654, member: 7271”]I’d recommend, performing upload - debug mode in your case.
I’m assuming you’re running FOG 0.32, in which case, the upload commands for your system would be:
Assuming your doing a multi-partition image:
[code]mkdir /images
mount -o nolock,proto=tcp <IP.OF.FOG.SERVER>:/images/dev/ /images
mkdir /images/{temporarynameofimageupload}
mkfifo /tmp/pigz1
pigz -p 1 -3 < /tmp/pigz1 > /images/dev/{temporarynameofimageupload}/sys.img.000 &
partimage save /dev/sda2 /tmp/pigz1 -V9900000000 -z0 -o -d -f3 -b 2>/tmp/status.fog[/code]
Download, you should be set. Though I’d recommend, performing the testdisk MBR fix and then reupload the image to the server using regular means.
Once you’re complete with the image upload process, log in to your FOG Server as root and type into a terminal window.:
[code]mv /images/dev/{temprorarynameofimageupload} /images/{IMAGENAME}[/code][/quote]
Thanks a lot Tom for these infos !
Right : FOG 0.32
The upload proccess went ok, except a little code error about image location:
[CODE]pigz -p 1 -3 < /tmp/pigz1 > /images/dev/{temporarynameofimageupload}/sys.img.000 & partimage save /dev/sda2 /tmp/pigz1 -V9900000000 -z0 -o -d -f3 -b 2>/tmp/status.fog[/CODE]
that has to be:
[CODE]pigz -p 1 -3 < /tmp/pigz1 > /images/{temporarynameofimageupload}/sys.img.000 & partimage save /dev/sda2 /tmp/pigz1 -V9900000000 -z0 -o -d -f3 -b 2>/tmp/status.fog[/CODE]
Then I moved image from /images/dev to /images/pc1sda2 and chmod -R 777 /images/pc1sda2.
FOG did not saw the image, so I created it with ‘multi-partition’ type.
Assigned pc1sda2 to a registered PC in FOG and tried to deploy image, I got : “image store corrupted, unable to load MBR”
Then I assigned the ‘Single partition’ type to image and tried to Deploy-debug, FOG told :
[QUOTE]
osid=5
osname=Windows 7
mbrfile=/usr/share/fog/mbr/win7.mbr
storage=10.10.20.2:/images/
img=pc1sda2
part=/dev/sda1
[/QUOTE]
/dev/sda1 ?? I have imaged /dev/sda2 …
Thinking I have to tell FOG how to proceed, tried :
[CODE]mkdir /images
mount -o nolock,proto=tcp 10.10.20.2:/images/ /images
mkfifo /tmp/pigz1
unpigz -p 1 -3 < /images/pc1sda2/sys.img.000 > /tmp/pigz1 & partimage restore /dev/sda2 /tmp/pigz1 2>/tmp/status.fog[/CODE]
but last line gives :
[QUOTE]can’t read the following volume file : /tmp/pigz1[/QUOTE]
It seems that unpigz is not installed in the system.
Could you please assist a bit more so I could try to restore this imaged /dev/sda2 to another computer ?
Thanks in advance for your time.
Nicolas