From: Zheng Junjie <zhengjunjie@iscas.ac.cn>
To: Florian Pelz <pelzflorian@pelzflorian.de>
Cc: 71940@debbugs.gnu.org
Subject: [bug#71940] [PATCH] system: images: Add comment how to enlarge visionfive2 root partition.
Date: Thu, 04 Jul 2024 23:43:26 +0800 [thread overview]
Message-ID: <87msmxw4bl.fsf@iscas.ac.cn> (raw)
In-Reply-To: <8b8be3032e77e3b0ad1a224aa819663f2fcfe9fb.1720102754.git.pelzflorian@pelzflorian.de> (Florian Pelz's message of "Thu, 4 Jul 2024 16:22:38 +0200")
[-- Attachment #1: Type: text/plain, Size: 2951 bytes --]
Florian Pelz <pelzflorian@pelzflorian.de> writes:
> fdisk as documented upstream does *not* work and breaks boot on 4 microSD
> cards that I tried.
>
> * gnu/system/images/visionfive2.scm: Add comment.
> [visionfive2-barebones-os]<packages>: Add `parted'.
> Remove not generally useful `cloud-utils', 'neofetch' packages.
>
> Change-Id: Ibcb6fd70e3ecc194187c4e882e983740349960cc
> ---
> gnu/system/images/visionfive2.scm | 15 +++++++--------
> 1 file changed, 7 insertions(+), 8 deletions(-)
>
> diff --git a/gnu/system/images/visionfive2.scm b/gnu/system/images/visionfive2.scm
> index 26f70afbc1..731fd8fa47 100644
> --- a/gnu/system/images/visionfive2.scm
> +++ b/gnu/system/images/visionfive2.scm
> @@ -1,5 +1,6 @@
> ;;; GNU Guix --- Functional package management for GNU
> ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com>
> +;;; Copyright © 2024 Florian Pelz <pelzflorian@pelzflorian.de>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -19,19 +20,13 @@
> (define-module (gnu system images visionfive2)
> #:use-module (gnu bootloader)
> #:use-module (gnu bootloader u-boot)
> - #:use-module (gnu services dbus)
> - #:use-module (gnu services dns)
> - #:use-module (gnu services avahi)
> - #:use-module (gnu services shepherd)
> #:use-module (gnu services ssh)
> #:use-module (gnu services networking)
> #:use-module (gnu image)
> - #:use-module (gnu packages linux)
> #:use-module (guix packages)
>
> + #:use-module (gnu packages disk)
> #:use-module (gnu packages ssh)
> - #:use-module (gnu packages guile-xyz)
> - #:use-module (gnu packages admin)
> #:use-module (gnu services)
> #:use-module (gnu services base)
> #:use-module (gnu services networking)
> @@ -54,6 +49,10 @@ (define-module (gnu system images visionfive2)
> ;;; uboot> setenv fdtfile starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
> ;;; uboot> saveenv
> ;;;
> +;;; Use parted and resize2fs to enlarge the root partition. While StarFive
> +;;; recommends using fdisk and not parted in their Quick Start Guide, for
> +;;; this Guix System image, this would give us an unbootable state.
> +;;;
> ;;; Code:
>
> (define visionfive2-barebones-os
> @@ -71,7 +70,7 @@ (define visionfive2-barebones-os
> %base-file-systems))
> (kernel-arguments (list "earlycon" "clk_ignore_unused"))
> (firmware '())
> - (packages (append (list cloud-utils neofetch) %base-packages))
> + (packages (append (list parted) %base-packages))
i think cloud-utils's "growpart" command is more safe tool.
just use `growpart /dev/mmcblk0 3` and `resize2fs /dev/mmcblk0p3`
see https://manpages.ubuntu.com/manpages/xenial/en/man1/growpart.1.html
> (services
> (append (list (service openssh-service-type
> (openssh-configuration
>
> base-commit: 3979812d4923e980f0069ad99332e2df7c033769
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2024-07-04 15:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-04 14:22 [bug#71940] [PATCH] system: images: Add comment how to enlarge visionfive2 root partition Florian Pelz
2024-07-04 15:11 ` pelzflorian
2024-07-04 15:43 ` Zheng Junjie [this message]
2024-07-04 22:10 ` pelzflorian
2024-07-07 9:03 ` bug#71940: " pelzflorian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87msmxw4bl.fsf@iscas.ac.cn \
--to=zhengjunjie@iscas.ac.cn \
--cc=71940@debbugs.gnu.org \
--cc=pelzflorian@pelzflorian.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).