
Code: Select all
$ sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.8
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): B13A26FA-A79D-470A-C73B-3047CA923D0C
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2925 sectors (1.4 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 4095 1024.0 KiB EF02
2 4096 33558527 16.0 GiB FD00 SWAP1
3 33558528 436211711 192.0 GiB FD00 ROOT1
4 436211712 5860532223 2.5 TiB FD00 CLOUD1


Code: Select all
# fdisk -l /dev/sda
Disk /dev/sda: 36 GiB, 38654705664 bytes, 75497472 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E1A118BD-3C8D-4331-8C2F-BCBA4B16A660
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 1052671 1048576 512M Linux filesystem
/dev/sda3 1052672 42995711 41943040 20G Linux filesystem
/dev/sda4 42995712 63967231 20971520 10G Linux filesystem
/dev/sda5 63967232 75495423 11528192 5.5G Linux swap
# gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 75497472 sectors, 36.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): E1A118BD-3C8D-4331-8C2F-BCBA4B16A660
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 75497438
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 4095 1024.0 KiB EF02
2 4096 1052671 512.0 MiB 8300 /boot
3 1052672 42995711 20.0 GiB 8300 /
4 42995712 63967231 10.0 GiB 8300 /home
5 63967232 75495423 5.5 GiB 8200
# blkid
/dev/sda3: UUID="8cbac366-2794-45ca-b92e-bbbf3a34ca3e" TYPE="ext4" PARTLABEL="/" PARTUUID="46a5fd0f-abdb-4e58-aa1c-f6b997f3839c"
/dev/sda1: PARTUUID="9108be00-67b5-4fad-9eaa-71581abc36af"
/dev/sda2: UUID="9484d7f2-906e-4e31-9899-6ef157695c98" TYPE="ext2" PARTLABEL="/boot" PARTUUID="c4ebecfa-a41a-4d72-b3ce-83af81a426cb"
/dev/sda4: UUID="00c19787-8955-40d7-bb64-9e3f51c9cd5a" TYPE="ext4" PARTLABEL="/home" PARTUUID="b485acef-3161-48ca-a39d-bcc3cab33e59"
/dev/sda5: UUID="91b61f58-4af5-4e28-aa6d-30f91c107c6c" TYPE="swap" PARTUUID="e9ac2da5-984c-4c22-bd51-a744d4e3a9f0"The following diagram in Wikipedia article BIOS boot partition might be of help:GNU GRUB Manual - 3.4 BIOS installation wrote:Some newer systems use the GUID Partition Table (GPT) format. This was specified as part of the Extensible Firmware Interface (EFI), but it can also be used on BIOS platforms if system software supports it; for example, GRUB and GNU/Linux can be used in this configuration. With this format, it is possible to reserve a whole partition for GRUB, called the BIOS Boot Partition. GRUB can then be embedded into that partition without the risk of being overwritten by other software and without being contained in a filesystem which might move its blocks around.
When creating a BIOS Boot Partition on a GPT system, you should make sure that it is at least 31 KiB in size. (GPT-formatted disks are not usually particularly small, so we recommend that you make it larger than the bare minimum, such as 1 MiB, to allow plenty of room for growth.) You must also make sure that it has the proper partition type. Using GNU Parted, you can set this using a command such as the following:
# parted /dev/disk set partition-number bios_grub on
If you are using gdisk, set the partition type to '0xEF02'. With partitioning programs that require setting the GUID directly, it should be '21686148-6449-6e6f-744e656564454649'.
Caution: Be very careful which partition you select! When GRUB finds a BIOS Boot Partition during installation, it will automatically overwrite part of it. Make sure that the partition does not contain any other data.

Code: Select all
root # ln -sf /proc/self/mounts /etc/mtabBy the Way, my Partition:/etc/mtab
Upstream only supports the /etc/mtab file being a symlink to /proc/self/mounts. Not creating this symlink will also cause problems with mount (bug #434090) and df (bug #477240). In the past some utilities wrote information (like mount options) into /etc/mtab and thus it was supposed to be a regular file. Nowadays all software is supposed to avoid this problem. Still, before switching the file to become a symbolic link, please check bug #477498 to be sure that the system is not affected by any reported regressions.
Code: Select all
# gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/sda: 7814037168 sectors, 3.6 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): #PRIVATE_INFORMATION#
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 7814037134
Partitions will be aligned on 2048-sector boundaries
Total free space is 3693 sectors (1.8 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 10239 4.0 MiB EF02
2 10240 272383 128.0 MiB 8300
3 272384 2369535 1024.0 MiB 8200
4 2369536 7814035455 3.6 TiB 8300
That's good news.ChrisJumper wrote:Now i got all Working..
Some motherboards have support for both PC BIOS and UEFI, and you can configure them at boot to use one or the other (press F2 or whatever to enter Setup). For example the firmware in my Clevo W230SS laptop provides a choice of UEFI or PC BIOS, and I chose to configure it to use PC BIOS, but I could equally have chosen to configure it to use UEFI instead. I don't know for how long PC manufacturers will continue releasing new models that support PC BIOS as well as UEFI; I expect they will drop PC BIOS at some point and just supply machines with UEFI. Perhaps some PC manufacturers are already doing that (I personally have not yet come across a machine that supports only UEFI).ChrisJumper wrote:The UEFI Method is just for mainboards that did not support the lagacy "Bios" Boot Mode isn't it?
That is because you did not allocate enough space for the ESP (EFI System Partition). Notice in Example 2 on the Wikipedia diagram that the ESP is shown as '~99 MiB'. Notice in the Gentoo Installation Guide that the ESP is shown as '128 MB'.ChrisJumper wrote:And i have no Fat 32 Partition, because the 1 or 2 MB (yes now i know that dont need a formatation), throw an error and mkfs.vfat -F 32 say: not enough cylinders...
From the console output you posted, it looks like you are booting a GPT HDD using PC BIOS, which is what I thought you were trying to achieve. That's how I configured my server (4 x 3TB HDDs), as it does not have UEFI firmware, only PC BIOS.Gentoo Handbook:AMD64 | Installation wrote:Using UEFI
When installing Gentoo on a system that uses UEFI to boot the operating system (instead of BIOS), then it is important that an EFI System Partition (ESP) is created. The instructions for parted below contain the necessary pointers to correctly handle this operation.
The ESP must be a FAT variant (sometimes shown as vfat on Linux systems). The official UEFI specification denotes FAT12, 16, or 32 filesystems will be recognized by the UEFI firmware, although FAT32 is recommended for the ESP. Proceed in formatting the ESP as FAT32:ImportantCode: Select all
root # mkfs.fat -F 32 /dev/sda2
If a FAT variant is not used for the ESP, the system's UEFI firmware is not guaranteed to find the bootloader (or Linux kernel) and most likely be unable to boot the system!
Code: Select all
# gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 134217728 sectors, 64.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 54B3C38F-1C55-4A19-9BAA-499C4D0D8DD0
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 134217694
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1050623 512.0 MiB EF00
2 1050624 5244927 2.0 GiB 8200
3 5244928 72353791 32.0 GiB 8300
4 72353792 134215679 29.5 GiB 8300
# fdisk -l /dev/sda
Disk /dev/sda: 64 GiB, 68719476736 bytes, 134217728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 54B3C38F-1C55-4A19-9BAA-499C4D0D8DD0
Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 5244927 4194304 2G Linux swap
/dev/sda3 5244928 72353791 67108864 32G Linux filesystem
/dev/sda4 72353792 134215679 61861888 29.5G Linux filesystem
# parted -l
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 68.7GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 boot, esp
2 538MB 2685MB 2147MB linux-swap(v1)
3 2685MB 37.0GB 34.4GB ext4
4 37.0GB 68.7GB 31.7GB ext4
# blkid
/dev/sda3: LABEL="ROOT" UUID="fdf2b11a-8c6b-4bb3-9534-477c3ed49d95" TYPE="ext4" PARTUUID="f393129f-ab32-40fb-bf78-3aead3dd4af0"
/dev/sda1: UUID="C024-8A30" TYPE="vfat" PARTUUID="d941f728-c386-4f4c-b0c3-aa76f4290774"
/dev/sda2: LABEL="SWAP" UUID="1f752a05-a1fb-4c5f-ab2e-079715207b4d" TYPE="swap" PARTUUID="a4daec88-da44-4ae3-8119-01cc81325f03"
/dev/sda4: LABEL="HOME" UUID="041e4ab2-d54c-4092-b445-779997ac09ce" TYPE="ext4" PARTUUID="7e1b8dc0-2f38-4260-95af-fbb80bb72156"Code: Select all
# gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 134217728 sectors, 64.0 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 54B3C38F-1C55-4A19-9BAA-499C4D0D8DD0
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 134217694
Partitions will be aligned on 2048-sector boundaries
Total free space is 4029 sectors (2.0 MiB)
Number Start (sector) End (sector) Size Code Name
1 2048 1050623 512.0 MiB EF00
2 1050624 5244927 2.0 GiB 8200
3 5244928 6293503 512.0 MiB 8300
4 6293504 72353791 31.5 GiB 8300
5 72353792 134215679 29.5 GiB 8300
# fdisk -l /dev/sda
Disk /dev/sda: 64 GiB, 68719476736 bytes, 134217728 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 54B3C38F-1C55-4A19-9BAA-499C4D0D8DD0
Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M EFI System
/dev/sda2 1050624 5244927 4194304 2G Linux swap
/dev/sda3 5244928 6293503 1048576 512M Linux filesystem
/dev/sda4 6293504 72353791 66060288 31.5G Linux filesystem
/dev/sda5 72353792 134215679 61861888 29.5G Linux filesystem
# parted -l
Model: ATA VBOX HARDDISK (scsi)
Disk /dev/sda: 68.7GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 538MB 537MB fat32 boot, esp
2 538MB 2685MB 2147MB linux-swap(v1)
3 2685MB 3222MB 537MB ext2
4 3222MB 37.0GB 33.8GB ext4
5 37.0GB 68.7GB 31.7GB ext4
# blkid
/dev/sda4: LABEL="ROOT" UUID="174ac3e8-f105-4606-bed1-7a1aa22c3631" TYPE="ext4" PARTUUID="01d9c139-fe70-415a-abc6-2351fad33384"
/dev/sda1: UUID="B4C1-7EA5" TYPE="vfat" PARTUUID="d941f728-c386-4f4c-b0c3-aa76f4290774"
/dev/sda2: LABEL="SWAP" UUID="e3ddf9b5-2ae3-4469-a121-0a1a78aa6702" TYPE="swap" PARTUUID="a4daec88-da44-4ae3-8119-01cc81325f03"
/dev/sda3: LABEL="BOOT" UUID="1e24ea9d-5358-4e9b-8667-d7a42e7b6ad7" TYPE="ext2" PARTUUID="b5369ce3-4b44-4d19-be6f-1d226dc71cb3"
/dev/sda5: LABEL="HOME" UUID="87f6a0af-dbed-4587-b810-efca8f269618" TYPE="ext4" PARTUUID="19fd7d00-2d89-4653-af03-e81618a3b70d"Code: Select all
snoopx /home/luca # fdisk /dev/sda
Welcome to fdisk (util-linux 2.30.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Comando (m per richiamare la guida): p
Disk /dev/sda: 232,9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1cac810d
Dispositivo Avvio Start Fine Settori Size Id Tipo
/dev/sda1 2048 206847 204800 100M 83 Linux
/dev/sda2 206848 4302847 4096000 2G 82 Linux swap / Solaris
/dev/sda3 4302848 488397167 484094320 230,9G 83 Linux
Code: Select all
snoopx /home/luca # gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************
Warning! Secondary partition table overlaps the last partition by
33 blocks!
You will need to delete this partition or resize it in another utility.
Command (? for help):

