systemd-gpt-auto-generator: Failed to dissect: Input/output error

lazmol
lazmol New Member Posts: 2
edited June 2018 in UP Board Linux

Hi,
I have an UP squared board and installed arch linux on it.
It boots up fine but I get the following kernel messages:

systemd-gpt-auto-generator[2938]: Failed to dissect: Input/output error
[  132.328127] systemd[2932]: /usr/lib/systemd/system-generators/systemd-gpt-auto-generator failed with exit status 1.

Can I just ignore those? I looked for the message and found [here][https://bbs.archlinux.org/viewtopic.php?id=229412] that setting systemd.gpt_auto=0 boot parameter is a workarond for the problem. But the system did not boot when I included that parameter in my refind.conf.
Do you know why I receive those messages? What else can be done there? Do you see anything wrong with the partitions below?

My partitions:

# parted --list                                                                                                                         :(
Model: Generic Flash Disk (scsi)
Disk /dev/sda: 2013MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 2      84.0kB  67.2MB  67.1MB  primary  fat16        esp


Error: /dev/mmcblk0boot0: unrecognised disk label
Warning: Error fsyncing/closing /dev/mmcblk0boot0: Input/output error
Retry/Ignore? I                                                           
Model: Generic SD/MMC Storage Card (sd/mmc)
Disk /dev/mmcblk0boot0: 4194kB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags: 

Error: /dev/mmcblk0boot1: unrecognised disk label
Warning: Error fsyncing/closing /dev/mmcblk0boot1: Input/output error
Retry/Ignore? I                                                           
Model: Generic SD/MMC Storage Card (sd/mmc)
Disk /dev/mmcblk0boot1: 4194kB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags: 

Model: MMC HCG4a2 (sd/mmc)
Disk /dev/mmcblk0: 62.5GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name              Flags
 1      1049kB  538MB   537MB   fat32           EFI System        boot, esp
 2      538MB   3759MB  3221MB  linux-swap(v1)  Linux swap
 3      3759MB  62.5GB  58.8GB  btrfs           Linux filesystem

Thanks for any help or hint in advance!

Comments

  • ccalde
    ccalde New Member Posts: 348 ✭✭✭

    Hi @lazmol ,

    Which Linux distro are you using?

    Also, how did you do the partitions during the installation?
    It looks like you are using the entire disk space, 64GB, for you Linux, right?

    Cheers!

  • lazmol
    lazmol New Member Posts: 2

    Hi @emutex,

    I am using Arch linux. Actually it works fine ever since, just the swap partition is not mounted by systemd as the systemd-gpt-auto-generator fails at /dev/mmcblk0boot0 and boot1 with that failed to dissect error.

    Yes I created a new GPT table with "gdisk /dev/mmcblk0"
    and created 3 partitions: a 512MB EFI partition, a swap partition (as btrfs does not support swap files yet) and the rest of the space another one which will be formatted btrfs with several subvolumes for root, home etc.

    What would have been the recommended way? What are those protected partitions like mmcblk0boot0 mmcblk0boot1 for?

    Thanks!

  • ccalde
    ccalde New Member Posts: 348 ✭✭✭

    Hi @lazmol ,

    So, could you check the fstab, using cat /etc/fstab.
    There, you will see if your swap is mounted in any point.

    If not, you can try the swapon and mkswap tools to perform and create a swap partition.

    Cheers!