Problem with GPT Bios Partition

Denny Bortfeldt denny at bortfeldt.net
Fri Dec 4 13:24:41 CET 2015


Hello everyone,

just a follow-up. With the help from Kerim I could managed my setup.
The disk-label "gpt-bios" will create this special 2MB Bios-Partition at
the end of the part-layout. It's not neccessary to define it in the
disk_config-File.

So to create my layout as I mention in the first mail my disk_config looks
like this now:


# <type> <mountpoint> <size>   <fs type> <mount options> <misc options>

disk_config disk1 disklabel:gpt-bios bootable:3 fstabkey:uuid

primary swap 8192 swap rw
primary /boot 512 ext4 rw,noatime,errors=remount-ro
primary / 15360 ext4 rw,noatime,errors=remount-ro




Thanks everyone for helping me out!


Best regards,
Denny


2015-11-26 18:39 GMT+01:00 Kerim Gueney <kgueney at uni-koeln.de>:

> Hey Denny,
>
> Type 4 is 16-bit FAT (up to 32M), I see there's some Microsoft partitions.
> Is the first partition perhaps an MBR that was installed along some
> previous Windows installation? I only ever see it when I installed Windows
> on my machine prior to Linux. Maybe you could do the following:
>
> disk_config disk1 disklabel:gpt-bios bootable:1 fstabkey:uuid
> primary -         2048 msdos rw     # (msdos is fat16)
> primary swap 8192 swap rw
> primary /boot 512 ext4 rw,noatime,errors=remount-ro
> primary /         15360 ext4 rw,noatime,errors=remount-ro
> logical - 1- - -
>
>
> Best regards
> Kerim
>
>
>
> On 26.11.2015 18:14, Denny Bortfeldt wrote:
>
> Hey Kerim,
>
> no not really - my disk_config could be/is wrong.
> The following schema need to be created by FAI disk_config:
>
> GPT /dev/sda1 2048 6143 2M BIOS boot partition /dev/sda2 6144 16783359 8G
> Linux swap /dev/sda3 16783360 17831935 512M Microsoft basic data /boot
> /dev/sda4 17831936 49289215 15G Microsoft basic data / /dev/sda5 49289216
> 7812456414 3.6T Linux LVM
>
> But here's the problem: I don't know how.
> The /dev/sda1 partition don't have got a mount point and is a type "4" in
> fdisk/gdisk - so I don't know what I need to write in my disk_config so
> that FAI will use "type 4" in partition layout.
> /dev/sda2, /dev/sda3 and /dev/sda4 is clear - everything is "primary" and
> swap or ext4.
>
>
> So what do I need to enter in my disk_config that the result will look
> like:
>
> /dev/sda1 2048 6143 2M BIOS boot partition
>
> Thanks in advance :)
>
> Best regards,
> Denny
>
> 2015-11-26 17:48 GMT+01:00 Kerim Güney <kgueney at uni-koeln.de>:
>
>> Hi Denny,
>>
>> there seems to be a mismatch of sorts between your desired schema and
>> what you're actually describing. I am going to assume you want an EFI
>> partition that you're going to boot off of.
>>
>> To do so, this should work:
>>
>> disk_config disk1 disklabel:gpt-bios bootable:1 fstabkey:uuid
>>
>> primary /boot/efi 2048 vfat rw
>> primary swap 8192 swap rw
>> primary /boot 512 ext4 rw,noatime,errors=remount-ro
>> primary /         15360 ext4 rw,noatime,errors=remount-ro
>> logical - 1- - -
>>
>>
>> Best regards
>> Kerim
>>
>>
>> On 26/11/15 16:19, Denny Bortfeldt wrote:
>>
>> Hello everyone,
>>
>> I'm using FAI 5.0 and need a special partition layout for our centos kvm
>> installation.
>>
>> The partition schema need to be like this:
>>
>> GPT /dev/sda1 2048 6143 2M BIOS boot partition /dev/sda2 6144 16783359 8G
>> Linux swap /dev/sda3 16783360 17831935 512M Microsoft basic data /boot
>> /dev/sda4 17831936 49289215 15G Microsoft basic data / /dev/sda5 49289216
>> 7812456414 3.6T Linux LVM
>> Unfortunately I'm unable to create /dev/sda1 and /dev/sda5 with the
>> disk_config.
>> I don't know what "fstype" I have to enter, that FAI will partitionate
>> /dev/sda1 to "BIOS boot partition" (fdisk type "4").
>> fstype "efi" and "bios" will run into an error:
>> https://data.bortfeldt.net/f/d9b3239df0/
>> My current config_disk-File looks like this:
>> # <type> <mountpoint> <size>   <fs type> <mount options> <misc options>
>>
>> disk_config disk1 disklabel:gpt-bios bootable:3 fstabkey:uuid
>>
>> primary - 2 efi -
>> primary swap 8192 swap rw
>> primary /boot 512 ext4 rw,noatime,errors=remount-ro
>> primary / 15360 ext4 rw,noatime,errors=remount-ro
>> logical - 1- - -
>>
>>
>> So is anyone here who can help me out with my disk_configuration so that
>> FAI will partitionate like the schema above?
>>
>> Thanks in advance.
>>
>> Best regards,
>> Denny
>>
>>
>> --
>>          Kerim Güney
>>
>>  Institut für Informatik        Junior Sysadmin
>>      Universität zu Köln        Lehrstuhl Prof. Dr. M. Jünger
>>             Weyertal 121
>>               50931 Köln
>>
>>
>
>
-------------- n�chster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20151204/30b982c1/attachment.html>


More information about the linux-fai mailing list