[HowTo] transportables manjaro (1)USB mit XFCE

So bitte nicht :upside_down_face:

Ich hatte den USB-stick aus Versehen noch gemountet (mit thunar) das führt dann zu folgendem Fehler:

export ALMA_USER=andreas;alma create --presets ./alma/presets/xfce-manjaro
? Select a removable device ›
❯  USB DISK 2.0 (59.53 GiB)
 2021-06-16T12:33:29.039Z INFO  alma > Formatting filesystems
mkfs.fat 4.2 (2021-01-31)
mkfs.fat: */dev/sdc1 contains a mounted filesystem*.
Error: Error formatting filesystem

...

Caused by:
    Bad exit code: exit code: 1

Also den Stick auf jeden fall unmounten, wenn man ihn vorher nochmal angeschaut hat.

Ein Weiterer Versuch mit einem 16GB USB3-Stick

Es geht nicht

export ALMA_USER=andreas ; alma create --presets ./alma/presets/xfce-manjaro
:heavy_check_mark: Select a removable device · ADATA USB Flash Drive (14.73 GiB)
2021-06-19T04:27:54.005Z INFO alma > Partitioning the block device
Caution: invalid main GPT header, but valid backup; regenerating main header
from backup!

Warning: Invalid CRC on main header data; loaded backup partition table.
Warning! Main and backup partition tables differ! Use the ‘c’ and ‘e’ options
on the recovery & transformation menu to examine the two tables.

Warning! Main partition table CRC mismatch! Loaded backup partition table
instead of main partition table!

Warning! One or more CRCs don’t match. You should repair the disk!
Main header: ERROR
Backup header: OK
Main partition table: ERROR
Backup partition table: OK

Invalid partition data!
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Information: Creating fresh partition table; will override earlier problems!

Warning! Mismatched GPT and MBR partition! MBR partition 2, of type 0xEF,
has no corresponding GPT partition! You may continue, but this condition
might cause data loss in the future!
The operation has completed successfully.
Error: Partitioning error

Caused by:
Bad exit code: exit code: 2

Partitioning error ? :sweat_smile:

Nochmal probieren ?

export ALMA_USER=andreas ; alma create --presets ./alma/presets/xfce-manjaro [1]
:heavy_check_mark: Select a removable device · ADATA USB Flash Drive (14.73 GiB)
2021-06-19T04:29:08.857Z INFO alma > Partitioning the block device
Invalid partition data!
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
Information: Creating fresh partition table; will override earlier problems!

Warning! Mismatched GPT and MBR partition! MBR partition 2, of type 0xEF,
has no corresponding GPT partition! You may continue, but this condition
might cause data loss in the future!
The operation has completed successfully
Error: Partitioning error

Caused by:
Bad exit code: exit code: 2

Partitioning error ? :thinking:

  • Das Problem war einfach, dass auf dem USB-Stick vorher ein Manjaro ISO-Image installiert war. Das ganze Medium war direkt bespielt (ohne Partitionierung und ohne Partitionstabelle)
  • Die Lösung war auch einfach. Mit gparted den Stick mit einer Partitionstabelle (GPT) versehen. Dann läuft ALMA wieder ohne Probleme durch

Fertig, 4.5GiB used = ca.31% :slight_smile:


P.S. Auf dem Stick ist Kernel 5.4.124 installiert worden.

Aufräumen

Wer das nicht wieder braucht, kann alma deinstallieren.

pamac remove alma-git

Die Presets die mit git clone angelegt wurden kann man einfach im Dateimanager löschten. Der Ordnet heißt alma.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.

Danke für dein HowTo … habe es mal Testweise versucht, da mein alter Persistent-USB mit 16GB beim Update vollgelaufen war…

bekomme leider immer folgende Fehler meldung … und habe spontan keine Lösung dafür gefunden…

export ALMA_USER=bastiusb ; alma create --presets ./presets/xfce-manjaro/
✔ Select a removable device ·  USB  SanDisk 3.2Gen1 (57.30 GiB)
 2022-11-12T07:49:11.943Z INFO  alma > Partitioning the block device
Problem opening  +�YU for reading! Error is 2.
The specified file does not exist!
Problem opening '' for writing! Program will now terminate.
Warning! MBR not overwritten! Error is 2!
Information: Creating fresh partition table; will override earlier problems!
Caution! Secondary header was placed beyond the disk's limits! Moving the
header, but other problems may occur!
Unable to open device '' for writing! Errno is 2! Aborting write!
Error: Partitioning error

Caused by:
    Bad exit code: exit status: 4
/dev/sda: PTUUID="a0993ded-463e-44d6-9fef-109ccca9c614" PTTYPE="gpt"

