Installing 20.2 minimal on Rpi 4 using manjaro-arm-installer on Ubuntu

Has anyone managed to successfully build the minimal build fpr RPi 4 using manjaro-arm-installer on Ubuntu?

I can get it to supposedly build and write to the sd card using the instructions from @Navaron, but on boot it complains that 'ERROR : device /dev/mmcblk0p2 not found', then 'special device /dev/mmcblk0p2 does not exist' and drops me into an emercancy shell.

The sd card itself is detected during the boot.

edit

Seems that the script just creates a 94mb Boot partition on the sd card (with 37.9mb actually used). Manually creating a second partition results in - 'Root device mounted successfully, but /sbin/init does not exist. Bailing out, you are on your own. Good luck'.

Terminal output from the installation is as follows -

==> Proceeding....
  -> Getting package lists ready for rpi4 minimal edition...
==> Getting /dev/sdb ready for rpi4...
cat: /sys/block/sdb/sdb1/size: No such file or directory
expr: syntax error: missing argument after ‘+’
mount: /var/tmp/manjaro-arm-installer/root: special device /dev/sdb2 does not exist.
==> Creating install for rpi4...
  -> Used device is /dev/sdb
  -> Downloading latest aarch64 rootfs...
Manjaro-ARM-aarch64 100%[===================>] 180.91M  1.87MB/s    in 79s     
  -> Extracting aarch64 rootfs...
  -> Setting up keyrings...
  -> Generating mirrorlist...
  -> Installing packages for minimal on rpi4...
