Talk:Dualbooting

From Alpine Linux
Revision as of 16:56, 8 October 2023 by Konki (talk | contribs) (Installing Alpine on an HDD partition with dual boot (MS windows 10/11))

I'm not a computer scientist, but this should be added to the "Installing Alpine on an HDD partition" section to avoid putting off those who wish to upgrade.

to be done after basic setup-alpine if we assume that the partition is the following: /dev/nvme0n1p5 for the root /dev/nvme0n1p2 /mnt/boot/efi for the efi partition created by windows 10/11 /dev/sda4 for /home

in the following example:

apk update apk upgrade apk add dosfstools for vfat support apk add util-linux for lsblk apk add e2fsprogs for mkfs apk add efibootmgr

lslbk or fdisk -l


Format partition / mkfs.ext4 /dev/nvme0n1p5 Format /home partition mkfs.ext4 /dev/sda4

Mount the Root partition mount -t ext4 /dev/nvme0n1p5 /mnt

Mount the EFI partition created by windows mkdir -p /mnt/boot/efi mount -t vfat /dev/nvme0n1p2 /mnt/boot/efi

and create the necessary directories in EFI cd /mnt/boot/efi/EFI mkdir -p boot # attention must be lowercase not Boot # mkdir -p alpine

Mount /home partition mkdir -p /mnt/home mount -t ext4 /dev/sda4 /mnt/home

Install in /mnt partition setup-disk -m sys /mnt

reboot