Jemand ne Idee für nen Denkanstoß? :wink:

Existiert der preset an der angegebenen Stelle ? (./presets/xfce-manjaro/)

Hab erst vor 2-3 Monaten zuletzt einen gemacht (siehe “Update”) . Da gings noch.

Jawohl ja, soweit sollte alles da sein?!

ls -al presets/
insgesamt 60
drwxr-xr-x 6 kueche kueche 4096 12. Nov 08:44 .
drwxr-xr-x 5 kueche kueche 4096 12. Nov 08:43 ..
-rw-r--r-- 1 kueche kueche   52 12. Nov 08:43 aur_example.toml
drwxr-xr-x 2 kueche kueche 4096 12. Nov 08:43 copy_file_example
-rw-r--r-- 1 kueche kueche  149 12. Nov 08:43 copy_file.toml
-rw-r--r-- 1 kueche kueche  135 12. Nov 08:43 kde.toml
-rw-r--r-- 1 kueche kueche  179 12. Nov 08:43 pamac.toml
-rw-r--r-- 1 kueche kueche  253 12. Nov 08:43 user.toml
drwxr-xr-x 2 kueche kueche 4096 12. Nov 08:43 xfce
drwxr-xr-x 2 kueche kueche 4096 12. Nov 08:43 xfce-branding
-rw-r--r-- 1 kueche kueche  336 12. Nov 08:44 xfce-branding.toml
-rw-r--r-- 1 kueche kueche  187 12. Nov 08:43 xfce-goodies.toml
drwxr-xr-x 2 kueche kueche 4096 12. Nov 08:43 xfce-manjaro
-rw-r--r-- 1 kueche kueche  138 12. Nov 08:43 xfce.toml
-rw-r--r-- 1 kueche kueche  120 12. Nov 08:43 xorg.toml
ls -al presets/xfce-manjaro/
insgesamt 8
drwxr-xr-x 2 kueche kueche 4096 12. Nov 08:43 .
drwxr-xr-x 6 kueche kueche 4096 12. Nov 08:44 ..
lrwxrwxrwx 1 kueche kueche   12 12. Nov 08:43 01-xorg.toml -> ../xorg.toml
lrwxrwxrwx 1 kueche kueche   12 12. Nov 08:43 02-user.toml -> ../user.toml
lrwxrwxrwx 1 kueche kueche   12 12. Nov 08:43 03-xfce.toml -> ../xfce.toml
lrwxrwxrwx 1 kueche kueche   20 12. Nov 08:43 04-xfce-goodies.toml -> ../xfce-goodies.toml
lrwxrwxrwx 1 kueche kueche   21 12. Nov 08:43 05-xfce-branding.toml -> ../xfce-branding.toml
lrwxrwxrwx 1 kueche kueche   13 12. Nov 08:43 06-pamac.toml -> ../pamac.toml
lrwxrwxrwx 1 kueche kueche   16 12. Nov 08:43 xfce-branding -> ../xfce-branding

Auch das wurde erledigt…

Habe es gestern & heute an verschiedenen Systemen versucht. Ich denke es liegt entweder an mir (brainlag) oder irgendwo im Rust-Code?

Auch ein image ala:

sudo alma create -e --image 10GiB almatest.img

klappt nicht. Wird in ms erstellt und dann abgebrochen.

Habe mal zur Not die “alte Persisten USB 20.0.3” genommen, auf den USB-Stick gebrutzelt und geupdatet. Lüppt…aber nicht die feine Art denke ich :wink:

Hi,

super tutorial!

Leider bekomme ich eine fehlermeldung:

Failed to load preset: '/etc/mkinitcpio.d/linux.preset'
Error: Failed to run mkinitcpio - do you have the base and linux packages installed?

Caused by:
    Bad exit code: exit status: 1

mkinitcpio ist natürlich installiert.
Im endsprechenden Verzeichnis sieht es so aus:

ls /etc/mkinitcpio.d/
linux515.preset  linux61.preset

linux.preset gibt es nur unter ArchLinux, nicht aber unter Manjaro. Das ist wirklich merkwürdig, warum es nach diesem Preset sucht.

1 Like

wäre es möglich von linux.preset auf zB linux61.preset zu linken?

Ich hab mal einen Softlink gesetzt, die Fehlermeldung bleibt leider die gleiche.

Vor kurzem habe ich noch alma getestet und es funktioniert mit kleinen Änderungen.

geändert werden muss in Datei:

