WinPE: Zweite Festplatte einbinden

Moderator: jknoth

Post Reply
André Schüttel
Posts: 276
Joined: 08. Jul 2009, 13:37
Location: Leipzig
Contact:

WinPE: Zweite Festplatte einbinden

Post by André Schüttel » 12. Jan 2021, 14:17

Guten Tag,

erstmal vielen Dank, dass es nun möglich ist, eine zweite Platte mit einzubeziehen. Das i-Tüpfelchen wäre noch das Setzen der Profil-Partiton wie bei EPE.

Nun habe ich allerdings das Problem, dass die zweite Platte doch nicht mit beachtet wird.

Ich habe dazu eine Variablen-Konfiguration mit folgenden Werten erstellt:
  • SizeSystemPartition=100
  • SizeDataPartition=0
  • InterpretSizeInputAsPercentage=1
  • MinimumSystemPartitionSizeInGB=120
  • SizeWinREPartitionInMB=300
  • PreferFastDisk=1
  • SizeEfiPartitionInMB=100
  • SizeMsrPartitionInMB=128
  • PreserveDataPartition=0
  • ConfigurationFileForAddditionalDisk=ZweitePlatte.json
Die json-Datei liegt unter \OsPackages\DiskConfigurations mit folgendem Inhalt:

Code: Select all

{
  "Disks": [
    {
      "Comment_Disks": "----------- 1. Additional Disk -----------",

      "Comment_PartitionSizeAsPercentage": [
        "PartitionSizeAsPercentage specifies if the partition size values should be interpreted as percentage values or GB values:",
        "- true: Interprets the partition size values as percent values",
        "- false: Interprets the partition size values as GB values"
      ],
      "PartitionSizeAsPercentage": true,

      "Comment_PreserveMode": [
        "The PreserveMode value specifies the handling of already existing partitions:",
        "- 0: All partitions will always be removed and recreated",
        "- 1: The partition will be keeped if it was made by empirum (or will be created if not exists).",
        "     Partition sizes and labels must match the configuration to be retained."
      ],
      "PreserveMode": 0,

      "Comment_Partitions": "The list of all partitions of the first disk",
      "Partitions": 
        {
          "Comment_Partitions": "----------- 1. Partition -----------",

          "Comment_PartitionSize": "Partition size in GB value or percentage",
          "PartitionSize": 100,
          "Comment_PartitionLabel": "Label of the partition",
          "PartitionLabel": "DATEN"
        }
    }
  ]
}
Die erste Platte wird entsprechend erstellt, nur die zweite eben nicht.

Wahrscheinlich ist es wieder nur eine Kleinigkeit, aber ich komme im Moment nicht drauf.
EMPIRUM v21.0.3; RemoteControl (2nd NIC); ESM v12.0.1.1174; SQL Server 2014 Std; Windows Server 2016 Std

User avatar
Joachim Bienwald
Posts: 68
Joined: 13. Feb 2018, 20:13
Contact:

Re: WinPE: Zweite Festplatte einbinden

Post by Joachim Bienwald » 12. Jan 2021, 16:12

Hallo André Schüttel,

wahrscheinlich geben die Log-Dateien im WinPEStatus Verzeichnis Informationen darüber.
DiskPartitioning sollte Auskunft geben, ob die Json Datei gefunden wurde und ob sie auch ohne Probleme eingelesen werden konnte.

Gruß
Joachim

User avatar
Joachim Bienwald
Posts: 68
Joined: 13. Feb 2018, 20:13
Contact:

Re: WinPE: Zweite Festplatte einbinden

Post by Joachim Bienwald » 12. Jan 2021, 16:17

Hallo André Schüttel,

ich sehe allerdings auch gerade einen Fehler mit der Klammerrung in der Datei:
Bei den Partitions fehlt die eckige Klammer.

"Partitions": [
{
"Comment_Partitions": "----------- 1. Partition -----------",

"Comment_PartitionSize": "Partition size in GB value or percentage",
"PartitionSize": 100,
"Comment_PartitionLabel": "Label of the partition",
"PartitionLabel": "DATEN"
}
]

Gruß
Joachim

André Schüttel
Posts: 276
Joined: 08. Jul 2009, 13:37
Location: Leipzig
Contact:

Re: WinPE: Zweite Festplatte einbinden

Post by André Schüttel » 18. Jan 2021, 09:40

Die Klammern haben leider nichts gebracht.

Ich habe nochmal von vorne angefangen, um auszuschließen, dass ich hier was falsch mache.

Dazu habe ich das Template zugwiesen und es werden auf der zweiten Platte die beiden Partitionen angelegt. Also funktioniert es schon mal grundsätzlich.

Dann habe ich wieder nur die erste Partition eingetragen und auf die Klammern geachtet - keine zweite Platte.

Dann habe ich die zweite Partition mit Nullwerten dazugenommen - Zweite Platte mit einer Partition, aber ohne Datenträgerbezeichnung.

Jetzt habe ich die Datenträgerbezeichnung in den Eintrag der zweiten Partition hinzugefügt - Zweite Platte mit einer Partition und Datenträgerbezeichnung, so wie ich es haben möchte.

Die json-Datei sieht jetzt so aus:
{
"Disks":
[
{
"Comment_Disks": "----------- 1. Additional Disk -----------",

"Comment_PartitionSizeAsPercentage":
[
"PartitionSizeAsPercentage specifies if the partition size values should be interpreted as percentage values or GB values:",
"- true: Interprets the partition size values as percent values",
"- false: Interprets the partition size values as GB values"
],
"PartitionSizeAsPercentage": true,

"Comment_PreserveMode":
[
"The PreserveMode value specifies the handling of already existing partitions:",
"- 0: All partitions will always be removed and recreated",
"- 1: The partition will be keeped if it was made by empirum (or will be created if not exists).",
" Partition sizes and labels must match the configuration to be retained."
],
"PreserveMode": 0,

"Comment_Partitions": "The list of all partitions of the first disk",
"Partitions": [
{
"Comment_Partitions": "----------- 1. Partition -----------",

"Comment_PartitionSize": "Partition size in GB value or percentage",
"PartitionSize": 100,
"Comment_PartitionLabel": "Label of the partition",
"PartitionLabel": ""
},
{
"Comment_Partitions": "----------- 2. Partition -----------",

"PartitionSize": 0,
"PartitionLabel": "DATEN"
}
]
}
]
}
EMPIRUM v21.0.3; RemoteControl (2nd NIC); ESM v12.0.1.1174; SQL Server 2014 Std; Windows Server 2016 Std

Post Reply

Return to “OS Installer”

Who is online

Users browsing this forum: No registered users and 5 guests