:: Synchronizing package databases...
 core                  209.2 KiB  1376 KiB/s 00:00 [######################] 100%
 extra                   2.3 MiB  2.25 MiB/s 00:01 [######################] 100%
 community               4.9 MiB  2.49 MiB/s 00:02 [######################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Package (66)                      Old Version  New Version         Net Change

core/bash                         5.0.011-2    5.0.016-1             0.00 MiB
extra/bluez-libs                               5.53-1                0.28 MiB
extra/bluez-utils                              5.53-1                6.12 MiB
core/diffutils                                 3.7-3                 1.39 MiB
core/dnssec-anchors                            20190629-2            0.00 MiB
core/file                                      5.38-3                5.74 MiB
core/gawk                                      5.0.1-2               2.78 MiB
core/gettext                                   0.20.1-3              7.33 MiB
core/glib2                        2.62.4-2     2.62.5-1              0.11 MiB
core/gmp                          6.1.2-3      6.2.0-1               0.02 MiB
core/grep                                      3.4-1                 0.68 MiB
core/groff                                     1.22.4-3              9.76 MiB
core/gzip                                      1.10-3                0.15 MiB
core/iana-etc                     20200117-1   20200224-1            0.00 MiB
core/icu                                       65.1-2               37.27 MiB
core/iproute2                                  5.5.0-1               2.85 MiB
core/iputils                                   20190709-2            0.26 MiB
core/ldns                                      1.7.1-2               1.82 MiB
core/less                                      551-3                 0.25 MiB
core/libarchive                   3.4.1-1      3.4.2-1              -0.02 MiB
core/libcap                       2.30-1       2.31-1                0.00 MiB
extra/libcroco                                 0.6.13-1              1.22 MiB
core/libedit                                   20191231_3.1-1        0.26 MiB
core/libldap                      2.4.48-2     2.4.49-1              0.01 MiB
core/libpipeline                               1.5.2-1               0.09 MiB
extra/libxml2                                  2.9.10-1              9.34 MiB
core/licenses                                  20191011-2            0.41 MiB
core/linux-firmware                            20200204.b791e15-1  520.01 MiB
core/lsb-release                               1.4-13                0.02 MiB
core/mkinitcpio                                27-2                  0.10 MiB
core/mkinitcpio-busybox                        1.31.1-1              0.53 MiB
core/mpfr                                      4.0.2-2               0.73 MiB
core/ncurses                      6.1-7        6.2-1                 0.04 MiB
core/pacman-mirrorlist            20200212-1   20200225-1            0.00 MiB
core/pciutils                                  3.6.2-2               0.25 MiB
core/procps-ng                                 3.3.15-2              1.33 MiB
core/psmisc                                    23.3-2                0.52 MiB
core/readline                     8.0.001-2    8.0.004-1             0.00 MiB
core/sed                                       4.8-1                 0.71 MiB
core/systemd-sysvcompat                        244.3-1               0.00 MiB
core/tar                                       1.32-3                2.89 MiB
core/base                                      2-2                   0.00 MiB
extra/bootsplash-systemd                       0.1.2-2               0.00 MiB
extra/bootsplash-theme-manjaro                 0.1-2                 0.61 MiB
community/brcm-patchram-plus                   r2.b146b53-1          0.04 MiB
core/dhcpcd                                    8.1.6-1               0.42 MiB
community/firmware-raspberrypi                 6-1.1                 1.05 MiB
extra/haveged                                  1.9.8-1               0.20 MiB
community/inxi                                 3.0.37-1              0.65 MiB
community/iwd                                  1.5-1                 2.70 MiB
core/linux-rpi4                                4.19.97-1            90.65 MiB
core/linux-rpi4-headers                        4.19.97-1            40.32 MiB
core/man-db                                    2.9.1-1               2.21 MiB
core/man-pages                                 5.05-1                5.56 MiB
core/manjaro-release                           20.02-1               0.00 MiB
core/manjaro-system                            20191017-1            0.02 MiB
core/nano                                      4.8-1                 2.20 MiB
community/ncdu                                 1.14.2-1              0.09 MiB
core/openssh                                   8.2p1-3               5.58 MiB
extra/parted                                   3.3-1                 2.57 MiB
community/pi-bluetooth                         1-2                   0.13 MiB
community/raspberrypi-bootloader               20200111-1.1         15.91 MiB
core/sudo                                      1.8.31-1              3.40 MiB
core/systemd                      244.2-2      244.3-1               0.00 MiB
core/systemd-libs                 244.2-2      244.3-1              -0.01 MiB
core/wpa_supplicant                            2:2.9-7               5.91 MiB

Total Installed Size:  853.28 MiB
Net Upgrade Size:      795.49 MiB

:: Proceed with installation? [Y/n] 
(66/66) checking keys in keyring                   [######################] 100%
(66/66) checking package integrity                 [######################] 100%
(66/66) loading package files                      [######################] 100%
(66/66) checking for file conflicts                [######################] 100%
(66/66) checking available disk space              [######################] 100%
:: Processing package changes...
( 1/66) upgrading iana-etc                         [######################] 100%
( 2/66) upgrading ncurses                          [######################] 100%
( 3/66) upgrading readline                         [######################] 100%
( 4/66) upgrading bash                             [######################] 100%
( 5/66) installing file                            [######################] 100%
( 6/66) upgrading gmp                              [######################] 100%
( 7/66) installing mpfr                            [######################] 100%
( 8/66) installing gawk                            [######################] 100%
( 9/66) installing grep                            [######################] 100%
(10/66) upgrading libcap                           [######################] 100%
(11/66) upgrading systemd-libs                     [######################] 100%
(12/66) installing procps-ng                       [######################] 100%
(13/66) installing sed                             [######################] 100%
(14/66) installing tar                             [######################] 100%
(15/66) upgrading glib2                            [######################] 100%
(16/66) installing icu                             [######################] 100%
(17/66) installing libxml2                         [######################] 100%
(18/66) installing libcroco                        [######################] 100%
(19/66) installing gettext                         [######################] 100%
Optional dependencies for gettext
    git: for autopoint infrastructure updates
(20/66) installing pciutils                        [######################] 100%
(21/66) installing psmisc                          [######################] 100%
(22/66) installing less                            [######################] 100%
(23/66) installing gzip                            [######################] 100%
(24/66) installing licenses                        [######################] 100%
(25/66) upgrading libldap                          [######################] 100%
(26/66) upgrading systemd                          [######################] 100%
Creating group sys with gid 3.
Creating group mem with gid 8.
Creating group ftp with gid 11.
Creating group mail with gid 12.
Creating group log with gid 19.
Creating group smmsp with gid 25.
Creating group proc with gid 26.
Creating group games with gid 50.
Creating group lock with gid 54.
Creating group network with gid 90.
Creating group floppy with gid 94.
Creating group scanner with gid 96.
Creating group power with gid 98.
Creating group adm with gid 999.
Creating group wheel with gid 998.
Creating group kmem with gid 997.
Creating group tty with gid 5.
Creating group utmp with gid 996.
Creating group audio with gid 995.
Creating group disk with gid 994.
Creating group input with gid 993.
Creating group kvm with gid 992.
Creating group lp with gid 991.
Creating group optical with gid 990.
Creating group render with gid 989.
Creating group storage with gid 988.
Creating group uucp with gid 987.
Creating group video with gid 986.
Creating group users with gid 985.
Creating group systemd-journal with gid 984.
Creating group rfkill with gid 983.
Creating group bin with gid 1.
Creating user bin (n/a) with uid 1 and gid 1.
Creating group daemon with gid 2.
Creating user daemon (n/a) with uid 2 and gid 2.
Creating user mail (n/a) with uid 8 and gid 12.
Creating user ftp (n/a) with uid 14 and gid 11.
Creating group http with gid 33.
Creating user http (n/a) with uid 33 and gid 33.
Creating group nobody with gid 65534.
Creating user nobody (Nobody) with uid 65534 and gid 65534.
Creating group dbus with gid 81.
Creating user dbus (System Message Bus) with uid 81 and gid 81.
Creating group systemd-journal-remote with gid 982.
Creating user systemd-journal-remote (systemd Journal Remote) with uid 982 and gid 982.
Creating group systemd-network with gid 981.
Creating user systemd-network (systemd Network Management) with uid 981 and gid 981.
Creating group systemd-resolve with gid 980.
Creating user systemd-resolve (systemd Resolver) with uid 980 and gid 980.
Creating group systemd-timesync with gid 979.
Creating user systemd-timesync (systemd Time Synchronization) with uid 979 and gid 979.
Creating group systemd-coredump with gid 978.
Creating user systemd-coredump (systemd Core Dumper) with uid 978 and gid 978.
Creating group uuidd with gid 68.
Creating user uuidd (n/a) with uid 68 and gid 68.
(27/66) installing systemd-sysvcompat              [######################] 100%
(28/66) installing iputils                         [######################] 100%
Optional dependencies for iputils
    xinetd: for tftpd
(29/66) installing iproute2                        [######################] 100%
Optional dependencies for iproute2
    linux-atm: ATM support
(30/66) upgrading libarchive                       [######################] 100%
(31/66) upgrading pacman-mirrorlist                [######################] 100%
:: Querying servers, this may take some time...
Australia
Denmark
-> 0.633 https://mirrors.dotsrc.org/manjaro-arm/stable/$repo/$arch
Germany
-> 0.381 https://manjaro-arm.moson.eu/stable/$repo/$arch
-> 0.407 https://smail.net.pl/manjaro-arm/stable/$repo/$arch
-> 0.351 https://manjaro-arm.moson.org/stable/$repo/$arch
Japan
-> 1.065 http://natrox.jp/pub/manjaro-arm/stable/$repo/$arch
Switzerland
-> 0.848 https://mirror.scachemaille.ch/manjaro-arm/stable/$repo/$arch
The_Netherlands
-> 0.276 http://manjaroarm.mirrors.lavatech.top/stable/$repo/$arch
-> 0.405 https://manjaroarm.mirrors.lavatech.top/stable/$repo/$arch
United_States
-> 0.896 http://ftp-osl.osuosl.org/pub/manjaro-arm/repo/stable/$repo/$arch
-> 0.662 https://manjaro-arm.ericlay.online/stable/$repo/$arch
:: Generated and saved '/etc/pacman.d/mirrorlist' mirrorlist.

hint: use `pacman-mirrors` to generate and update your pacman mirrorlist.
(32/66) installing base                            [######################] 100%
Optional dependencies for base
    linux: bare metal support [pending]
(33/66) installing manjaro-system                  [######################] 100%
(34/66) installing lsb-release                     [######################] 100%
(35/66) installing manjaro-release                 [######################] 100%
(36/66) installing linux-firmware                  [######################] 100%
(37/66) installing mkinitcpio-busybox              [######################] 100%
(38/66) installing diffutils                       [######################] 100%
(39/66) installing mkinitcpio                      [######################] 100%
Optional dependencies for mkinitcpio
    xz: Use lzma or xz compression for the initramfs image [installed]
    bzip2: Use bzip2 compression for the initramfs image [installed]
    lzop: Use lzo compression for the initramfs image
    lz4: Use lz4 compression for the initramfs image [installed]
    mkinitcpio-nfs-utils: Support for root filesystem on NFS
(40/66) installing firmware-raspberrypi            [######################] 100%
(41/66) installing linux-rpi4                      [######################] 100%
Optional dependencies for linux-rpi4
    crda: to set the correct wireless channels of your country
(42/66) installing linux-rpi4-headers              [######################] 100%
(43/66) installing raspberrypi-bootloader          [######################] 100%
(44/66) installing bootsplash-theme-manjaro        [######################] 100%
(45/66) installing bootsplash-systemd              [######################] 100%
(46/66) installing bluez-utils                     [######################] 100%
Optional dependencies for bluez-utils
    ell: for btpclient
(47/66) installing pi-bluetooth                    [######################] 100%
Enable with: systemctl enable brcm43438.service
(48/66) installing wpa_supplicant                  [######################] 100%
(49/66) installing bluez-libs                      [######################] 100%
(50/66) installing brcm-patchram-plus              [######################] 100%
(51/66) installing sudo                            [######################] 100%
warning: directory permissions differ on /etc/sudoers.d/
filesystem: 755  package: 750
(52/66) installing parted                          [######################] 100%
(53/66) installing libedit                         [######################] 100%
(54/66) installing dnssec-anchors                  [######################] 100%
(55/66) installing ldns                            [######################] 100%
Optional dependencies for ldns
    libpcap: ldns-dpa tool [installed]
(56/66) installing openssh                         [######################] 100%
Optional dependencies for openssh
    xorg-xauth: X11 forwarding
    x11-ssh-askpass: input passphrase in X
    libfido2: FIDO/U2F support
(57/66) installing haveged                         [######################] 100%
(58/66) installing inxi                            [######################] 100%
Optional dependencies for inxi
    bind-tools: -i wlan IP
    dmidecode: inxi -M if no sys machine data
    file: inxi -o unmounted file system [installed]
    hddtemp: inxi -Dx show hdd temp
    iproute2: inxi -i ip lan [installed]
    kmod: inxi -Ax,-Nx module version [installed]
    lm_sensors: inxi -s sensors output
    mesa-demos: inxi -G glx info
    net-tools: inxi -i ip lan-deprecated
    perl-io-socket-ssl: -U; -w,-W; -i (if dig not installed)
    perl-json-xs: --output json - required for export (legacy)
    systemd-sysvcompat: inxi -I runlevel [installed]
    sudo: inxi -Dx hddtemp-user;-o file-user [installed]
    tree: --debugger 20,21 /sys tree
    usbutils: inxi -A usb audio;-N usb networking
    wmctrl: -S active window manager (not all wm)
    xorg-xdpyinfo: inxi -G multi screen resolution
    xorg-xprop: inxi -S desktop data
    xorg-xrandr: inxi -G single screen resolution
(59/66) installing ncdu                            [######################] 100%
(60/66) installing nano                            [######################] 100%
(61/66) installing dhcpcd                          [######################] 100%
Optional dependencies for dhcpcd
    openresolv: resolvconf support
(62/66) installing man-pages                       [######################] 100%
(63/66) installing groff                           [######################] 100%
Optional dependencies for groff
    netpbm: for use together with man -H command interaction in browsers
    psutils: for use together with man -H command interaction in browsers
    libxaw: for gxditview
    perl-file-homedir: for use with glilypond
(64/66) installing libpipeline                     [######################] 100%
(65/66) installing man-db                          [######################] 100%
Optional dependencies for man-db
    gzip [installed]
(66/66) installing iwd                             [######################] 100%
:: Running post-transaction hooks...
( 1/13) Creating system user accounts...
( 2/13) Updating journal message catalog...
( 3/13) Reloading system manager configuration...
  Skipped: Current root is not booted.
( 4/13) Updating udev hardware database...
( 5/13) Applying kernel sysctl settings...
  Skipped: Current root is not booted.
( 6/13) Creating temporary files...
[/usr/lib/tmpfiles.d/journal-nocow.conf:26] Failed to resolve specifier: uninitialized /etc detected, skipping
All rules containing unresolvable specifiers will be skipped.
Failed to open file "/sys/devices/system/cpu/microcode/reload": Read-only file system
error: command failed to execute correctly
( 7/13) Reloading device manager configuration...
  Skipped: Device manager is not running.
( 8/13) Arming ConditionNeedsUpdate...
( 9/13) Updating module dependencies...
(10/13) Updating linux-rpi4 module dependencies...
(11/13) Updating linux-rpi4 initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-rpi4.preset: 'default'
  -> -k 4.19.97-1-MANJARO-ARM -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.19.97-1-MANJARO-ARM
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
(12/13) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-rpi4.preset: 'default'
  -> -k 4.19.97-1-MANJARO-ARM -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.19.97-1-MANJARO-ARM
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
(13/13) Reloading system bus configuration...
  Skipped: Current root is not booted.
  -> Enabling services...
  -> Applying overlay for minimal...
  -> Setting up users...
  -> Setting password for root ...
  -> Adding user...
  -> Enabling user services...
No user services for minimal edition
  -> Setting up system settings...
cp: cannot stat '/etc/ca-certificates/extracted/tls-ca-bundle.pem': No such file or directory
Generating locales...
  en_GB.UTF-8... done
Generation complete.
manjaro-arm-installer: line 192: /var/tmp/manjaro-arm-installer/root/etc/X11/xorg.conf.d/00-keyboard.conf: No such file or directory
manjaro-arm-installer: line 193: /var/tmp/manjaro-arm-installer/root/etc/X11/xorg.conf.d/00-keyboard.conf: No such file or directory
manjaro-arm-installer: line 194: /var/tmp/manjaro-arm-installer/root/etc/X11/xorg.conf.d/00-keyboard.conf: No such file or directory
manjaro-arm-installer: line 195: /var/tmp/manjaro-arm-installer/root/etc/X11/xorg.conf.d/00-keyboard.conf: No such file or directory
sed: can't read /var/tmp/manjaro-arm-installer/root/etc/X11/xorg.conf.d/00-keyboard.conf: No such file or directory
Correcting permissions from overlay...
  -> Doing device specific setups for rpi4...
  -> Cleaning install for unwanted files...
==> rpi4 minimal install complete
==> Writing bootloader and cleaning up after install...
umount: /var/tmp/manjaro-arm-installer/root: not mounted.
==> Time : 8.90 minutes...

Issue:

==> Getting /dev/sdb ready for rpi4...
cat: /sys/block/sdb/sdb1/size: No such file or directory
expr: syntax error: missing argument after ‘+’
mount: /var/tmp/manjaro-arm-installer/root: special device /dev/sdb2 does not exist.
==> Creating install for rpi4...

Are you certain that /dev/sdb is not mounted when you start?

With the sd card unmounted I get an empty boot partition and a root partition with a few files.

Terminal output is -

==> Proceeding....
  -> Getting package lists ready for rpi4 minimal edition...
==> Getting /dev/sdb ready for rpi4...
==> Creating install for rpi4...
  -> Used device is /dev/sdb
  -> Downloading latest aarch64 rootfs...
Manjaro-ARM-aarch64 100%[===================>] 180.91M  2.31MB/s    in 79s     
  -> Extracting aarch64 rootfs...
./usr/share/man/man1/perlfaq3.1perl.gz: truncated gzip input
bsdtar: Error exit delayed from previous errors.
  -> Setting up keyrings...
  -> Generating mirrorlist...
  -> Installing packages for minimal on rpi4...
mount: /var/tmp/manjaro-arm-installer/root/var/cache/pacman/pkg: mount point does not exist.
execv(pacman) failed: No such file or directory
  -> Enabling services...
  -> Applying overlay for minimal...
  -> Setting up users...
  -> Setting password for root ...
  -> Adding user...
  -> Enabling user services...
No user services for minimal edition
  -> Setting up system settings...
cp: cannot create regular file '/var/tmp/manjaro-arm-installer/root/etc/ssl/certs/': No such file or directory
cp: cannot stat '/etc/ca-certificates/extracted/tls-ca-bundle.pem': No such file or directory
execv(locale-gen) failed: No such file or directory
manjaro-arm-installer: line 192: /var/tmp/manjaro-arm-installer/root/etc/X11/xorg.conf.d/00-keyboard.conf: No such file or directory
manjaro-arm-installer: line 193: /var/tmp/manjaro-arm-installer/root/etc/X11/xorg.conf.d/00-keyboard.conf: No such file or directory
manjaro-arm-installer: line 194: /var/tmp/manjaro-arm-installer/root/etc/X11/xorg.conf.d/00-keyboard.conf: No such file or directory
manjaro-arm-installer: line 195: /var/tmp/manjaro-arm-installer/root/etc/X11/xorg.conf.d/00-keyboard.conf: No such file or directory
sed: can't read /var/tmp/manjaro-arm-installer/root/etc/X11/xorg.conf.d/00-keyboard.conf: No such file or directory
sed: can't read /var/tmp/manjaro-arm-installer/root/usr/lib/systemd/system-preset/90-systemd.preset: No such file or directory
Correcting permissions from overlay...
  -> Doing device specific setups for rpi4...
  -> Cleaning install for unwanted files...
umount: /var/tmp/manjaro-arm-installer/root/var/cache/pacman/pkg: no mount point specified.
==> rpi4 minimal install complete
==> Writing bootloader and cleaning up after install...
mv: cannot stat '/var/tmp/manjaro-arm-installer/root/boot/*': No such file or directory
==> Time : 2.07 minutes...

This seems to be what's stopping you now. It means the rootfs does not get unpacked correctly
I haven't seen that error before. But I must admit, I don't use Ubuntu.

This is also the result of running a non-Arch based distro. But it should not prohibit the install to proceed.

But the missing files from the rootfs will.

This topic was automatically closed after 90 days. New replies are no longer allowed.

Forum kindly sponsored by