How to edit unattend.xml file in an image without deploying step-by-step.
-
I made an error(Time zone) in my unattend.xml file, and I would like to correct it. I know exactly what I have to change, I just need to get into the image and modify the unattend to fix this. I read in another post in forum that it possible by deploying the image with Debug mode. I know Tom Elliott already write some information on that, but i’m quite new with that, linux; I know how to move, create, delete, edit and few more, still learning. Can somebody help me please: how to do it
“You can mount the drive in linux. So write the image to the disk, mount the sys partition to /ntfs Goto:
Code:
[FONT=Consolas]/ntfs/Windows/System32/Sysprep[/FONT]” that is the quote from previous post from Tom Elliott;step-by-step, please. Do I have to install a Linux OS into another machine? or it can be done on Fog server, if so how? Just do not want to re-install Windows7 from the begin. I know i should do it onto virtual environment for Universal images, but we have certain models of PCs and Laptops, with their own drivers. That why I would like to know how to change the unattend.xml file on all of my images. In the same post there are few steps but I do not understand where to start from. Help it much appreciated.
Searched many forums, but this one it the most useful with more information. Please do not judge me, just want to learn more advanced Linux.
Thanks.
Corneliu -
There’s a lot of steps that trying to make a “Step by step” guide for you is not the most feasible of things.
You should not have to load the machine with Linux OS or have to recreate the image from the beginning.
What version of FOG are you running? You can quote my information all day long, but what are you missing from the information that I’m giving out?
Are you attempting to use post download scripts? If you know what you need to do, you can use Postdownload scripts to perform the tasks for you.
You can use the following links to help you with the understanding.
-
[quote=“Tom Elliott, post: 40381, member: 7271”]There’s a lot of steps that trying to make a “Step by step” guide for you is not the most feasible of things.
You should not have to load the machine with Linux OS or have to recreate the image from the beginning.
What version of FOG are you running? You can quote my information all day long, but what are you missing from the information that I’m giving out?
Are you attempting to use post download scripts? If you know what you need to do, you can use Postdownload scripts to perform the tasks for you.
You can use the following links to help you with the understanding.
Hi Tom,
Thanks for the quick reply. I’m using the latest version of Fog 1.2.0. The quotation was just for that to show from what post I was reading. No i’m not trying to use post downloads scripts. I have the unattend file into my images already, just want to modify it to be corrected. I saw in your previous post are steps of mounting ntfs; starting from Download-Debug. Sorry I’ll quote your post again, you will understand what about I’m speaking, hope:" I know you don’t want to deploy the image, but set the task up as Download - Debug. This way you get Command line after the imaging is complete.
Once the you’re back at the command prompt, you can mount the /dev/sda2 partition to a folder.
So you may have to make the /ntfs directory, though not so if you have Hostname_Early enabled.
Code:
mkdir /ntfs
Then mount the System partition:
Code:
ntfs-3g -o force,rw /dev/sda2 /ntfs
Then cd into the location of the unattend file.Code:
cd /ntfs/Windows/System32/sysprep
or where ever it’s located.Edit the unattend file using vi, sorry I didn’t add nano or pico to the init.gz.
Code:
vi unattend.xml
After you make and save your edits, you’ll have to re-upload the task, but as long as you know it works you should be good to go.Before rebooting unmount the /ntfs directory.
[COLOR=#b3b3b3][SIZE=11px]Code:[/SIZE][/COLOR]
[FONT=Consolas]cd /[/FONT]
[FONT=Consolas]umount /ntfs[/FONT]
[FONT=Consolas]reboot "[/FONT]Can I mount the image into my Fog server, and then make the changes of the unattend file? How?
I’ve created ntfs directory onto Fog server, when i try to mount ntfs-3g… i’m getting the help about mount, or: command not found. That’s why I’ve asked how to start from the begin: should I deploy first my image to the Laptop, or how; where to mount the ntfs? Sorry for the newbie question. I’m just trying to edit my unattend file from my images.
I’ve read the post you gave me the link to, i do not know if that it what i’m looking for.
ThanksCorneliu
-
Ntfs is not done on the fog server at all which is Why I directed you to the postdownload scripts function.
While you can do all of the steps from the Client machine while in debug, you can also script it using the post download scripts to perform the changes you need.