[arch-general] Grub installiert issue
I'm doing my first Arch install on an UEFI system and have troubles with GRUB. Following the instruction on the Wiki grub-mkconfig complained about a missing /boot/grub/grub.cfg.new. So I manually created a grub.cfg file but when rebooting Grub says error: unknown file system. In rescue mode I type set root=(hd0,gpt1) set prefix=(0,1)/boot/grub insmod normal error: disk '0,1' not found set prefix=(hd0,gpt1)/boot/grub insmod normal error: unknown filesystem set prefix=(0,gpt1)/boot/grub insmod normal error: disk 0,gpt1 not found My efi partition is the first partition on the first ssd. I think I did all I found on the Wiki and search on the web but am lost now with generating the grub.cfg Any hints please? Frank
Frank Zimmermann via arch-general <arch-general@lists.archlinux.org> wrote:
I'm doing my first Arch install on an UEFI system and have troubles with GRUB. Following the instruction on the Wiki grub-mkconfig complained about a missing /boot/grub/grub.cfg.new. So I manually created a grub.cfg file but when rebooting Grub says error: unknown file system. In rescue mode I type set root=(hd0,gpt1) set prefix=(0,1)/boot/grub insmod normal error: disk '0,1' not found set prefix=(hd0,gpt1)/boot/grub insmod normal error: unknown filesystem set prefix=(0,gpt1)/boot/grub insmod normal error: disk 0,gpt1 not found
My efi partition is the first partition on the first ssd. I think I did all I found on the Wiki and search on the web but am lost now with generating the grub.cfg
Any hints please?
Frank
1. Are there other operating systems installed? 2. Are you able to restart the installation process? Note I dondn't mean reinstall. I mean restart the installtion process in order to use its rescue capabilities. 3. Can you post your ssd partition scheme? 4. Can you tell what file system your efi partition has? And your boot partition? -- jadon
Am 19. Januar 2022 00:58:44 MEZ schrieb u34--- via arch-general <arch-general@lists.archlinux.org>:
Frank Zimmermann via arch-general <arch-general@lists.archlinux.org> wrote:
I'm doing my first Arch install on an UEFI system and have troubles with GRUB. Following the instruction on the Wiki grub-mkconfig complained about a missing /boot/grub/grub.cfg.new. So I manually created a grub.cfg file but when rebooting Grub says error: unknown file system. In rescue mode I type set root=(hd0,gpt1) set prefix=(0,1)/boot/grub insmod normal error: disk '0,1' not found set prefix=(hd0,gpt1)/boot/grub insmod normal error: unknown filesystem set prefix=(0,gpt1)/boot/grub insmod normal error: disk 0,gpt1 not found
My efi partition is the first partition on the first ssd. I think I did all I found on the Wiki and search on the web but am lost now with generating the grub.cfg
Any hints please?
Frank
1. Are there other operating systems installed? No 2. Are you able to restart the installation process? Note I dondn't mean reinstall. I mean restart the installtion process in order to use its rescue capabilities. Yes, I can boot from USB 3. Can you post your ssd partition scheme? GPT with 4 partitions nvme0n1p1 EFI System nvme0n1p2 Linux nvne0n1p3 swap nvme0n1p4 2nd partition is / with ext4 4th partition is /home with ext4 4. Can you tell what file system your efi partition has? And your boot partition? fat32
-- jadon
Frank Zimmermann via arch-general <arch-general@lists.archlinux.org> wrote:
Am 19. Januar 2022 00:58:44 MEZ schrieb u34--- via arch-general <arch-general@lists.archlinux.org>:
Frank Zimmermann via arch-general <arch-general@lists.archlinux.org> wrote:
I'm doing my first Arch install on an UEFI system and have troubles with GRUB. Following the instruction on the Wiki grub-mkconfig complained about a missing /boot/grub/grub.cfg.new. So I manually created a grub.cfg file but when rebooting Grub says error: unknown file system. In rescue mode I type set root=(hd0,gpt1) set prefix=(0,1)/boot/grub insmod normal error: disk '0,1' not found set prefix=(hd0,gpt1)/boot/grub insmod normal error: unknown filesystem set prefix=(0,gpt1)/boot/grub insmod normal error: disk 0,gpt1 not found
I am confused myself. But from the responses, it looks like (hd0,gpt1) is the correct form. Not (0,gpt1). grub manual is at https://www.gnu.org/software/grub/manual/grub/grub.html . I would try to ls (hd0,gpt1), or ls (hd0,gpt1)/, and so on, in order to see if I am acting reasonably.
My efi partition is the first partition on the first ssd. I think I did all I found on the Wiki and search on the web but am lost now with generating the grub.cfg
Any hints please?
Frank
1. Are there other operating systems installed? No 2. Are you able to restart the installation process? Note I dondn't mean reinstall. I mean restart the installtion process in order to use its rescue capabilities. Yes, I can boot from USB
Are you able to boot the installation media from usb, and start a rescue session? The emphasis here is to start a rescure session. It is probably a command line environment.
3. Can you post your ssd partition scheme? GPT with 4 partitions nvme0n1p1 EFI System nvme0n1p2 Linux nvne0n1p3 swap nvme0n1p4 2nd partition is / with ext4 4th partition is /home with ext4 4. Can you tell what fileO
With those partitions, where is /boot located? system your efi partition has? And your boot
partition? fat32
Assuming you are comfortable enough with the installation rescue session: From within the rescue shell, what are the toplevel directoriesunder the boot/ directory? In general, my suggestion is to keep a record of the commands you issue, and their responses. I think the rescue shell does not have a script like command. So one should write it to paper, or take photos with his cellular phone, or something. Actually, you seem to already done that for the grub session. So just be systematic about those records. -- jadon
-- jadon
I have a very similar system to yours with the same partitioning scheme and formats. What I did was 1. Install the bootloader with: grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB 2. then generate the grub config with: grub-mkconfig -o /boot/grub/grub.cfg Perhaps you can try this from chroot. You need to install grub and efibootmgr packages before running the above commands. Mind you, I'm a new Arch user :) ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Wednesday, January 19th, 2022 at 5:10 AM, Frank Zimmermann via arch-general <arch-general@lists.archlinux.org> wrote:
I'm doing my first Arch install on an UEFI system and have troubles with GRUB. Following the instruction on the Wiki grub-mkconfig complained about a missing /boot/grub/grub.cfg.new.
So I manually created a grub.cfg file but when rebooting Grub says error: unknown file system. In rescue mode I type
set root=(hd0,gpt1)
set prefix=(0,1)/boot/grub
insmod normal
error: disk '0,1' not found
set prefix=(hd0,gpt1)/boot/grub
insmod normal
error: unknown filesystem
set prefix=(0,gpt1)/boot/grub
insmod normal
error: disk 0,gpt1 not found
My efi partition is the first partition on the first ssd.
I think I did all I found on the Wiki and search on the web but am lost now with generating the grub.cfg
Any hints please?
Frank
Hello, As far as I know grub.cfg can be found in two locations: /boot/grub2/grub.cfg when NOT using EFI /boot/efi/EFI/arch/grub.cfg when using EFI the latter being the same as EFI/arch/grub.cfg on the EFI system partition which is mounted at /boot/efi (but usually not in a rescue system!). So if one is changed but the changes have no effect perhaps the other one needs to be modified. On my system (EFI boot with LVM on LUKS) the second (EFI) one just unlocks the / partition then chain-loads the first. Oh, and I also believe (hd0,gptN)/boot/.... would be the right form although I use /dev/mapper paths myself in my /boot/grub2/grub.cfg . Hope this helps, NTS On Wed, 19 Jan 2022 at 15:06, wingstroke via arch-general <arch-general@lists.archlinux.org> wrote:
I have a very similar system to yours with the same partitioning scheme and formats. What I did was
1. Install the bootloader with: grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB 2. then generate the grub config with: grub-mkconfig -o /boot/grub/grub.cfg
Perhaps you can try this from chroot. You need to install grub and efibootmgr packages before running the above commands. Mind you, I'm a new Arch user :)
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, January 19th, 2022 at 5:10 AM, Frank Zimmermann via arch-general <arch-general@lists.archlinux.org> wrote:
I'm doing my first Arch install on an UEFI system and have troubles with GRUB. Following the instruction on the Wiki grub-mkconfig complained about a missing /boot/grub/grub.cfg.new.
So I manually created a grub.cfg file but when rebooting Grub says error: unknown file system. In rescue mode I type
set root=(hd0,gpt1)
set prefix=(0,1)/boot/grub
insmod normal
error: disk '0,1' not found
set prefix=(hd0,gpt1)/boot/grub
insmod normal
error: unknown filesystem
set prefix=(0,gpt1)/boot/grub
insmod normal
error: disk 0,gpt1 not found
My efi partition is the first partition on the first ssd.
I think I did all I found on the Wiki and search on the web but am lost now with generating the grub.cfg
Any hints please?
Frank
Am Mittwoch, dem 19.01.2022 um 15:06 +0000 schrieb wingstroke:
I have a very similar system to yours with the same partitioning scheme and formats. What I did was
1. Install the bootloader with: grub-install --target=x86_64-efi -- efi-directory=/boot --bootloader-id=GRUB 2. then generate the grub config with: grub-mkconfig -o /boot/grub/grub.cfg
Perhaps you can try this from chroot. You need to install grub and efibootmgr packages before running the above commands. Mind you, I'm a new Arch user :)
I did all this but ended up wher I was. So I ended up removing the kernel, grub and efibootmgr from a chroot, reformatted the EFI partion and re-instlled everything. Thi time grub- install and grub-mkconfig worked without any complaints and system is booting.
Frank
participants (5)
-
Frank
-
Frank Zimmermann
-
NTS
-
u34@net9.ga
-
wingstroke