From: Thierry Parmentelat Date: Wed, 27 Jun 2012 11:27:05 +0000 (+0200) Subject: partition tables using gpt instead of msdos with disks larger than 2TB X-Git-Tag: bootmanager-5.0-23~5 X-Git-Url: http://git.onelab.eu/?p=bootmanager.git;a=commitdiff_plain;h=8a254898555b429c8f22564cc4fa715ba6c0ade8 partition tables using gpt instead of msdos with disks larger than 2TB --- diff --git a/source/steps/InstallPartitionDisks.py b/source/steps/InstallPartitionDisks.py index 5ca7507..ef99673 100644 --- a/source/steps/InstallPartitionDisks.py +++ b/source/steps/InstallPartitionDisks.py @@ -259,7 +259,11 @@ def single_partition_device_2_x ( device, vars, log): # get the device dev= parted.Device(device) # create a new partition table - disk= parted.freshDisk(dev,'msdos') + try: + disk= parted.freshDisk(dev,'msdos') + # use gpt as a fallback for disks larger than 2TB + except: + disk= parted.freshDisk(dev,'gpt') # create one big partition on each block device constraint= parted.constraint.Constraint (device=dev) geometry = parted.geometry.Geometry (device=dev, start=0, end=1)