GNU bug report logs - #36783
Guix graphical installation failure on all drives with size > 1 TiB

Previous Next

Package: guix;

Reported by: Danny Milosavljevic <dannym <at> scratchpost.org>

Date: Wed, 24 Jul 2019 12:58:02 UTC

Severity: normal

Done: Mathieu Othacehe <mathieu <at> cervin.i-did-not-set--mail-host-address--so-tickle-me>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36783 in the body.
You can then email your comments to 36783 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#36783; Package guix. (Wed, 24 Jul 2019 12:58:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Danny Milosavljevic <dannym <at> scratchpost.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 24 Jul 2019 12:58:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: <bug-guix <at> gnu.org>, Mathieu Othacehe <m.othacehe <at> gmail.com>
Subject: Guix graphical installation failure on all drives with size > 1 TiB
Date: Wed, 24 Jul 2019 14:56:52 +0200
Hi,

using the Guix graphical installation method, one cannot install Guix on a drive
with more than 1 TiB.  (symptom: "null pointer dereference" in mkpart)

The reason is a bug in guile-parted.

An example is to use the "separate /home" option with a 2 TiB disk.

The fix that lets me install is:

(for https://gitlab.com/mothacehe/guile-parted.git master)

diff --git a/parted/unit.scm b/parted/unit.scm
index 6818b7e..68862a8 100644
--- a/parted/unit.scm
+++ b/parted/unit.scm
@@ -147,7 +147,7 @@
                          out-range)))
       (if (return-int->bool result)
           (values (car
-                   (parse-c-struct c-sector (list int)))
+                   (parse-c-struct c-sector (list sector-type)))
                   (pointer->geometry
                    (dereference-pointer out-range)))
           (values #f #f)))))

However, even after that, disk-print, if used, prints nonsensical (negative)
values for "free" (but installation succeeds).

That bug prevents graphical installation on any drive bigger than 1 TiB.
Let's make a bugfix Guix release shortly.




Information forwarded to bug-guix <at> gnu.org:
bug#36783; Package guix. (Wed, 24 Jul 2019 16:13:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <m.othacehe <at> gmail.com>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: bug-guix <at> gnu.org
Subject: Re: Guix graphical installation failure on all drives with size > 1
 TiB
Date: Wed, 24 Jul 2019 18:12:44 +0200
Hello Danny,

> However, even after that, disk-print, if used, prints nonsensical (negative)
> values for "free" (but installation succeeds).
>
> That bug prevents graphical installation on any drive bigger than 1 TiB.
> Let's make a bugfix Guix release shortly.

Your fix seems ok for me, thank you! I don't get why you negative values
though. I'll try to find a big hard drive to understand this before
pushing this patch.

Thanks,

Mathieu




Information forwarded to bug-guix <at> gnu.org:
bug#36783; Package guix. (Mon, 13 Apr 2020 08:46:02 GMT) Full text and rfc822 format available.

Message #11 received at 36783 <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <m.othacehe <at> gmail.com>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 36783 <at> debbugs.gnu.org
Subject: Re: Guix graphical installation failure on all drives with size > 1
 TiB
Date: Mon, 13 Apr 2020 10:45:37 +0200
Hello,

> Your fix seems ok for me, thank you! I don't get why you negative values
> though. I'll try to find a big hard drive to understand this before
> pushing this patch.

I still don't have a big enough hard drive to test it, but I applied
your patch anyway. If someone with hard drive > 1 TiB is willing to
investigate why:

--8<---------------cut here---------------start------------->8---
[disk-print] prints nonsensical (negative) values for "free"
--8<---------------cut here---------------end--------------->8---

that would be nice :)

Thanks,

Mathieu




bug closed, send any further explanations to 36783 <at> debbugs.gnu.org and Danny Milosavljevic <dannym <at> scratchpost.org> Request was from Mathieu Othacehe <mathieu <at> cervin.i-did-not-set--mail-host-address--so-tickle-me> to control <at> debbugs.gnu.org. (Thu, 30 Jul 2020 15:37:04 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 28 Aug 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 213 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.