xfce-branding.toml -> lösche "manjaro-documentation-en", "manjaro-firmware"
packages = ["manjaro-xfce-settings", "manjaro-hello", "manjaro-application-utility", "manjaro-settings-manager-notifier", "manjaro-browser-settings", "manjaro-release", "manjaro-system"]
xfce-goodies.toml -> lösche "pulseaudio" -> hinzugefügt "pipewire"
packages = ["xfce4-goodies", "xfce4-pulseaudio-plugin", "pipewire", "pavucontrol", "mugshot", "engrampa", "catfish", "firefox", "screenfetch", "thunderbird", "network-manager-applet"]

Habe dann mit folgendem Befehl ein Image erstellt:

Verschlüsselt:
sudo ALMA_USER=test alma create -e --image 10GiB mjoUSB.img --presets ./presets/xfce-manjaro

Unverschlüsselt:
sudo ALMA_USER=test alma create --image 10GiB mjoUSB.img --presets ./presets/xfce-manjaro

Image startet in qemu/kvm und läuft soweit.

Leider bekomme ich es nicht hin, die Boot-Partition größer als 250MB zu erstellen. Nervt ein bissel wenn man 2,3 Kernel installiert haben möchte.

main.rs → leider wird “–new=1::+350M”, nicht angenommen :frowning:

:warning: Note: This project is no longer maintained, and some people have reported that it made their host system unbootable. Use at your own risk.

Hinweis: Dieses Projekt wird nicht mehr gepflegt und einige Leute haben berichtet, dass es ihr Hostsystem nicht mehr booten konnte. Benutzung auf eigene Gefahr.

*Update 24-05-2023

  • ALMA-Repo´s philmmanjaro und r-darwish als Merge zusammengeführt.
  • Boot-Size auf +450MB vergrößert
  • Linux61 default Kernel & mkinitcpio gesetzt
  • Version update Rust & Cargo Abhängigkeiten
  • PKGBUILD erstellt → alma-aur → r139.36136c3-1
pacman -Qi alma-aur
Name                     : alma-aur
Version                  : r139.36136c3-1
Beschreibung             : Create Arch Linux based live USB
Architektur              : x86_64
URL                      : https://codeberg.org/PurpleCow4u/alma
Lizenzen                 : GPL3
Gruppen                  : Nichts
Stellt bereit            : alma
Hängt ab von             : gptfdisk  parted  arch-install-scripts  dosfstools  coreutils  util-linux
Optionale Abhängigkeiten : cryptsetup: for root filesystem encryption [Installiert]
Benötigt von             : Nichts
Optional für             : Nichts
In Konflikt mit          : alma  alma-git
Ersetzt                  : Nichts
Installationsgröße       : 1816,68 KiB
Packer                   : Unknown Packager
Erstellt am              : Mi 24 Mai 2023 20:01:16 CEST
Installiert am           : Mi 24 Mai 2023 20:02:13 CEST
Installationsgrund       : Ausdrücklich installiert
Installations-Skript     : Nein
Verifiziert durch        : Nichts
alma -v
alma 0.11.0
Arch Linux Mobile Appliance
.srcinfo
pkgbase = alma-aur
	pkgdesc = Create Arch Linux based live USB
	pkgver = r139.36136c3-1
	pkgrel = 1
	url = https://codeberg.org/PurpleCow4u/alma
	arch = x86_64
	license = GPL3
	makedepends = git
	makedepends = rust
	depends = gptfdisk
	depends = parted
	depends = arch-install-scripts
	depends = dosfstools
	depends = coreutils
	depends = util-linux
	optdepends = cryptsetup: for root filesystem encryption
	provides = alma
	conflicts = alma
	conflicts = alma-git
	source = git+https://codeberg.org/PurpleCow4u/alma
	sha256sums = SKIP

pkgname = alma-aur

Liegt auf codeberg.org

1 Like

Now we should do one with LXQT :slight_smile:

made something quickly

i still need the approval of @linux-aarhus

2 Likes

NICE!

You are most welcome - nice to see the ISO put to something useful :slight_smile:

I have been experimenting to do exactly what you are doing now - albeit very different.

So go ahead :slight_smile:

If needed I can provide download location for the portable image as well.

1 Like

I created a preset (from template fhdk/lxqt-kwin) for LXQt.

