From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id +MRLCwCvJGY9FgAAe85BDQ:P1 (envelope-from ) for ; Sun, 21 Apr 2024 08:15:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +MRLCwCvJGY9FgAAe85BDQ (envelope-from ) for ; Sun, 21 Apr 2024 08:15:28 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=XGZ80Ty4; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713680128; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=V81t1FG3mjSh7MwKAkNsTrmGjVwRxO9SenVPfYDgWTA=; b=MusnamPUz7qdp15oKaGVjSOuw9BEpJfrJL+vgaCY++abnPHYxmEcALigmM2JCp4E1vKNxX /A8A1Edxi3eFCE5bumiEVMmqhpsJdWYF2ni1jSIZ2lY2isfddiaHTFm1xxfQM/gxk8PoLY +3k/qyxVNla/xDLDV5iWTLO4oXkPF+uJJMBABkRk/6xDhSJUG0jOtxyzVRZzeS/puijo88 Hn62vKPUXCWqKPJfcJm6qRBj+iFKG3AB4LnNmdgfzW524uKVs3H9WwHqWna9iWPAaaR5qo Of03uhzriug5FVQNXTpJ0quMtZsw2l75pG+WLXHJeR/uvrFB6qGyB0fAL+ze/A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713680128; a=rsa-sha256; cv=none; b=gRWBoWCLXHwwr2IdHWZGjZxQj8cCDC81X/FR9QgcZCg7VL93/I4EX6utRvlogaLyIeIVyM z+kqwkJttOJAYK8ZFZWoLiULCm+rlh5Z3c7GBBl1peVNUArBLFGtGdM6fx2y2BJOtHSo5H d5+82xTdday4+r/SZa2I+rSDE2crA+J7As2RN5WgAbSyGLXJFmVeUcvrS5qqzaLyXyeIcZ 6A5De7jfhrFBkovm/ZKPfbUZiMKm89eB/XeNIJLAfnqvGqnBJr6VtKjO1YhCs8+5boRC4A w+PBQCf3NUjilHNZHTYu4Adk6//UQNKezvAFrC9rzkKgXdK/lsJ3T87IltSWeg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=XGZ80Ty4; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C09C517F30 for ; Sun, 21 Apr 2024 08:15:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryQTc-0005k8-LD; Sun, 21 Apr 2024 02:15:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ryQTb-0005j5-8V for guix-devel@gnu.org; Sun, 21 Apr 2024 02:14:59 -0400 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ryQTZ-0007jM-3T for guix-devel@gnu.org; Sun, 21 Apr 2024 02:14:59 -0400 Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-2a3095907ffso2590956a91.0 for ; Sat, 20 Apr 2024 23:14:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713680095; x=1714284895; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=V81t1FG3mjSh7MwKAkNsTrmGjVwRxO9SenVPfYDgWTA=; b=XGZ80Ty4jlgCgGByNHw2tzgI7ea7EysYVxIYoF7vJ5rmLr0D4zHBpDizwgz8IK54By S48sv6bDMEU/CKXBYYuU4ZmMgZoLoHfJhZm3cvt+3eovQk79CyUZGpGrcimvNgq4Se2l NVNg3+iwtVk0zMYQxDltyvjZru8DvhbLYfT/o5gNC4mHzx22epFg4z09jI+J40vSNEDk 0rOpR5K8DQvseLVaduxjy3FNjq9cNMZn1jEFDiMnVp3WB234GRmGx46ezHdbraNq94Q6 75MISVFGFFuXIzG+w3jogVfyxWjN+RelbT2M9pc20kWoLVMYA8yUS6sCrMc0kc8PfzVo hQIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713680095; x=1714284895; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=V81t1FG3mjSh7MwKAkNsTrmGjVwRxO9SenVPfYDgWTA=; b=QF1BvhghBZmT/3onaLcXqriX9LIKK/IA19b3Cl29sKxWKfEKxbmOiUe7vn/1kB6ero aTDEkEK9GEMljbJV9SYafEtAun7xCaSYujJkfjve3Bh3VKqSWXKj6muA8AlCXrVQ+fe0 AARaIt+Td6rK7BwT5g5r3QdVrwZchgmWlfEW0fwLlVyzyZN3aFZz48wLI34E6Ol0fLie BvMABARCyhGu5VcN6YBdtiRywkbPCCB7lxhvT3VPwr+KVCX6d8Vk86z6cpgNLgSfRTTr Ykspy7HDgm9UYog3R40YAZhLewhsHWTiFraYvKwJ+J1uLAFpyVti8CDZDNci+e/yDdbD SqIw== X-Forwarded-Encrypted: i=1; AJvYcCUk3cYOLAs+th3ju8j6yCcmkAb8OljuMBVV4ncnSHzj0njLgh77E8u+qlm0ID9ArlrGPzDuPaalY1PuEhbS80X2C+M= X-Gm-Message-State: AOJu0Yz0XbPGbchoA8LIqoC0KMikDuXtRuUzSsGq8ZcnNIrhejNT6bZB BpGiKorYDlJj4IdRjeOuG7ExpVbCUVynLt+7YOECAC8Xv4M+xtHUiK6UOQ== X-Google-Smtp-Source: AGHT+IGnMfin1mmcWBjs8KUXQCm6kazhJ3qPaUbD9v8QU8fNbZ+FPZDWmTHNnz6UearRqjzszc9YUA== X-Received: by 2002:a17:902:e981:b0:1de:f29a:36ac with SMTP id f1-20020a170902e98100b001def29a36acmr5842084plb.68.1713680094792; Sat, 20 Apr 2024 23:14:54 -0700 (PDT) Received: from [10.143.113.222] ([130.95.40.102]) by smtp.gmail.com with ESMTPSA id p3-20020a170902780300b001e3e09690c6sm5960808pll.199.2024.04.20.23.14.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 20 Apr 2024 23:14:54 -0700 (PDT) Message-ID: Date: Sun, 21 Apr 2024 06:14:49 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: Guix bios installation: Grub error: unknown filesystem Content-Language: en-US To: Franz Geffke , guix-devel@gnu.org References: <49d45f8a-6c97-419c-8221-f400f52f886e@app.fastmail.com> From: Ada Stevenson In-Reply-To: <49d45f8a-6c97-419c-8221-f400f52f886e@app.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=adanskana@gmail.com; helo=mail-pj1-x102b.google.com X-Spam_score_int: -45 X-Spam_score: -4.6 X-Spam_bar: ---- X-Spam_report: (-4.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-2.457, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.69 X-Spam-Score: -9.69 X-Migadu-Queue-Id: C09C517F30 X-Migadu-Scanner: mx12.migadu.com X-TUID: Ud/XEeCXyjUw Hi Franz, On 4/19/24 2:24 PM, Franz Geffke wrote: > I'm having trouble installing guix in qemu, using a "fresh" guix ISO. > > ``` > building /gnu/store/byjlc85abyjc3fjj9z982677skmda7ib-module-import-compiled.drv... > building /gnu/store/psw8xn9qpsjjnrqmjrfv0v3jj9fphq5m-module-import-compiled.drv... > building /gnu/store/a1zcrrcdwhb4wb2g4r0ph8mqclq7f5xn-install-bootloader.scm.drv... > guix system: error: '/gnu/store/li1ic17hz460vp1sg0cx2dwgw8q7i8pj-grub-2.06/sbin/grub-install --no-floppy --target=i386-pc --boot-directory /mnt/boot /dev/sda' exited with status 1; output follows: > > Installing for i386-pc platform. > /gnu/store/li1ic17hz460vp1sg0cx2dwgw8q7i8pj-grub-2.06/sbin/grub-install: error: unknown filesystem. > ``` > > Here's what I've tried so far: > 1. The ISO from 2022 https://ftpmirror.gnu.org/gnu/guix/guix-system-install-1.4.0.x86_64-linux.iso: Success > 2. Generated a new ISO today: Failure > > These are the channels, on the booted ISO: > > ``` > guix describe > guix 65e8472 > repository URL: https://git.savannah.gnu.org/git/guix.git > branch: master > commit: 65e8472a4b6fc6f66871ba0dad518b7d4c63595e > ``` > > Steps I used to install (1) and (2): > > ``` > parted -s /dev/sda -- mklabel msdos mkpart primary ext4 1MiB 100% > parted /dev/sda set 1 boot on > mkfs.ext4 -L my-root /dev/sda1 > mount LABEL=my-root /mnt > cp /etc/configuration/lightweight-desktop.scm /mnt/etc/config.scm > # adjust disk, bootloader > herd start cow-store /mnt > guix system init /mnt/etc/config.scm /mnt > ``` > > Findings: > > I didn't really dig too deeply yet; Only noticed that this command produces a different result, depending on whether the install succeeds, or not `grub-probe --target=fs --device /dev/sda` > > - Success: `ext2` > - Failure: `grub-probe: error: unknown filesystem.` > > I also tried using GPT instead of MBR, but it makes no difference. > I've encountered this problem too, and managed to solve it. I'm 85% sure you're experiencing the same problem as me, and I've been meaning to document it somewhere - its a super obtuse error and it is a showstopper when it comes to installing guix. Basically, there is a compatibility issue regarding the ext4 filesystem features that GRUB 2.06 supports and the features that `e2fsprogs@1.47.0` enables by default when creating your ext4 filesystem. When these features are enabled, it changes the structure of the filesystem enough that GRUB can't recognise it properly and it fails. To fix this, you will need to make sure you create your ext4 filesystem with the following features: `mkfs.ext4 /dev/you-partition-here -O has_journal,ext_attr,resize_inode,dir_index,filetype,needs_recovery,extent,flex_bg,sparse_super,large_file,huge_file,uninit_bg,dir_nlink,extra_isize` These are the features that worked for me. I had to do a lot of trial and error, and I used `tune2fs -l` to see what features weren't supported. The ones I can remember are the metadata_csum features, and some other ones (they showed up as FEATURE_X when running `tune2fs` on my Guix installation image, so I used a Gparted Live CD to get rid of the features that weren't recognised by tune2fs). This should allow grub to recognise your filesystem during the installation process. I think using a later version of grub would fix this, but that hasn't happened yet. I think there's a patch to upgrade it in `core-updates` somewhere, but I'm not sure. Anyway, hope this helps! Warmly, Ada