• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to edit unattend.xml file in an image without deploying step-by-step.

    Scheduled Pinned Locked Moved
    Windows Problems
    2
    4
    4.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Corneliu Mahu
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        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.

        [url]http://fogproject.org/forum/threads/utilizing-postscripts-rename-joindomain-drivers-snapins.12175/[/url]

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • C
          Corneliu Mahu
          last edited by

          [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.

          [url]http://fogproject.org/forum/threads/utilizing-postscripts-rename-joindomain-drivers-snapins.12175/[/url][/quote]

          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.
          Thanks

          Corneliu

          1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott
            last edited by

            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.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post

            207

            Online

            12.0k

            Users

            17.3k

            Topics

            155.2k

            Posts
            Copyright © 2012-2024 FOG Project