command to create a lxqt-kwin image
sudo ALMA_USER=test alma create -e --image 10GiB almatest_lxqt-kwin-fhdk.img --presets ./presets/lxqt-kwin-fhdk
log from create
INFO  alma                       > Running custom scripts
+ useradd -m test
+ passwd test
New password: 
Retype new password: 
passwd: password updated successfully
+ usermod -G users,lp,video,network,storage,wheel,audio -a test
+ echo '%wheel ALL=(ALL) ALL'
+ systemctl enable NetworkManager
Created symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service → /usr/lib/systemd/system/NetworkManager.service.
Created symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service → /usr/lib/systemd/system/NetworkManager-dispatcher.service.
Created symlink /etc/systemd/system/network-online.target.wants/NetworkManager-wait-online.service → /usr/lib/systemd/system/NetworkManager-wait-online.service.
+ systemctl enable sddm
Created symlink /etc/systemd/system/display-manager.service → /usr/lib/systemd/system/sddm.service.
+ systemctl enable firewalld
Created symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service → /usr/lib/systemd/system/firewalld.service.
Created symlink /etc/systemd/system/multi-user.target.wants/firewalld.service → /usr/lib/systemd/system/firewalld.service.
+ git clone https://github.com/fhdk/lxqt-kwin.git
Cloning into 'lxqt-kwin'...
remote: Enumerating objects: 309, done.
remote: Counting objects: 100% (309/309), done.
remote: Compressing objects: 100% (226/226), done.
remote: Total 309 (delta 91), reused 195 (delta 26), pack-reused 0
Receiving objects: 100% (309/309), 833.63 KiB | 6.72 MiB/s, done.
Resolving deltas: 100% (91/91), done.
+ cp -r lxqt-kwin/etc/. /etc/
+ cp -r lxqt-kwin/usr/. /usr/
+ cp -r lxqt-kwin/root/. /root/
+ systemctl enable apparmor
Created symlink /etc/systemd/system/multi-user.target.wants/apparmor.service → /usr/lib/systemd/system/apparmor.service.
+ systemctl enable snapd.apparmor
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.apparmor.service → /usr/lib/systemd/system/snapd.apparmor.service.
+ systemctl enable snapd
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.service → /usr/lib/systemd/system/snapd.service.

Is download location required when creating an image in 3 minutes?

no - ideally not :slight_smile:

 $ buildiso -p lxqt-kwin-mini -k linux64
[...]
 --> Time prepare_images: 1.58 minutes
[...]
==> Done [Build ISO]
 --> Time compress_images: 1.87 minutes
==> Finished building [lxqt-kwin-mini]
 --> Time make_profile: 3.50 minutes

But not everyone has the luxury of such system.

 $ inxi -SCGm
System:
  Host: tiger Kernel: 6.3.4-1-MANJARO arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.27.5 Distro: Manjaro Linux
Memory:
  System RAM: available: 62.62 GiB used: 5.05 GiB (8.1%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges
    required.
CPU:
  Info: 12-core model: AMD Ryzen Threadripper PRO 5945WX s bits: 64
    type: MT MCP cache: L2: 6 MiB
  Speed (MHz): avg: 2136 min/max: 1800/7015 cores: 1: 4100 2: 4100 3: 1800
    4: 1800 5: 1800 6: 1800 7: 1800 8: 1800 9: 1800 10: 1800 11: 1839 12: 4100
    13: 1800 14: 1800 15: 1800 16: 1800 17: 1800 18: 1800 19: 1800 20: 1800
    21: 1800 22: 1800 23: 2940 24: 1800
Graphics:
  Device-1: AMD Navi 31 [Radeon RX 7900 XT/7900 XTX] driver: amdgpu v: kernel
  Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.1
    compositor: kwin_wayland driver: X: loaded: amdgpu
    unloaded: modesetting,radeon dri: radeonsi gpu: amdgpu
    resolution: 5120x1440
  API: OpenGL v: 4.6 Mesa 23.0.3 renderer: AMD Radeon RX 7900 XTX (gfx1100
    LLVM 15.0.7 DRM 3.52 6.3.4-1-MANJARO)

@Lila-Kuh
Thats really great! My plan was to change XFCE in LXQT after installation.

unfortunately I get the same error like before.
==> ERROR: Failed to load preset: '/etc/mkinitcpio.d/linux.preset'

Any ideas?

btw…
maybe you should link your alma git. it was not as easy to find :wink:

I’m surprised that!

the script should actually look for linux515(old) or linux61(new)

  • did you recompile alma? with rustup/cargo or alma-aur?
  • Dependencies installed and up to date?
    – gptfdisk, parted, arch-install-scripts, dosfstools, coreutils, util-linux

are you trying to create an image or directly to usb?

alma-aur build quick commands
git clone https://codeberg.org/PurpleCow4u/PKGBUILD.git
cd PKGBUILD/alma/
makepkg -si

after installing it can be checked with alma -v (v0.11.0)

Dependencies all on board.
Alma comes from the aur, the git version.

I tried it now with your alma version. Now it works. It seems the problem is the alma-git.
Many thanks!

1 Like