> On Dec 15, 2014, at 17:33, Albino A. Aveleda <[email protected]> wrote: > > Dear all, > > I have to use the GPT partition because my disk array is bigger than 2TB. > I am using CentOS 6.5 and cobbler 2.6.3. > I added the pre section in my kickstart to create a partiotion with parted > command, but it didn't work. I looked for on Internet but I can't find the > error. > Part of my kickstart is below. What do I do wrong? > > ... > # Disk > clearpart --none > part /boot --fstype="ext4" --onpart=sda1 > part swap --onpart=sda2 > part / --fstype="ext4" --onpart=sda3 > > %packages > ... > %end > > %pre > parted -s /dev/sda mklabel gpt > parted -s /dev/sda unit MB mkpart primary 1 300 > parted -s /dev/sda unit MB mkpart primary 300 1024 > parted -s /dev/sda unit MB mkpart primary 1024 -1 > parted -s /dev/sda set 1 boot on > parted -s /dev/sda set 2 swap on > %end > > Best regards, > Bino
If this is a BIOS based system or a UEFI system in legacy BIOS mode, then you need a special "biosboot" partition. If it is a UEFI system in its normal mode you need an EFI partition. See the Install manual for Red Hat 7 for the "part" command. It is the first version of the docs that explains these needs even though I ran into the problem in 6.5. Oh, and if you want to create the partition table manually in the %pre section, you must use parted, not fdisk. _______________________________________________ cobbler mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/cobbler
