Talk:Dualbooting: Difference between revisions

From Alpine Linux
m (Unsigned comment attribution. Reply.)
(Installing Alpine on an HDD partition with dual boot (MS windows 10/11))
Line 1: Line 1:
1.
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.  
    alp:/# updqate-grub2
    /bin/ash: updqate-grub2: not found


And package absent
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


2.
in the following example:


<pre>
apk update 
alp:/# grub-mkconfig -o /boot/grub/grub.cfg
apk upgrade 
Generating grub configuration file ...
apk add dosfstools for vfat support 
Found linux image: /boot/vmlinuz-lts
apk add util-linux for lsblk 
Found initrd image: /boot/initramfs-lts
apk add e2fsprogs for mkfs 
Warning: os-prober will be executed to detect other bootable partitions.
apk add efibootmgr
Its output will be used to detect bootable binaries on them and create new boot entries.
error: syntax error.
error: Incorrect command.
error: syntax error.
Syntax error at line 126
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
</pre>


<small><span class="autosigned">—&nbsp;Preceding [[Help:Signature|unsigned]] comment added by [[User:Vul|Vul]] ([[User talk:Vul|{{int:talkpagelinktext}}]] • [[Special:Contributions/Vul|{{int:contribslink}}]]) 04:43, 7 November 2022‎</span></small>
lslbk 
or 
fdisk -l


:The command in your 1st section is most certainly misspelled at a minimum.
 
:[[User:Zcrayfish|zcrayfish]] ([[User talk:Zcrayfish|talk]]) 03:01, 14 August 2023 (UTC)
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

Revision as of 16:52, 8 October 2023

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