HI all, I just did a fresh C7 install using kickstart. fdisk -l /dev/sda shows: # Start End Size Type Name 1 2048 2050047 1000M EFI System EFI System Partition 2 2050048 104450047 48.8G Microsoft basic 3 104450048 112642047 3.9G Linux swap 4 112642048 234440703 58.1G Microsoft basic What extra do I need to specify in my kickstart so that the "type" above is not Microsoft basic? For example, currently a line in my kickstart would be: part /home --ondisk=/dev/sda --fstype ext4 --size=58G --asprimary What is missing so the type is set correctly to linux root or linux home? Thanks, Jerry
Hi, try parted /dev/sda print thanks --- Thomas Stephen Lee On Thu, Oct 24, 2019 at 5:41 PM Jerry Geis <jerry.geis at gmail.com> wrote:> HI all, > > I just did a fresh C7 install using kickstart. > > fdisk -l /dev/sda shows: > # Start End Size Type Name > 1 2048 2050047 1000M EFI System EFI System Partition > 2 2050048 104450047 48.8G Microsoft basic > 3 104450048 112642047 3.9G Linux swap > 4 112642048 234440703 58.1G Microsoft basic > > What extra do I need to specify in my kickstart so that the "type" above is > not Microsoft basic? > > For example, currently a line in my kickstart would be: > part /home --ondisk=/dev/sda --fstype ext4 --size=58G --asprimary > > > What is missing so the type is set correctly to linux root or linux home? > > Thanks, > > Jerry > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >
Results for parted: parted /dev/sda print Model: ATA KINGSTON SUV5001 (scsi) Disk /dev/sda: 120GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 1050MB 1049MB fat32 EFI System Partition boot 2 1050MB 53.5GB 52.4GB ext4 3 53.5GB 57.7GB 4194MB linux-swap(v1) 4 57.7GB 120GB 62.4GB ext4 So this shows what I'm expecting. What is the issue with fdisk ??? Jerry
Hi, gpt <https://en.wikipedia.org/wiki/GUID_Partition_Table> is newer partition table format. fdisk started supporting gpt recently, while parted has better support for gpt. thanks --- Thomas Stephen Lee On Fri, Oct 25, 2019 at 5:22 PM Jerry Geis <jerry.geis at gmail.com> wrote:> Results for parted: > > parted /dev/sda print > Model: ATA KINGSTON SUV5001 (scsi) > Disk /dev/sda: 120GB > Sector size (logical/physical): 512B/4096B > Partition Table: gpt > Disk Flags: > > Number Start End Size File system Name Flags > 1 1049kB 1050MB 1049MB fat32 EFI System Partition boot > 2 1050MB 53.5GB 52.4GB ext4 > 3 53.5GB 57.7GB 4194MB linux-swap(v1) > 4 57.7GB 120GB 62.4GB ext4 > > > > So this shows what I'm expecting. What is the issue with fdisk ??? > > Jerry > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >