Windows 11 | 65x HP Z2 Tower G1i | UPDATE -
-
@Tom-Elliott
Of course, if I change the image, for example, I have to use groups as well. Otherwise, I’d have to change the image on every PC by hand.
In that case, I think it would be helpful if you could protect the “Host Primary Disk” entry on the host so that this information isn’t lost. -
@kratkale I’m unsure I understand?
If the Group Primary Disk is empty, nothing should be changing on the hosts within the groups.
Just update the group’s Image, and save.
-
@kratkale
as a feature request I would suggest to have the possibility to fix the host primary disk like the “protected” in Image General - just to be fail safe. -
@Tom-Elliott
I can confirm, that it works to insert the serial number in Host Management | Host gernal | Host Primary Disk. You can take the value you get from booting with a clonzilla stick (Switch to the second console) and use lsblk -pdno SERIAL,SIZE


I did a test and used the wrong number in Host Primary Disk and start to clone:

So it seems to work.
-
@Tom-Elliott
Tom Thank you for your great support. -
@kratkale You don’t need the clonezilla to see this information though admittedly it’s not exactly straight forward.
You can load FOG into debug mode and it will drop you to a shell where you can then run the lsblk command as well.
That said, if booting to clonezilla isn’t that difficult a thing, then it’s all good either way.
-
@Tom-Elliott
Here’s something else funny—the serial numbers aren’t unique! I have a duplicate…
Two differnt PC’s CAD009 and CAD023


-
@Tom-Elliott
Today again the Serial numbers of the nvme are lost in the FOG Database - I don’t know why …
Thats why I again cloned the file system to the wrong nvme
-
@Tom-Elliott
to make a backup I use now sql in bashroot@fog:~# mysql -u root -N -B -e “USE fog; SELECT CONCAT(‘UPDATE hosts SET hostDevice = ‘’’, hostDevice, ‘’’ WHERE hostID = ', hostID, ‘;’)FROM hosts;” > restore_hostdevice.sql
and restore with
root@fog:~# mysql -u root fog < restore_hostdevice.sql -
@Tom-Elliott
Again Serial Numbers lost: checking with:mysql -u root fog -e “SELECT hostName FROM hosts WHERE hostDevice IS NULL OR hostDevice = ‘’;”
root@fog:~/NVME_Problem# ./anzeigen
±---------+
| hostName |
±---------+
| PC116CAD |
| PC118CAD |
| PC121CAD |
| PC110CAD |
| PC112CAD |
| PC034CAD |
| PC026CAD |
| PC015CAD |
| PC016CAD |
| pc101cad |
| pc008cad |
±---------+
root@fog:~/NVME_Problem#I’ve no idea what happend.