Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trying to dual boot arch #3003

Open
Realrubr2 opened this issue Dec 6, 2024 · 7 comments
Open

trying to dual boot arch #3003

Realrubr2 opened this issue Dec 6, 2024 · 7 comments

Comments

@Realrubr2
Copy link

Which ISO version are you using?

Dec 1st

The installation log

Setting up swap on zram
Installing packages: ['zram-generator']
Enabling service [email protected]
Adding bootloader Grub to /dev/nvme0n1p5
Installing grub bootloader
Installing packages: ['grub']
kernel parameters: zswap.enabled=0 rootfstype=ext4
GRUB boot partition: /dev/nvme0n1p5
GRUB boot partition: /dev/nvme0n1p5
Failed to install GRUB boot on /dev/nvme0n1p5: ['/usr/bin/arch-chroot', '/mnt/archinstall', 'grub-install', '--debug', '--target=i386-pc', '--recheck', '/dev/nvme0n1'] exited with abnormal exit code [1]:  guessed root_dev `hostdisk//dev/nvme0n1' from dir `/boot/grub/i386-pc'.
grub-install: info: setting the root device to `hostdisk//dev/nvme0n1,gpt5'.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/archinstall/lib/installer.py", line 1226, in _add_grub_bootloader
    SysCommand(command + add_options, peek_output=True)
  File "/usr/lib/python3.12/site-packages/archinstall/lib/general.py", line 368, in __init__
    self.create_session()
  File "/usr/lib/python3.12/site-packages/archinstall/lib/general.py", line 417, in create_session
    with SysCommandWorker(
         ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/archinstall/lib/general.py", line 198, in __exit__
    raise SysCallError(
archinstall.lib.exceptions.SysCallError: ['/usr/bin/arch-chroot', '/mnt/archinstall', 'grub-install', '--debug', '--target=i386-pc', '--recheck', '/dev/nvme0n1'] exited with abnormal exit code [1]:  guessed root_dev `hostdisk//dev/nvme0n1' from dir `/boot/grub/i386-pc'.
grub-install: info: setting the root device to `hostdisk//dev/nvme0n1,gpt5'.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/archinstall/__init__.py", line 337, in run_as_a_module
    main()
  File "/usr/lib/python3.12/site-packages/archinstall/__init__.py", line 330, in main
    importlib.import_module(mod_name)
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3.12/site-packages/archinstall/scripts/guided.py", line 186, in <module>
    guided()
  File "/usr/lib/python3.12/site-packages/archinstall/scripts/guided.py", line 183, in guided
    perform_installation(archinstall.storage.get('MOUNT_POINT', Path('/mnt')))
  File "/usr/lib/python3.12/site-packages/archinstall/scripts/guided.py", line 52, in perform_installation
    with Installer(
         ^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/archinstall/lib/installer.py", line 113, in __exit__
    raise exc_val
  File "/usr/lib/python3.12/site-packages/archinstall/scripts/guided.py", line 89, in perform_installation
    installation.add_bootloader(
  File "/usr/lib/python3.12/site-packages/archinstall/lib/installer.py", line 1472, in add_bootloader
    self._add_grub_bootloader(boot_partition, root, efi_partition)
  File "/usr/lib/python3.12/site-packages/archinstall/lib/installer.py", line 1228, in _add_grub_bootloader
    raise DiskError(f"Failed to install GRUB boot on {boot_partition.dev_path}: {err}")
archinstall.lib.exceptions.DiskError: Failed to install GRUB boot on /dev/nvme0n1p5: ['/usr/bin/arch-chroot', '/mnt/archinstall', 'grub-install', '--debug', '--target=i386-pc', '--recheck', '/dev/nvme0n1'] exited with abnormal exit code [1]:  guessed root_dev `hostdisk//dev/nvme0n1' from dir `/boot/grub/i386-pc'.
grub-install: info: setting the root device to `hostdisk//dev/nvme0n1,gpt5'.
grub-install: warning: this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
grub-install: warning: Embedding is not possible.  GRUB can only be installed in this setup by using blocklists.  However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists.

describe the problem

Description of the issue

I was installing on arch linux on my windows pc,
I made some partitions before running the arch linux installer
nvme0n1p5 efi system mount /boot
partitioned it to fat32
nvme0n1p6 swap
nvme0n1p7 filesystem mount /
partition to ext4

runned the arch installer and got the error of not being albe to install grub,
because it does not contain a bios boot partition

what should i do to fix it because in my eyes the boot partition is set

@svartkanin
Copy link
Collaborator

Did you follow these instructions for dual boot https://github.com/archlinux/archinstall?tab=readme-ov-file#how-to-dual-boot-with-windows

@Joel101y
Copy link

i do have the same issue and i couldn't find any fix for that

@Realrubr2
Copy link
Author

I did follow the steps i reformatted the whole disk removing the windows partition. Then it eorked, seems arch is having trouble with the windows boot on the same disk

@Joel101y
Copy link

you reformatted the whole disk from arch? because i fucked up my system and im now with ubuntu, it should work right?

@Realrubr2
Copy link
Author

Yeah the full format worked when i didn't try to dual boot windows.
Now i installed windows onto a different disk. And wil implement it into grub

@Joel101y
Copy link

yeah, that happened to me either but when i install arch in the other disk it runs so slow(i think that is bc of the disk itself) so for now i give up on arch and installed kali :v

@lazysixoeight
Copy link
Contributor

did you install grub on windows' boot partition, cause it won't install properly if it's too small

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants