FOG and SSD's
-
@julien-asv I would first start by upgrading to FOG 1.5.9 then switch to the dev branch that addresses an issue with Windows 10 20H1 and later where windows changed the disk structure a bit.
You should have installed FOG using the
git
method. Depending on who’s instructions you followed, there should be a fogproject folder in /opt or /root. Change into that directory and issue the following commands.# assuming the fogproject file is in /root make your adjustments as necessary sudo -i cd /root/fogproject git pull git checkout master git pull
At this point you just need to reinstall FOG. The Fog installer will remember the settings you made when you first installed FOG. So change into the installer directory and install FOG. Remember there are 3 steps. 1) fog server command line. 2) web ui actions 3) complete the server command line steps.
cd bin ./installfog.sh
Once the installer is complete then confirm you are on 1.5.9. Then now lets upgrade to 1.5.9.110 or later.
sudo -i cd /root/fogproject git checkout dev-branch git pull cd bin ./installfog.sh
Follow the same process as before. When the installation is done confirm that you are on 1.5.9.110 or later.
Now reboot the fog server. Finally recapture your source image just to make sure you have all of the fixes in your captured image.
In 20H1 Microsoft moved the recovery partition to the end of the disk and marked it not movable. This caused FOG a problem when it needed to deploy a captured image from a source disk where the source disk was larger than the destination disk.
-
Are you using the appropriate sysprep switches when preparing the machine to be captured? I never capture a physical machine, but I always use /generalize /shutdown /oobe and /unattend:unattend.xml when capturing my VM builds which are then deployed to laptops and desktops.
-
Hi,
I don’t have any fogproject folder, I think I made a manual install of FOG, in my documentation I wrote 2 possibilities, I don’t remember the one I took.copy fog folder to \home sudo -I, cd fog/bin ./installfog.sh
Or
sudo –i apt-get install git cd /opt git clone https://github.com/fogproject/fogproject.git fog_stable/ cd fog_stable/bin ./installfog.sh
I have nothing in root folder, i have a fogproject folder in home with one file on it (warnfogaccount.sh).
But in opt I have a fog and a fog_stable folder.
Do I have to follow your steps but in /opt/fog_stable ?@notverypunny
Yes i always use a proper sysprep before capturing. That’s the case of my WD2500AAKX image and others, but not the next tests I made in my previous exemples, I needed to run them quickly. -
@julien-asv How about running
find / -name fogproject
to see where your fog installer directory is. -
I searched with WinSCP, command line give me the same result, in home directory with 1 file.
-
@julien-asv OK lets assume you installed fog using a tarball (not recommended) but works fine. It will work it just makes upgrading a bit harder.
First lets make sure there is the answer file where it should be. This answer file contains the results of the questions asked when you first installed FOG. To get a directory of where the hidden answer file is key in
ls -la /opt/fog
The answer file should be.fogsettings
(yes with a leading period. If that is there then lets use the git method to get the instillation files.
ref: https://docs.fogproject.org/en/latest/installation/install_fog_server.html# This will make you root if you are not already logged in as root sudo su - apt-get -y install git cd /root git clone https://github.com/FOGProject/fogproject.git cd /root/fogproject/bin ./installfog.sh
This should bring you up to version 1.5.9. Know that this is a three step process. You install the first part using the linux cli, then go to the web ui to run the second part, then back to the linux cli to finish the install. You must do all three parts.
Now lets take you to 1.5.9.110+
cd /root/fogproject git checkout dev-branch git pull cd bin ./installfog.sh
Again there will be a three part install here.
-
I did the first step, but when the installation ask me to go to http://ip/fog/management, i don’t have any button to update database, i just have the login page of previous installation.
edit :
https://ibb.co/BCPqDD5 -
@julien-asv said in FOG and SSD's:
did the first step, but when the installation ask me to go to http://ip/fog/management, i don’t have any button to update database, i just have the login page of previous installation.
That’s OK, just hit ENTER for the installer to proceed if you don’t see the schema updater.
-
@julien-asv As Sebastian says to just hit enter to continue. No all FOG updates require database design updates. But you need to check on every update to fog.
-
Ok thank you, it’s look like it’s have been working, now on information page, it’s says :
Your version of FOG is up to date. You're running the latest dev-branch version: 1.5.9.114
That mean now i can deploy an image of a 250Gb to a 240gb ?
-
@julien-asv said in FOG and SSD's:
That mean now i can deploy an image of a 250Gb to a 240gb ?
Can’t promise you it works in all cases. But the issue that came with MS partition layout changes is fixed in your setup now and you should be able to do what you want.
-
OK thanks a lot. I will start creating my images at the beginning of January, I will tell you if I gets stuck.
-
@Julien-asv Well I suggest you do some testing before January because if there is still something we need to fix then…