Partitionieren mit Empirum
Moderator: jknoth
Partitionieren mit Empirum
Hallo zusammen!
Ich möchte gerne definieren können, ob ich die D: Platte formatieren bzw. behalten will.
Ich habe in der Knowledge Base Artikel dazu gefunden, leider sind mir die Anleitungen dazu nicht sehr hilfreich.
Kann mir dies eventuell einer von euch kurz zusammen schreiben, was ich jetzt wirklich tun muss?
Danke!
Ich möchte gerne definieren können, ob ich die D: Platte formatieren bzw. behalten will.
Ich habe in der Knowledge Base Artikel dazu gefunden, leider sind mir die Anleitungen dazu nicht sehr hilfreich.
Kann mir dies eventuell einer von euch kurz zusammen schreiben, was ich jetzt wirklich tun muss?
Danke!
Hi,
prinzipiell 2 Möglichkeiten:
- Am einfachsten ein separates OS-Template erstellen und da die 2. Partition auf "Nicht Löschen". Dann musst du halt jeweils das richtige Template zuweisen.
- Alternativ das Ganze über ein EIS-Script und eine OS-Variable steuern.
für EPE:
- OS-Variable erstellen OS_RestageBehavior
- Scripts2\Custom\part.eis erstellen mit folgendem Inhalt:
Verhalten: Solange OS_RestageBehavior einen anderen Wert als "0" hat bleibt die 2. Partition der ersten Platte erhalten, bei "0" wird die erste Platte so behandelt wie es im OS-Template steht. Alle anderen Platten (z.B. UB-Sticks, externe Festplatten) bleiben IMMER unangetastet. Das verhindert, dass nach der Installation ein USB-Stick eines Users versehentlich gelöscht wird, weil er noch angesteckt ist.
Achtung: Der Mod kann zu Problemen bei fabrikneuen Rechnern mit Servicepartition führen. Hier muss dann einmalig "Hart" installiert werden -> OS_RestageBehavior = 0
Gruß,
Micha
prinzipiell 2 Möglichkeiten:
- Am einfachsten ein separates OS-Template erstellen und da die 2. Partition auf "Nicht Löschen". Dann musst du halt jeweils das richtige Template zuweisen.
- Alternativ das Ganze über ein EIS-Script und eine OS-Variable steuern.
für EPE:
- OS-Variable erstellen OS_RestageBehavior
- Scripts2\Custom\part.eis erstellen mit folgendem Inhalt:
;§§§ Please do not remove this line! Modifications only below this line!
READINI %RD%Os.ini OS_Variable OS_RestageBehavior OS_RestageBehavior
IF "%OS_RestageBehavior%"<>"0" THEN
;Write OS Soft Restaging Information to OS.ini
WRITEINI %RD%Os.ini Partition Exclude1PartNr 2
WRITEINI %RD%Os.ini Partition Exclude2PartNr 3
WRITEINI %RD%Os.ini Partition Exclude3PartNr 4
WRITEINI %RD%Os.ini Partition D1_Exclude1PartNr 1
WRITEINI %RD%Os.ini Partition D1_Exclude2PartNr 2
WRITEINI %RD%Os.ini Partition D1_Exclude3PartNr 3
WRITEINI %RD%Os.ini Partition D1_Exclude4PartNr 4
WRITEINI %RD%Os.ini Partition D2_Exclude1PartNr 1
WRITEINI %RD%Os.ini Partition D2_Exclude2PartNr 2
WRITEINI %RD%Os.ini Partition D2_Exclude3PartNr 3
WRITEINI %RD%Os.ini Partition D2_Exclude4PartNr 4
WRITEINI %RD%Os.ini Partition D3_Exclude1PartNr 1
WRITEINI %RD%Os.ini Partition D3_Exclude2PartNr 2
WRITEINI %RD%Os.ini Partition D3_Exclude3PartNr 3
WRITEINI %RD%Os.ini Partition D3_Exclude4PartNr 4
§ECHO_MSG="10 Soft Restaging enabled!"
GOSUB LINUX_ECHO
ELSE
WRITEINI %RD%Os.ini Partition D1_Exclude1PartNr 1
WRITEINI %RD%Os.ini Partition D1_Exclude2PartNr 2
WRITEINI %RD%Os.ini Partition D1_Exclude3PartNr 3
WRITEINI %RD%Os.ini Partition D1_Exclude4PartNr 4
WRITEINI %RD%Os.ini Partition D2_Exclude1PartNr 1
WRITEINI %RD%Os.ini Partition D2_Exclude2PartNr 2
WRITEINI %RD%Os.ini Partition D2_Exclude3PartNr 3
WRITEINI %RD%Os.ini Partition D2_Exclude4PartNr 4
WRITEINI %RD%Os.ini Partition D3_Exclude1PartNr 1
WRITEINI %RD%Os.ini Partition D3_Exclude2PartNr 2
WRITEINI %RD%Os.ini Partition D3_Exclude3PartNr 3
WRITEINI %RD%Os.ini Partition D3_Exclude4PartNr 4
§ECHO_MSG="10 Soft Restaging DISABLED! HDD1 will be overwritten!"
GOSUB LINUX_ECHO
ENDIF
Verhalten: Solange OS_RestageBehavior einen anderen Wert als "0" hat bleibt die 2. Partition der ersten Platte erhalten, bei "0" wird die erste Platte so behandelt wie es im OS-Template steht. Alle anderen Platten (z.B. UB-Sticks, externe Festplatten) bleiben IMMER unangetastet. Das verhindert, dass nach der Installation ein USB-Stick eines Users versehentlich gelöscht wird, weil er noch angesteckt ist.
Achtung: Der Mod kann zu Problemen bei fabrikneuen Rechnern mit Servicepartition führen. Hier muss dann einmalig "Hart" installiert werden -> OS_RestageBehavior = 0
Gruß,
Micha
-
- Moderator
- Posts: 7962
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Klar. Analog zu dem obigen Beispiel kann man auch eine Variable für C anlegen.
Alternativ kann Empirum das aber auch automatisch berechnen.
Beispiel für eine Aufteilung 60/40 bei HDs über 80 GB.
Darunter eine grosse Partition:
createpart.eis (wirkt z.B. bei XP - Vista nutzt eine andere Datei):
; *** Automatically change the partition sizes ***
; HAmbrosius@matrix42.de 03.06.2008
IF #disksize0 < 80000 THEN
#part1=#disksize0
#part2=0
#part3=0
#part4=0
ELSE
#part1=(#disksize0 * 6)/10
#part2=(#disksize0 - #part1)
#part3=0
#part4=0
ENDIF
§ECHO_MSG="10 Createpart.eis: DiskSize=%DiskSize0%"
GOSUB LINUX_ECHO
§ECHO_MSG="10 Createpart.eis: Part1=%part1% Part2=%Part2% Part3=%Part3%"
GOSUB LINUX_ECHO
Alternativ kann Empirum das aber auch automatisch berechnen.
Beispiel für eine Aufteilung 60/40 bei HDs über 80 GB.
Darunter eine grosse Partition:
createpart.eis (wirkt z.B. bei XP - Vista nutzt eine andere Datei):
; *** Automatically change the partition sizes ***
; HAmbrosius@matrix42.de 03.06.2008
IF #disksize0 < 80000 THEN
#part1=#disksize0
#part2=0
#part3=0
#part4=0
ELSE
#part1=(#disksize0 * 6)/10
#part2=(#disksize0 - #part1)
#part3=0
#part4=0
ENDIF
§ECHO_MSG="10 Createpart.eis: DiskSize=%DiskSize0%"
GOSUB LINUX_ECHO
§ECHO_MSG="10 Createpart.eis: Part1=%part1% Part2=%Part2% Part3=%Part3%"
GOSUB LINUX_ECHO
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
-
- Moderator
- Posts: 7962
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Ja.
Allerdings wird dann nicht neu partitioniert -> Alte Größen bleiben erhalten.
Allerdings wird dann nicht neu partitioniert -> Alte Größen bleiben erhalten.
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Ich habe nun in die CreatePart.eis folgenen Code geschrieben,
Danke
Mir wird aber im EPE immer Part1 mit 30000 angezeigt, welches im OS Template definiert ist. Wie muss ich die Variable SizeC nun im Script angeben??READINI %RD%Os.ini OS_Variable SizeC SizeC
IF "%SizeC%"<"20" THEN
ELSE
#part1=#disksize0 * (%SizeC%/100)
#part2=#disksize0 - #part1)
#part3=0
#part4=0
ENDIF
§ECHO_MSG="10 Createpart.eis: PartitionsizeC=%part1%"
GOSUB LINUX_ECHO
Danke
-
- Moderator
- Posts: 7962
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Versuchen Sie mal statt %SizeC% die Variable #SizeC in der Formel!
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
-
- Moderator
- Posts: 7962
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Dann ist die Formel irgendwie falsch.
Am besten mal erst einen statischen Wert setzen ob der überhaupt übernommen wird und dann mit der Formel experimentieren bis es klappt.
Am besten mal erst einen statischen Wert setzen ob der überhaupt übernommen wird und dann mit der Formel experimentieren bis es klappt.
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
-
- Moderator
- Posts: 7962
- Joined: 13. Dec 2004, 23:10
- Location: Adendorf/Lüneburg
Sie machen das auch unter scripts2\custom und nicht unter scripts?
Erscheint die Meldung im EPE-PXE-Log "Createpart.eis..." ?
Erscheint die Meldung im EPE-PXE-Log "Createpart.eis..." ?
Hendrik Ambrosius / Senior Presales Consultant
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Mobile: +49 172 408 4447 | hendrik.ambrosius@matrix42.com
Matrix42 GmbH | Elbinger Straße 7 | 60487 Frankfurt am Main | Germany | www.matrix42.com
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of Matrix42 or of the support team.
Who is online
Users browsing this forum: No registered users and 2 guests