View previous topic :: View next topic |
Author |
Message |
Jean-Paul Guru
Joined: 13 Apr 2009 Posts: 307
|
Posted: Fri Mar 01, 2024 1:12 pm Post subject: [solved] was ist mit grub los |
|
|
Ich habe kürzlich grub auf v2.12 aktuallisiert und mit
Quote: | grub-install --efi-directory=/boot/efi
grub-mkconfig -o /boot/grub/grub.cfg |
abgeschlossen.
Die Meldungen, dass er jetzt den Kernel und die Initrd läd gefallen mit zwar nicht, aber sonst funktionert alles.
Jetzt finde ich ein weiteres Verzeichnis /efi unter / in dem exakt das Selbe steht wie unter /boot/efi
Code: | tree /efi
/efi
└── EFI
└── Gentoo
├── fw
│ └── fwupd-603baf73-b997-45b5-86b4-2f981a008e18.cap
├── fwupdx64.efi
└── grubx64.efi
4 directories, 3 files
tree /boot/efi/
/boot/efi/
└── EFI
└── Gentoo
├── fw
│ └── fwupd-603baf73-b997-45b5-86b4-2f981a008e18.cap
├── fwupdx64.efi
└── grubx64.efi
4 directories, 3 files |
Kopiere ich z.B. etwas nach /efi/EFI erscheint dies auch unter /boot/efi/EFI.
Ich sehe aber nicht dass hier etwas verlinkt ist.
Wenn ich z.B. /efi lösche, bootet das System nicht mehr.
esp habe ich unter /boot/efi gemountet:
Code: |
PARTUUID=764096f9-24e7-4c0b-b296-904e34a15647 /boot/efi vfat defaults,noatime 0 2
|
Hat dazu jemand eine Idee ? _________________ ”Everything should be made as simple as possible, but no simpler.” – Albert Einstein
Last edited by Jean-Paul on Fri Mar 01, 2024 3:37 pm; edited 1 time in total |
|
Back to top |
|
|
Max Steel Advocate
Joined: 12 Feb 2007 Posts: 2247 Location: My own world! I and Gentoo!
|
Posted: Fri Mar 01, 2024 1:18 pm Post subject: |
|
|
was sind die Ausgaben wenn du die Befehle lsblk oder mount ausführst?
Und was sagt ls -laF /efi/EFI/gentoo/ /boot/efi/EFI/gentoo? _________________ mfg
Steel
___________________
Heim-PC: AMD Ryzen 5950X, 64GB RAM, GTX 1080
Laptop: Intel Core i5-4300U, 16GB RAM, Intel Graphic
Arbeit-PC: Intel i5-1145G7, 16GB RAM, Intel Iris Xe Graphic (leider WSL2) |
|
Back to top |
|
|
Jean-Paul Guru
Joined: 13 Apr 2009 Posts: 307
|
Posted: Fri Mar 01, 2024 1:28 pm Post subject: |
|
|
Danke erstmal für die schnelle Antwort.
lsblk ist soweit ich es seh okay.
Code: | lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 476,9G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /efi
│ /boot/efi
├─nvme0n1p2 259:2 0 46G 0 part /
├─nvme0n1p3 259:3 0 410G 0 part /home
└─nvme0n1p4 259:4 0 20,4G 0 part |
Aber nvme0n1p1 wird merkwürdigerweise 2x gemountet.
Jetzt ist die Frage, wer oder was löst den zweiten mount auf /efi aus ?
Code: | /dev/nvme0n1p2 on / type ext4 (rw,noatime,commit=120)
...
/dev/nvme0n1p1 on /boot/efi type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
/dev/nvme0n1p3 on /home type ext4 (rw,noatime,commit=120)
/dev/nvme0n1p1 on /efi type vfat (rw,nosuid,nodev,noexec,relatime,nosymfollow,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)
... |
_________________ ”Everything should be made as simple as possible, but no simpler.” – Albert Einstein |
|
Back to top |
|
|
Max Steel Advocate
Joined: 12 Feb 2007 Posts: 2247 Location: My own world! I and Gentoo!
|
Posted: Fri Mar 01, 2024 1:29 pm Post subject: |
|
|
Code: | grep -rR '/efi' /etc/ |
kann dabei helfen
Gib die Ausgabe hier rein.
Es gibt ein paar Dinge die man ja direkt aussortieren kann z.B. /etc/mtab. _________________ mfg
Steel
___________________
Heim-PC: AMD Ryzen 5950X, 64GB RAM, GTX 1080
Laptop: Intel Core i5-4300U, 16GB RAM, Intel Graphic
Arbeit-PC: Intel i5-1145G7, 16GB RAM, Intel Iris Xe Graphic (leider WSL2) |
|
Back to top |
|
|
Jean-Paul Guru
Joined: 13 Apr 2009 Posts: 307
|
Posted: Fri Mar 01, 2024 1:39 pm Post subject: |
|
|
Hier die Ausgabe.
Das hier "/etc/mtab:systemd-1 /efi ..." scheint den mount auszulösen.
Code: | grep -rR '/efi' /etc/
/etc/grub.d/35_fwupd: ls /sys/firmware/efi/efivars/fwupd-*-0abba7dc-e516-4167-bbf5-4d9d1c739416 1>/dev/null 2>&1; then
/etc/fstab:PARTUUID=764096f9-24e7-4c0b-b296-904e34a15647 /boot/efi vfat defaults,noatime 0 2
/etc/fstab:#/dev/nvme0n1p1 /boot/efi vfat defaults 0 2
/etc/fstab:#LABEL=esp_boot /boot/efi vfat defaults 0 2
/etc/mtab:efivarfs /sys/firmware/efi/efivars efivarfs rw,nosuid,nodev,noexec,relatime 0 0
/etc/mtab:systemd-1 /efi autofs rw,relatime,fd=41,pgrp=1,timeout=120,minproto=5,maxproto=5,direct 0 0
/etc/mtab:/dev/nvme0n1p1 /boot/efi vfat rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
/etc/mtab:/dev/nvme0n1p1 /efi vfat rw,nosuid,nodev,noexec,relatime,nosymfollow,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 0
grep: /etc/systemd/system/multi-user.target.wants/virtualbox-guest-additions.service: Datei oder Verzeichnis nicht gefunden
grep: /etc/systemd/system/multi-user.target.wants/haveged.service: Datei oder Verzeichnis nicht gefunden
grep: /etc/systemd/system/multi-user.target.wants/ecbd.service: Datei oder Verzeichnis nicht gefunden
grep: /etc/systemd/system/multi-user.target.wants/libvirtd.service: Datei oder Verzeichnis nicht gefunden
grep: /etc/systemd/system/bluetooth.target.wants/bluealsa.service: Datei oder Verzeichnis nicht gefunden
grep: /etc/systemd/system/sockets.target.wants/virtlogd.socket: Datei oder Verzeichnis nicht gefunden
grep: /etc/systemd/system/sockets.target.wants/virtlockd.socket: Datei oder Verzeichnis nicht gefunden
grep: /etc/systemd/system/sockets.target.wants/libvirtd.socket: Datei oder Verzeichnis nicht gefunden
grep: /etc/systemd/system/sockets.target.wants/libvirtd-ro.socket: Datei oder Verzeichnis nicht gefunden
/etc/mime.types:application/efi efi |
_________________ ”Everything should be made as simple as possible, but no simpler.” – Albert Einstein |
|
Back to top |
|
|
Max Steel Advocate
Joined: 12 Feb 2007 Posts: 2247 Location: My own world! I and Gentoo!
|
Posted: Fri Mar 01, 2024 1:48 pm Post subject: |
|
|
Die mtab ist nur ein Link auf /proc/self/mounts und zeigt nur die aktuell gemounteten Dateisystem. Daher mein Hinweis dass die mtab aussortiert werden kann
Aber systemd... hmmm... vielleicht weiß ja jemand der systemd Gurus hier mehr darüber. (Hab keine systemd Installationen im Einsatz, sorry)
Da kann dann das schauen mit grep -rR '/efi' /lib/systemd eventuell helfen.
Aber viel kann ich nicht mehr beisteuern. Wie gesagt, ich nutze kein systemd-System. _________________ mfg
Steel
___________________
Heim-PC: AMD Ryzen 5950X, 64GB RAM, GTX 1080
Laptop: Intel Core i5-4300U, 16GB RAM, Intel Graphic
Arbeit-PC: Intel i5-1145G7, 16GB RAM, Intel Iris Xe Graphic (leider WSL2) |
|
Back to top |
|
|
Jean-Paul Guru
Joined: 13 Apr 2009 Posts: 307
|
Posted: Fri Mar 01, 2024 1:56 pm Post subject: |
|
|
Ich danke dir dennoch für deine Schupser in die richtige Richtung.
Mal schauen, ob ich da was rausfinden kann. _________________ ”Everything should be made as simple as possible, but no simpler.” – Albert Einstein |
|
Back to top |
|
|
firefly Watchman
Joined: 31 Oct 2002 Posts: 5237
|
Posted: Fri Mar 01, 2024 2:12 pm Post subject: |
|
|
Laut dem hier
https://bbs.archlinux.org/viewtopic.php?pid=2006888#p2006888
Quote: | It's systemd-gpt-auto-generator that mounts it. And the reason it mounts it is because you had created the /efi directory.
You get rid of it, you first need to disable and stop the mount and automount units, only afterwards you'll be able to delete the directory.
IIRC the units should be efi.automount and efi.mount, check by running:
$ systemctl list-units --type=automount
|
ist es der systemd-gpt-auto-generator der verursacher
Denn bei mir wird die efi parition nicht von systemd gemounted. Wobei ich noch zusätzlich notauto in der fstab drinn habe. _________________ Ein Ring, sie zu knechten, sie alle zu finden,
Ins Dunkel zu treiben und ewig zu binden
Im Lande Mordor, wo die Schatten drohn. |
|
Back to top |
|
|
Jean-Paul Guru
Joined: 13 Apr 2009 Posts: 307
|
Posted: Fri Mar 01, 2024 2:23 pm Post subject: |
|
|
Ja, den hab ich auch gefunden und dann mal ein
Code: | systemctl status efi.automount
● efi.automount - EFI System Partition Automount
Loaded: loaded (/run/systemd/generator.late/efi.automount; generated)
Active: active (running) since Fri 2024-03-01 09:46:30 CET; 5h 34min ago
Triggers: ● efi.mount
Where: /efi
Docs: man:systemd-gpt-auto-generator(8)
Mär 01 09:46:30 thinkpad systemd[1]: Set up automount EFI System Partition Automount.
Mär 01 09:46:34 thinkpad systemd[1]: efi.automount: Got automount request for /efi, triggered by 625 (systemd-logind) |
gemacht und unter /run/systemd/generator.late/ den efi.automount gefunden.
Den werde ich jetzt mal löschen/verschieben und schauen was passiert. _________________ ”Everything should be made as simple as possible, but no simpler.” – Albert Einstein |
|
Back to top |
|
|
Max Steel Advocate
Joined: 12 Feb 2007 Posts: 2247 Location: My own world! I and Gentoo!
|
Posted: Fri Mar 01, 2024 2:47 pm Post subject: |
|
|
Wenn ich das richtig verstanden habe
firefly wrote: | Quote: | It's systemd-gpt-auto-generator that mounts it. And the reason it mounts it is because you had created the /efi directory.
You get rid of it, you first need to disable and stop the mount and automount units, only afterwards you'll be able to delete the directory.
IIRC the units should be efi.automount and efi.mount, check by running:
|
|
Reicht es systemctl stop efi.mount efi.automount auszuführen und den Ordner /efi (danach) zu löschen. (mit rmdir am besten). _________________ mfg
Steel
___________________
Heim-PC: AMD Ryzen 5950X, 64GB RAM, GTX 1080
Laptop: Intel Core i5-4300U, 16GB RAM, Intel Graphic
Arbeit-PC: Intel i5-1145G7, 16GB RAM, Intel Iris Xe Graphic (leider WSL2) |
|
Back to top |
|
|
Jean-Paul Guru
Joined: 13 Apr 2009 Posts: 307
|
Posted: Fri Mar 01, 2024 3:37 pm Post subject: |
|
|
Max Steel wrote: | Reicht es systemctl stop efi.mount efi.automount auszuführen und den Ordner /efi (danach) zu löschen. (mit rmdir am besten). |
Nein, reicht nicht - auch nicht ein anschließendes 'disable'. Nach reboot ist alles wieder da.
Ich hab jetzt grub nochmals neu installiert mit --efi-directory=/efi, dann /boot/efi gelöscht und die fstab korrigiert.
Nochmals Dank an alle. _________________ ”Everything should be made as simple as possible, but no simpler.” – Albert Einstein |
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 123 Location: Cologne / Germany
|
Posted: Sat Mar 02, 2024 10:40 am Post subject: |
|
|
Hier ist der Bug:
https://bugs.gentoo.org/show_bug.cgi?id=920708[/url] _________________ Regards
soundrolf
Mobo: ASUS PRIME B550M-K BIOS 3302 08/01/2023
CPU: AMD Ryzen 7 5800X 8-Core Processor (16) @ 3800 MHz
GPU: AMD Caicos Radeon HD 6450/7450/8450 / R5 230 OEM 1GB DDR3
RAM: 80GB crucial DDR4 3200 MHz 2x8GB 2x32GB |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|