Problem with GPT Bios Partition

Kerim Gueney kgueney at uni-koeln.de
Thu Nov 26 18:39:06 CET 2015


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 - 2048msdosrw     # (msdos is fat16)
primaryswap8192swaprw
primary /boot512ext4rw,noatime,errors=remount-ro
primary /15360ext4rw,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 
> <mailto: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/efi2048vfatrw
>     primaryswap8192swaprw
>     primary /boot512ext4rw,noatime,errors=remount-ro
>     primary /15360ext4rw,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 -2efi-
>>     primaryswap8192swaprw
>>     primary /boot512ext4rw,noatime,errors=remount-ro
>>     primary /15360ext4rw,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
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20151126/a7f2b5c1/attachment.html>


More information about the linux-fai mailing list