Du bist nicht angemeldet.
Seiten: 1
Thema geschlossen
Hello Leute,
Ich habe linux installiert und stehe vor dem problem, dass mit "mkinitcpio -p linux" mir die Fehlermeldung: "ERROR: Unable to write to path: `/initramfs-linux.img" ausgegeben wird.
Das initramfs wird nicht erstellt.
Ich habe UEFI, und das esp unter /boot/esp gemounted und in fstab eingetragen.
Weiter versucht habe ich es mit:
"pacman -Syu" and "pacstrap /mnt linux" ,
wieder mit gleicher Fehlermeldung, dass der Pfad nicht stimmt.
Vielen Dank für eure Hilfe
Beitrag geändert von sydnei (24.03.2021 18:08:50)
Offline
Wie du bereits im englischen Forum gefragt wurdest:
1) Warum benutzt du pacstrap zum (nach-)Installieren von Paketen?
und
2) Wie sieht dein Mount-Tree aus (lsblk, mount)?
3) Warum sagst du ein Mal, dass du die ESP nach /boot mountest und dann nach /boot/efi? Was denn nun?
4) Wie sieht deine /etc/fstab aus?
5) Was ist die Ausgabe von "pacman -Qi linux mkinitcpio"?
Offline
__24.03.2021__
~sydnei
Gruesse Mr,
danke fuer die Hilfe.
Zur ersten Frage:
Ich habe pacstrap benutzt da ich vermutete, dass das Problem womoeglich mit der Installation zusammen haengt
und so aus.kreativer freiheit vom usb pacstrap linux, neu installiert.
Zur dritten Frage:
Ich habe die Bootordnung veraendert um das esp eindeutig zuzuweisen.
Hier die Ausgaben:
Name : linux
Version : 5.11.8.arch1-1
Description : The Linux kernel and modules
Architecture : x86_64
URL : https://git.archlinux.org/linux.git/log … 11.8-arch1
Licenses : GPL2
Groups : None
Provides : VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE
Depends On : coreutils kmod initramfs
Optional Deps : crda: to set the correct wireless channels of your country
linux-firmware: firmware images needed for some devices [installed]
Required By : None
Optional For : base
Conflicts With : None
Replaces : virtualbox-guest-modules-arch wireguard-arch
Installed Size : 97.47 MiB
Packager : Jan Alexander Steffens (heftig) <heftig@archlinux.org>
Build Date : Sun Mar 21 01:55:51 2021
Install Date : Mon Mar 22 21:17:09 2021
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
Name : mkinitcpio
Version : 30-1
Description : Modular initramfs image creation utility
Architecture : any
URL : https://projects.archlinux.org/mkinitcpio.git/
Licenses : GPL
Groups : None
Provides : initramfs
Depends On : awk mkinitcpio-busybox>=1.19.4-2 kmod util-linux>=2.23 libarchive coreutils bash diffutils findutils grep filesystem>=2011.10-1 zstd systemd
Optional Deps : gzip: Use gzip compression for the initramfs image [installed]
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
Required By : linux
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 102.77 KiB
Packager : Giancarlo Razzolini <grazzolini@archlinux.org>
Build Date : Wed Feb 17 02:49:42 2021
Install Date : Mon Mar 8 19:10:58 2021
Install Reason : Installed as a dependency for another package
Install Script : Yes
Validated By : Signature
# /dev/sda4 UUID=1ba535e6-8c4f-41ee-979e-4690cf273cdf
LABEL=origin / ext4 rw,relatime 0 1
# /dev/sda1 UUID=2936-FC76
/dev/sda1 /boot/esp vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
/dev/sda4 on / type ext4 (rw,relatime)
/dev/sda1 on /boot/esp type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (ro,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=4019620k,nr_inodes=1004905,mode=755,inode64)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime,inode64)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
tmp on /tmp type tmpfs (rw,nosuid,nodev,inode64)
run on /etc/resolv.conf type tmpfs (rw,nosuid,nodev,relatime,mode=755,inode64)
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 602.6M 1 loop
sda 8:0 0 465.8G 0 disk
|-sda1 8:1 0 612M 0 part /boot/esp
|-sda2 8:2 0 10G 0 part
|-sda3 8:3 0 7.8G 0 part
|-sda4 8:4 0 24G 0 part /
|-sda5 8:5 0 32G 0 part
Offline
Bitte zeige noch den Inhalt der Dateien /etc/mkinitcpio.conf und /etc/mkinitcpio.d/linux.preset sowie die vollständige Ausgabe von
# mkinitcpio -P
Und bitte poste diese Ausgaben in Code-Tags.
Offline
Hallo Mr,
mkinitcpio.conf ist system standart, es liegt keine Veränderung vor:
#
# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES=(piix ide_disk reiserfs)
MODULES=()
# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image. This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()
# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way. This is useful for config files.
FILES=()
# HOOKS
# This is the most important setting in this file. The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
## This setup specifies all modules in the MODULES setting above.
## No raid, lvm2, or encrypted root is needed.
# HOOKS=(base)
#
## This setup will autodetect all modules for your system and should
## work as a sane default
# HOOKS=(base udev autodetect block filesystems)
#
## This setup will generate a 'full' image which supports most systems.
## No autodetection is done.
# HOOKS=(base udev block filesystems)
#
## This setup assembles a pata mdadm array with an encrypted root FS.
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
# HOOKS=(base udev block mdadm encrypt filesystems)
#
## This setup loads an lvm2 volume group on a usb device.
# HOOKS=(base udev block lvm2 filesystems)
#
## NOTE: If you have /usr on a separate partition, you MUST include the
# usr, fsck and shutdown hooks.
HOOKS=(base udev modconf memdisk block filesystems keyboard)
# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
#COMPRESSION="zstd"
# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()
mkinitcpio -p will nicht in ein file übertragen werden, daher zitiere ich hier:
"
==>Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /vmlinuz-linux -c /etc/mkinitcpio.conf -g /initramfs-linux.img
==>ERROR: Unable to write to path '/initramfs-linux.img'
==>Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /vmlinuz-linux -c /etc/mkinitcpio.conf -g //initramfs-linux-fallback.img -S autodetect
==>ERROR: Unable to write to path '/initramfs-linux.img'
"
Beitrag geändert von sydnei (26.03.2021 20:15:01)
Offline
Die Ausgaben kann man dem pacman.log entnehmen, da muss man nichts abschreiben.
==>Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /vmlinuz-linux -c /etc/mkinitcpio.conf -g /initramfs-linux.img
Die übergebenen Parameter für -k und -g sind falsch, bei mir sieht das so aus:
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
Der Kernel muss von /boot geladen und das initramfs nach /boot geschrieben werden, und nicht wie bei dir ins root-Verzeichnis ("/").
mkinitcpio.conf ist system standart, es liegt keine Veränderung vor:
Bist du sicher ? Diese conf ist aktuell so nicht in den Paketquellen.
Ich habe linux installiert
Welche Linux-Distributionen vewendest du genau?
Offline
Danke Leute für eure Gedanken.
Eine neue Installation hat es für mich getan.
Es ist wirklich schwierig ohne Erklärungen für die Abläufe was das System macht irgendetwas fern vom Dargelegten machen zu können. Ich bin oft stutzig was nun jetzt die individuelle Ursache ist, dass es nicht funktioniert?!
Ich hoffe eine architektonische Darlegung mit Prozeduren wird für die nächsten Jahre als Verbesserung angesehen, denn alleinige Rezepte ohne Prinzipien machen keinen Meisterkoch.
Währe es nicht wunderbar eine interaktive Plattform mit einem originalen System zu initialisieren, welches mit Hinweisen und Erklärungen durch verschieden Systembezogen Szenarios den Lernenden führt. So etwas kann im Browser laufen und die Schicht für das Erlernen wie auf einer Webseite. Um das aufzubauen kann so stück für stück eine Gemeinsame lern und Entwickleroberfläche geschaffen werden die lebendig ist. Das würde auch die Frauen in ihrer Eigenheit zu einem Interesse an dem Systemen fördern und die Ängste und das Unwissen dieser über die gemeinsame Arbeit an diesem Projekt mindern. Ich weiß es ist nicht das Thema welches hier vormals stand, nur um es abzuschließen: es braucht eine vereinheitlichte Entwicklungskultur an der Präsent gearbeitet werden kann, dass heißt nicht dass die anderen Ebenen weggelassen werden, doch im Eigentlichen das ganze erhebt.
Falls ihr denkt es ist wichtig, dann eröffne ich ein neues Thema mit diesem Inhalt.
~sydnei
Offline
Falls ihr denkt es ist wichtig, dann eröffne ich ein neues Thema mit diesem Inhalt.
Besser nicht... ich habe so schon rein gar nichts von deinen wirren Erklärungen verstanden, und das muss man in einem neuen Thema auch nicht weiter vertiefen. Just my 2¢.
@OP: Ich hatte nicht umsonst explizit nach dem Inhalt der Datei /etc/mkinitcpio.d/linux.preset gefragt.
Darin enthalten ist nämlich der Pfad zum zu generierenden Image konfiguriert.
Deine Neuinstallation hat natürlich diesen Thread nun ad absurdum geführt und damit die Zeit jedes Helfers hier verschwendet.
Offline
Seiten: 1
Thema geschlossen