windows_partition_size doesn't work since 4.0.6.1-3 - Solved

bourhis
Beiträge: 126
Registriert: 07 Nov 2012, 15:57

windows_partition_size doesn't work since 4.0.6.1-3 - Solved

Beitrag von bourhis »

Hi,

I have upgraded the opsi products yesterday and when try to install "win6-x64", the "windows_partition_size" parameter doesn't work : I put 70% but it use 100 % of the disk !
Is-it a bug or have I miss something ?

Best regards.
Zuletzt geändert von bourhis am 28 Jan 2016, 14:47, insgesamt 1-mal geändert.
bourhis
Beiträge: 126
Registriert: 07 Nov 2012, 15:57

Precision : windows_partition_size doesn't work since 4.0.6.1-3

Beitrag von bourhis »

hi,

just a precision : if I replace the "setup.py" by the previous one (from 4.0.6.1-2), that's resolved my problem.

Best regards
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: windows_partition_size doesn't work since 4.0.6.1-3

Beitrag von n.wenselowski »

Hello bourhis,

could you have a lookt at the bootimage.log of the client and check wether there is a message showing that it is not calculated correctly / an error occurs?


With kind regards

Niko

Code: Alles auswählen

import OPSI
bourhis
Beiträge: 126
Registriert: 07 Nov 2012, 15:57

Re: windows_partition_size doesn't work since 4.0.6.1-3

Beitrag von bourhis »

Hi,

I don't find significative errors, only the same that I have seen in the bootimage.log generated with the previous version of "setup.py"...
If I boot with srcd before the "windows" installation, I see strictly the same disk partitionement (sfdisk -l command) :

Disk /dev/sda: 60801 cylinders, 255 heads, 63 sectors/track
Units: cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/sda1 0+ 42076- 42077- 337979392 7 HPFS/NTFS/exFAT
/dev/sda2 * 42076+ 42586- 510- 4096000 7 HPFS/NTFS/exFAT
/dev/sda3 0 - 0 0 0 Empty
/dev/sda4 0 - 0 0 0 Empty

Would-you like that I mail you the bootimage.log files ?

Best regards.
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: windows_partition_size doesn't work since 4.0.6.1-3

Beitrag von n.wenselowski »

Hi,

I opened an internal ticket for this.

For me there is currently no need for a log. We may come back to you later.


With kind regards

Niko

Code: Alles auswählen

import OPSI
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: windows_partition_size doesn't work since 4.0.6.1-3

Beitrag von d.oertel »

Hi,

I could not reproduce this issue.
Could you please try this one:
http://download.uib.de/opsi4.0/experime ... 6.2-1.opsi
And if the problem is still there send me the complete bootimag.log to d.oertel(at)uib.de
with reference to this thread.

regards

d.oertel


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: windows_partition_size doesn't work since 4.0.6.1-3

Beitrag von d.oertel »

Hi,

thank you for your log.

Hrer some important parts:

Code: Alles auswählen

(...)
(769) (769) [6] [déc. 15 16:49:48] Found product property: {'type': u'ProductPropertyState', 'values': [False], 'propertyId': u'data_partition_create',
(...)
(784) (784) [6] [déc. 15 16:49:48] Found product property: {'type': u'ProductPropertyState', 'values': [u'70%'], 'propertyId': u'windows_partition_size', 'obje
(...)
(5347) [7] [déc. 15 16:51:25] >>> total: 488386584 blocks (Posix.py|836)
(5348) [7] [déc. 15 16:51:25] Exit code: 0 (Posix.py|843)
(5349) [7] [déc. 15 16:51:25] Found disk =>>> dev: '/dev/sda', size: 465.00 GB (Posix.py|921)
(...)
(5711) (5711) [7] [déc. 15 16:51:43] >>> Disk /dev/sda: 60801 cylinders, 255 heads, 63 sectors/track (Posix.py|836)
(5712) (5712) [7] [déc. 15 16:51:43] >>> Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0 (Posix.py|836)
(5713) (5713) [7] [déc. 15 16:51:43] >>> (Posix.py|836)
(5714) (5714) [7] [déc. 15 16:51:43] >>> Device Boot Start End #cyls #blocks Id System (Posix.py|836)
(5715) (5715) [7] [déc. 15 16:51:43] >>> /dev/sda1 0+ 42076- 42077- 337979392 7 HPFS/NTFS/exFAT (Posix.py|836)
(5716) (5716) [7] [déc. 15 16:51:43] >>> /dev/sda2 * 42076+ 42586- 510- 4096000 7 HPFS/NTFS/exFAT (Posix.py|836)
(5717) (5717) [7] [déc. 15 16:51:43] >>> /dev/sda3 0 - 0 0 0 Empty (Posix.py|836)
(5718) (5718) [7] [déc. 15 16:51:43] >>> /dev/sda4 0 - 0 0 0 Empty (Posix.py|836)

I still think every thing is correct:
You have:
data_partition_create = false
windows_partition_size = 70%
488386584 Blocks on disk

What you get is:

488386584 Blocks on disk
- 337979392 Blocks on sda1 (70%)
- 4096000 Blocks on winpe
= 146311192 Free blocks

If you want the free blocks as data partition, you have to switch: data_partition_create = true

Use 'data_partition_create = false' if you want to have free Space for an other OS-Installation.

Did I miss anything ?

regards
d.oertel


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


bourhis
Beiträge: 126
Registriert: 07 Nov 2012, 15:57

Re: windows_partition_size doesn't work since 4.0.6.1-3

Beitrag von bourhis »

hi,

you see the same thing as me (like I wrote in my precedent post) : after the linux process (setup.py), the partition table is OK, but after the windows installation the "free" partition has disapeared (N.B. : I put the 'data_partition_create' to false) !
If I replace the file 'setup.py' by an older one, windows don't modify the partition table.
There is a change in the "setup.py" file which resulted in this problem ...

Best regards.
bourhis
Beiträge: 126
Registriert: 07 Nov 2012, 15:57

Re: windows_partition_size doesn't work since 4.0.6.1-3

Beitrag von bourhis »

N.B. : if I put "data_partition_create" to "True", windows don't modify the initial partition table.
bourhis
Beiträge: 126
Registriert: 07 Nov 2012, 15:57

Re: windows_partition_size doesn't work since 4.0.6.1-3

Beitrag von bourhis »

I found the 2 lines to be modified in the "setup.py" file to fix the problem : the lines 889 and 890

Code: Alles auswählen

                print >> f, "select partition %d\r" % (winpePartitionNumber - 1)
                print >> f, "extend\r"
If I comment them, the partition table is not modified by Windows.
Antworten