You are not logged in.

#1 2022-09-16 07:02:10

bamboo1539
Member
Registered: 2022-09-16
Posts: 7

[SOLVED] Will Arch overwrite my existing /boot/efi?

I have an existing Debian system which I am using as a launching pad for my Arch installation. So I am following the instructions in Install Arch Linux from existing Linux.

So far, I have managed to chroot and now I am directed to the normal installation guide and jump straight to Mount the file systems

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda         ...   redacted   ... disk
├─sda1                           part              # want to make this the Arch root partition
└─sda2                           part              # want to make this the Arch home partition
nvme0n1                          disk
├─nvme0n1p1                      part /            # Debian root partition
├─nvme0n1p2                      part
├─nvme0n1p3                      part /boot/efi    # This was installed automatically by Debian
├─nvme0n1p4                      part
├─nvme0n1p5                      part /home        # Debian home partition
└─nvme0n1p6                      part [SWAP]

While inside the chroot as sudo, I ought to do the following according to the Installation Guide:

# mount /dev/sda1 /mnt
# mount --mkdir /dev/nvme0n1p3 /mnt/boot
# swapon /dev/nvme0n1p6

I am apprehensive about what Arch will do to my existing /boot/efi.

I went and read ahead the following:

  1. Boot loader

  2. GRUB

  3. GRUB - Custom grub.cfg

I would rather NOT automate my GRUB setup.

Questions

  1. Am I on the right track going for the custom grub.cfg? Is there something I need to look out for?

  2. If I am able to create my own grub menuentry, what use is mounting /boot/efi? I feel like I want to Keep it secret. Keep it safe from the Arch installer.

Last edited by bamboo1539 (2022-09-17 09:31:58)

Offline

#2 2022-09-16 09:34:27

jeffm
Member
From: victoria, australia
Registered: 2019-04-06
Posts: 26

Re: [SOLVED] Will Arch overwrite my existing /boot/efi?

I would follow the arch install procedure for /dev/sda1 and 2. But no need to run grub-install process.

Once you have the arch system and kernel installed, boot into the debian system and update grub to detect new arch system (via os_prober) . Don't edit grub.cfg manually, use the update-grub utility or run grub-mkconfig -o /boot/grub/grub.cfg

There is no need to mess with the uefi settings if you always intend to boot from the existing debian uefi/grub entry - which I presume already works

I run 2 arch OS's like this.

hope this helps.

Offline

#3 2022-09-16 10:02:24

bamboo1539
Member
Registered: 2022-09-16
Posts: 7

Re: [SOLVED] Will Arch overwrite my existing /boot/efi?

jeffm wrote:

I would follow the arch install procedure for /dev/sda1 and 2. But no need to run grub-install process.

As I understand, I can go through the Installation Guide all the way to the following:

  1. DO THIS Root password

  2. SKIP THIS GRUB / UEFI Systems / Installation. This has the grub-install instruction.

  3. DO THIS GRUB / Configuration / Generated grub.cfg. This has the instructions for os-prober, update-grub and grub-mkconfig.

Offline

#4 2022-09-16 10:23:25

jeffm
Member
From: victoria, australia
Registered: 2019-04-06
Posts: 26

Re: [SOLVED] Will Arch overwrite my existing /boot/efi?

1. yes and add a user and user password , according the the arch install instructions
2. yes
3. nope - do the grub modifications from the debian system - assuming you have os-prober active, when you run update-grub in debian , it should detect the new arch system on /dev/sda1 and add a menuentry to grub.cfg. Look for /etc/grub.d/30_os-prober, make sure it is executable. update-grub does the same thing as grub-mkconfig. Then when you boot there should be a new menuentry called linux-<something> (on /dev/sda1). This should boot you into the new arch system, if all has been done correctly. Once you are there you can follow the rest on the configuration processes

Offline

#5 2022-09-16 22:47:08

bamboo1539
Member
Registered: 2022-09-16
Posts: 7

Re: [SOLVED] Will Arch overwrite my existing /boot/efi?

When I got to the point to do grub-mkconfig, I did the following to make sure I understood the changes and compare with my existing /boot/grub/grub.cfg

$ sudo grub-mkconfig -o /some/scratchpad/directory/grub.cfg

Thank you for the help, @jeffm! I was able to install Arch Linux. It's still a command-line system as of now, but my dotfiles are helping to set it up quickly.

How do I mark this as SOLVED?

Offline

#6 2022-09-16 23:04:17

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] Will Arch overwrite my existing /boot/efi?

bamboo1539 wrote:

How do I mark this as SOLVED?

Edit your first post (this will allow you to also edit the title) and add [SOLVED] to the tile. Read "How to post" linked below.

Offline

Board footer

Powered by FluxBB