Partitionieren mit Empirum

Moderator: jknoth

gonzo
Posts: 31
Joined: 15. Nov 2007, 17:43
Contact:

Partitionieren mit Empirum

Post by gonzo » 27. May 2008, 14:31

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!

User avatar
Trickser
Posts: 560
Joined: 11. Oct 2006, 10:51
Location: Jülich
Contact:

Post by Trickser » 27. May 2008, 15:38

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:
;§§§ 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

gonzo
Posts: 31
Joined: 15. Nov 2007, 17:43
Contact:

Post by gonzo » 05. Jun 2008, 10:18

Hallo!

Vielen Dank, funktioniert einwandfrei. Meine nächste Frage ist, könnte ich eventuell auch über eine Variable mitgeben, wie groß meine C-Partition sein soll (Rest D)?? Damit ich variabel auch die Systempartitionsgröße angeben kann?

Danke für eure Antworten

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 7962
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Post by Hendrik_Ambrosius » 05. Jun 2008, 10:26

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

gonzo
Posts: 31
Joined: 15. Nov 2007, 17:43
Contact:

Post by gonzo » 05. Jun 2008, 10:55

ok und kann ich aber weiterhin die Variable für den erhalt der D-Platte verwenden?

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 7962
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Post by Hendrik_Ambrosius » 05. Jun 2008, 11:07

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

gonzo
Posts: 31
Joined: 15. Nov 2007, 17:43
Contact:

Post by gonzo » 05. Jun 2008, 11:31

Ich habe nun in die CreatePart.eis folgenen Code geschrieben,

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
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??

Danke

User avatar
Trickser
Posts: 560
Joined: 11. Oct 2006, 10:51
Location: Jülich
Contact:

Post by Trickser » 05. Jun 2008, 11:44

Hi,

kannst du mal den Abschnitt [OS_Variable] aus der OS.ini von dem Client posten ?

Gruß,

Micha.

gonzo
Posts: 31
Joined: 15. Nov 2007, 17:43
Contact:

Post by gonzo » 05. Jun 2008, 12:03

[OS_Variable]
KeepD=0
SizeC=50

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 7962
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Post by Hendrik_Ambrosius » 05. Jun 2008, 12:39

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.

gonzo
Posts: 31
Joined: 15. Nov 2007, 17:43
Contact:

Post by gonzo » 05. Jun 2008, 12:49

Ich habe nun die Variable mit #SizeC eingebunden aber im EPE wird immer noch die größe des Betriebsystem Templates angezeigt.

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 7962
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Post by Hendrik_Ambrosius » 05. Jun 2008, 12:59

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

User avatar
Trickser
Posts: 560
Joined: 11. Oct 2006, 10:51
Location: Jülich
Contact:

Post by Trickser » 05. Jun 2008, 13:28

Hi,

probierma:

IF #SizeC < 20 THEN

§ECHO_MSG="10 Createpart.eis: Partitionsize C from OS-Template =%part1%"
GOSUB LINUX_ECHO

ELSE

#part1=#disksize0 * (#SizeC/100)
#part2=#disksize0 - #part1)
#part3=0
#part4=0
ENDIF

§ECHO_MSG="10 Createpart.eis: PartitionsizeC=%part1%"
GOSUB LINUX_ECHO



Gruß,

Micha

gonzo
Posts: 31
Joined: 15. Nov 2007, 17:43
Contact:

Post by gonzo » 05. Jun 2008, 13:30

Ich habe nun einen Fixen Wert in das Script eingetragen und er nimmt wieder die Größe vom Template, was mache ich blos falsch??

User avatar
Hendrik_Ambrosius
Moderator
Moderator
Posts: 7962
Joined: 13. Dec 2004, 23:10
Location: Adendorf/Lüneburg

Post by Hendrik_Ambrosius » 05. Jun 2008, 14:05

Sie machen das auch unter scripts2\custom und nicht unter scripts?
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.

Post Reply

Return to “OS Installer”

Who is online

Users browsing this forum: No registered users and 2 guests