<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kenrmayfield</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kenrmayfield"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Kenrmayfield"/>
	<updated>2026-04-11T11:03:31Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=System_Disk_Mode&amp;diff=32046</id>
		<title>System Disk Mode</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=System_Disk_Mode&amp;diff=32046"/>
		<updated>2026-02-12T23:45:01Z</updated>

		<summary type="html">&lt;p&gt;Kenrmayfield: /* Check File System Kernel Modules are Loading */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;System Disk mode is the traditional or classic harddisk installation of Alpine Linux. This installation mode is suitable for most use cases including generic [[Tutorials_and_Howtos#Desktop|desktop]], [[Setting up the build environment|development machine]] etc. &lt;br /&gt;
&lt;br /&gt;
If an entire hard disk(s) is available for Alpine Linux, [[Installation#setup-alpine_based_System_Disk_Install|setup-alpine based install]] is the recommended way to install Alpine Linux. For all other use cases, follow the [[Alpine_setup_scripts#setup-disk|&amp;lt;code&amp;gt;setup-disk&amp;lt;/code&amp;gt;]] based Installation given below.&lt;br /&gt;
&lt;br /&gt;
== setup-disk based Installation ==&lt;br /&gt;
&lt;br /&gt;
To perform a traditional hard-disk installation of Alpine Linux, after completing the base configuration, proceed to create, format and mount your partitions with MOUNTPOINT {{Path|&#039;&#039;&#039;/mnt&#039;&#039;&#039;}} as root and run the command {{Codeline|&#039;&#039;&#039;&amp;lt;Code&amp;gt;setup-disk -m sys /mnt&amp;lt;/Code&amp;gt;&#039;&#039;&#039;}}.&lt;br /&gt;
&lt;br /&gt;
# Follow the [[Installation#General_course_of_action|Installation guide]] to complete the [[Installation#Base_configuration|base configuration]], if not already done. A working [[Configure_Networking#Connectivity_testing|Internet access]] is mandatory to complete this installation.&lt;br /&gt;
# If necessary formatted partition(s) are unavailable, manually [[Setting up disks manually#Creating_partitions|create]] them first and [[Setting up disks manually#Formatting_partitions|format]] them including swap partition(if used). If you&#039;re using legacy BIOS mode, use DOS i.e MBR partition table and ensure that proper partition is bootable for [[Bootloaders#Syslinux|extlinux]].&lt;br /&gt;
# Mount the &#039;&#039;&#039;/ (root)&#039;&#039;&#039;  partition on a mount point i.e say {{Path|/mnt}} as follows: {{Cmd|# mount /dev/sdXY /mnt}}&lt;br /&gt;
# If you&#039;re using [[UEFI|EFI]], create a mount point &amp;lt;code&amp;gt;/mnt/boot&amp;lt;/code&amp;gt; and mount the EFI system partition(ESP) on it. {{Cmd|&amp;lt;nowiki&amp;gt;# mkdir -p /mnt/boot&lt;br /&gt;
# mount /dev/sdXY /mnt/boot&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
# If [[Swap|swap]] partition is available, you can also enable it now: {{Cmd|# swapon /dev/sdXY }}&lt;br /&gt;
# Install Alpine Linux using the following command: {{Cmd|# setup-disk -m sys /mnt}}&lt;br /&gt;
# &amp;lt;code&amp;gt;setup-disk&amp;lt;/code&amp;gt; will perform a traditional hard disk install of your running system, detects your file system layout and generates {{Path|/etc/fstab}} and installs a [[Bootloaders|bootloader]] based on the &amp;lt;Code&amp;gt;BOOTLOADER&amp;lt;/Code&amp;gt; [[Alpine_setup_scripts#Environment_Variables|environment variable]].&lt;br /&gt;
# At the end of Installation, you can [[Installation#Reboot|reboot]] to boot into the newly installed Alpine Linux and [[Installation#Post-Installation|configure]] further.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Mounting on /dev/sdXY sysroot failed ===&lt;br /&gt;
&lt;br /&gt;
The error message appears as follows with variations in &amp;lt;code&amp;gt;/dev/sda8&amp;lt;/code&amp;gt; depending on the partition number and SSD/HDD etc:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
mounting /dev/sda8 on /sysroot failed: No such file or directory&lt;br /&gt;
mounting root: failed&lt;br /&gt;
initramfs emergency recovery shell launched. Type &#039;exit&#039; to continue boot&lt;br /&gt;
sh: can&#039;t access tty: job control turned off&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above error message can be caused by various reasons. Follow the below steps in the emergency shell to identify one possible cause.&lt;br /&gt;
&lt;br /&gt;
# Verify that the partition name in which Alpine Linux was installed matches the above [[#Mounting on /dev/sdXY sysroot failed|error]] by issuing the command and also note down the filesystem type of that partition (say TYPE=&amp;quot;ext4&amp;quot;) : {{Cmd| blkid}}&lt;br /&gt;
# If the expected disk (e.g., /dev/sda, /dev/nvme0n1) itself is missing in the output of {{ic| blkid}}, check [[#Disks not detected after setup-disk|Disks not detected after setup-disk]].&lt;br /&gt;
# Verify that sysroot exists by issuing the command. {{Cmd|ls -ld /sysroot}}&lt;br /&gt;
# Check if the above error message apears when issuing the command. {{Cmd|mount /dev/sda8 /sysroot}}&lt;br /&gt;
# If there is no error message, proceed to check if the issue is caused by a [[#Filesystem corruption|filesystem corruption]].&lt;br /&gt;
# If the manual mount command fails with &amp;quot;No such file or directory&amp;quot; even though you verified /sysroot exists in Step 3, this confirms the kernel doesn&#039;t recognize the filesystem type. Check whether filesystem modules(change ext4 if needed) are loaded by issuing the command. {{Cmd|&amp;lt;nowiki&amp;gt;lsmod | grep ext4 &amp;lt;/nowiki&amp;gt;}} &lt;br /&gt;
# If there is no output, then it confirms that the above [[#Mounting on /dev/sdXY sysroot failed|issue]] is caused by [[#Missing filesystem modules in the kernel cmdline|missing filesystem module]].&lt;br /&gt;
&lt;br /&gt;
==== Disks not detected after setup-disk====&lt;br /&gt;
&lt;br /&gt;
After running the standard Alpine installation command: {{ic|setup-disk -m sys /mnt}} and rebooting, the system gives the error mentioned in [[#Mounting on /dev/sdXY sysroot failed|Mounting on /dev/sdXY sysroot failed]] with the expected disk (e.g., /dev/sda, /dev/nvme0n1) missing to show at the output of {{ic| blkid}}. This prevents booting into the installed system. &lt;br /&gt;
&lt;br /&gt;
Issue: As per [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10615 bug report] this might be caused by BIOS storage controller being set to &amp;quot;RAID On (Intel Rapid Storage Technology)&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
Resolution: Switch the storage mode in BIOS/UEFI: Go to BIOS → Storage or SATA/NVMe Operation. Change setting from:RAID On (Intel Rapid Storage Technology) to: AHCI or AHCI/NVMe.&lt;br /&gt;
&lt;br /&gt;
==== Missing filesystem modules in the kernel cmdline ====&lt;br /&gt;
&lt;br /&gt;
[[BusyBox]] mount command does not autoload modules, so need to add filesystem modules to the kernel cmdline. Even though alpine installer does this automatically, this has to be taken care of in case of manual disk install, particularly for [[Dualbooting|dualboot]] installations.&lt;br /&gt;
&lt;br /&gt;
# To resolve, issue the command to load the appropriate filesystem module(say TYPE=&amp;quot;ext4&amp;quot;).{{Cmd|modprobe ext4}}&lt;br /&gt;
# To verify if the issue is resolved, reissue the command.{{Cmd|mount /dev/sda8 /sysroot}} &lt;br /&gt;
# If mount succeeded, issue the following command to boot into Alpine Linux. {{Cmd|exit}}&lt;br /&gt;
&lt;br /&gt;
Choose the appropriate solution based on your use case for a permanent fix:&lt;br /&gt;
&lt;br /&gt;
*If you are using [[Bootloaders#GRUB|grub]], then ensure that {{Codeline|GRUB_CMDLINE_LINUX}} line in the file {{Path|/etc/default/grub}} has the appropriate filesystem module &amp;lt;code&amp;gt;ext4&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;rootfstype=ext4&amp;lt;/code&amp;gt; as follows: {{Cat|/etc/default/grub|&amp;lt;nowiki&amp;gt;...&lt;br /&gt;
GRUB_CMDLINE_LINUX=&amp;quot;console=ttyS0,19200n8 net.ifnames=0 modules=sd-mod,usb-storage,ext4 quiet rootfstype=ext4&amp;quot;&lt;br /&gt;
...&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
* If you are using [[Bootloaders#Syslinux|ExtLinux/SysLinux]], then ensure that {{Codeline|APPEND}} line in the file {{Path|/boot/extlinux.conf}} has &amp;lt;code&amp;gt;root=UUID=&amp;lt;UUID ID&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;root=/dev/sdXY&amp;lt;/code&amp;gt; and the same matches the root path in the {{Path|/etc/fstab}} file. Also ensure that modules has the appropriate filesystem like &amp;lt;code&amp;gt;ext4&amp;lt;/code&amp;gt; as follows: {{Cat|/boot/extlinux.conf|&amp;lt;nowiki&amp;gt;...&lt;br /&gt;
APPEND root=/dev/sdXY modules=sd-mod,usb-storage,ext4 quiet&lt;br /&gt;
# root=UUID=&amp;lt;UUID ID&amp;gt; can be used also in the APPEND Line.&lt;br /&gt;
...&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{Note|For both above cases, you may need to issue {{Codeline|update-grub}} or {{Codeline|update-extlinux}} after making above changes.}}&lt;br /&gt;
 &lt;br /&gt;
*For a solution independent of [[Bootloaders|bootloaders]], ensure that the file {{Path|/etc/mkinitfs/mkinitfs.conf}} has the necessary filesystem module in it. Refer [[Initramfs init|Initramfs]] page for more information and recreate initramfs image.&lt;br /&gt;
&lt;br /&gt;
==== Filesystem corruption ====&lt;br /&gt;
&lt;br /&gt;
To fix filesystem corruption issues, the command fsck must be run on the root partition. The root partition should be umounted before running fsck. Boot from a [[Rescue disk]] to run the fsck command on the root partition:{{Cmd|&amp;lt;nowiki&amp;gt;# fsck -y /dev/&amp;lt;DEVICE&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
After running fsck, proceed to Reboot the Computer.&lt;br /&gt;
&lt;br /&gt;
If the fsck Command does Fix the Corruption on the Root File System but the &#039;&#039;&#039;Error: Mounting Root Failed&#039;&#039;&#039; still persists then the next step would be to ReBuild the &#039;&#039;&#039;initramfs&#039;&#039;&#039; File System with the &#039;&#039;&#039;mkinitfs&#039;&#039;&#039; Command then Reboot. You need to &#039;&#039;&#039;Mount the Root Partition&#039;&#039;&#039; and [[Chroot]] into the Mounted Root Partition before running the mkinitfs Command as shown in the [[Initramfs init|initramfs]] page. &lt;br /&gt;
&lt;br /&gt;
==== Check File System Kernel Modules are Loading ====&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&amp;lt;nowiki&amp;gt;# lsmod | grep &amp;lt;File System&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{Note |&amp;lt;nowiki&amp;gt;File System = ext2, ext3, ext4, btrfs, xfs, fat&amp;lt;/nowiki&amp;gt;|}}&lt;br /&gt;
&lt;br /&gt;
* Run the Command to Output the File System Kernel Modules:&lt;br /&gt;
&lt;br /&gt;
{{Cat |Console Command and Ouput|&amp;lt;nowiki&amp;gt;&lt;br /&gt;
alpinepc:~# lsmod | grep ext4&lt;br /&gt;
&lt;br /&gt;
ext4                 1155072  2&lt;br /&gt;
crc16                  12288  1 ext4&lt;br /&gt;
mbcache                16384  1 ext4&lt;br /&gt;
jbd2                  200704  1 ext4&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
EXT4 = File System&amp;lt;br&amp;gt;&lt;br /&gt;
CRC16 = EXT4 Compression Support&amp;lt;br&amp;gt;&lt;br /&gt;
MBCACHE = MetaData Cache&amp;lt;br&amp;gt;&lt;br /&gt;
JBD2 = Journaling&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Blinking underscore ===&lt;br /&gt;
&lt;br /&gt;
On a UEFI system, at the end of Installation after rebooting, the computer screen may appear with a &#039;&#039;&#039;blinking underscore&#039;&#039;&#039;. This may be due to the firmware not finding a valid boot entry.&lt;br /&gt;
&lt;br /&gt;
The [[UEFI#EFI bootloaders|EFI bootloader]] entries are added without writing to NVRAM, thus preventing GRUB from calling {{ic|efibootmgr}}. In some cases the UEFI firmware may not boot from a bootloader without a valid NVRAM entry. In such cases, at the end of installation, instead of rebooting, manually add an entry for Alpine Linux in the NVRAM as follows:&lt;br /&gt;
* Install the {{pkg|efibootmgr}} package:{{Cmd|# apk add efibootmgr}}&lt;br /&gt;
* Adjust the device name {{ic|/dev/sdX}} and partition number {{ic|1}}, before issuing the command: {{Cmd|# efibootmgr --create --disk /dev/sdX --part 1 --label &amp;quot;Alpine&amp;quot; --loader &#039;\EFI\alpine\grubx64.efi&#039;}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Bootloaders]] - For information on GRUB, Syslinux and rEFInd&lt;br /&gt;
* [[Installing Alpine on HDD dualbooting|Install to HDD with dual-boot]]&lt;br /&gt;
* [[Installing Alpine Linux in a chroot|Installing Alpine Linux in a chroot]]&lt;br /&gt;
* [https://github.com/itoffshore/alpine-linux-scripts setup-partitions]&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Kenrmayfield</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=System_Disk_Mode&amp;diff=32037</id>
		<title>System Disk Mode</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=System_Disk_Mode&amp;diff=32037"/>
		<updated>2026-02-11T01:09:13Z</updated>

		<summary type="html">&lt;p&gt;Kenrmayfield: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;System Disk mode is the traditional or classic harddisk installation of Alpine Linux. This installation mode is suitable for most use cases including generic [[Tutorials_and_Howtos#Desktop|desktop]], [[Setting up the build environment|development machine]] etc. &lt;br /&gt;
&lt;br /&gt;
If an entire hard disk(s) is available for Alpine Linux, [[Installation#setup-alpine_based_System_Disk_Install|setup-alpine based install]] is the recommended way to install Alpine Linux. For all other use cases, follow the [[Alpine_setup_scripts#setup-disk|&amp;lt;code&amp;gt;setup-disk&amp;lt;/code&amp;gt;]] based Installation given below.&lt;br /&gt;
&lt;br /&gt;
== setup-disk based Installation ==&lt;br /&gt;
&lt;br /&gt;
To perform a traditional hard-disk installation of Alpine Linux, after completing the base configuration, proceed to create, format and mount your partitions with MOUNTPOINT {{Path|&#039;&#039;&#039;/mnt&#039;&#039;&#039;}} as root and run the command {{Codeline|&#039;&#039;&#039;&amp;lt;Code&amp;gt;setup-disk -m sys /mnt&amp;lt;/Code&amp;gt;&#039;&#039;&#039;}}.&lt;br /&gt;
&lt;br /&gt;
# Follow the [[Installation#General_course_of_action|Installation guide]] to complete the [[Installation#Base_configuration|base configuration]], if not already done. A working [[Configure_Networking#Connectivity_testing|Internet access]] is mandatory to complete this installation.&lt;br /&gt;
# If necessary formatted partition(s) are unavailable, manually [[Setting up disks manually#Creating_partitions|create]] them first and [[Setting up disks manually#Formatting_partitions|format]] them including swap partition(if used). If you&#039;re using legacy BIOS mode, use DOS i.e MBR partition table and ensure that proper partition is bootable for [[Bootloaders#Syslinux|extlinux]].&lt;br /&gt;
# Mount the &#039;&#039;&#039;/ (root)&#039;&#039;&#039;  partition on a mount point i.e say {{Path|/mnt}} as follows: {{Cmd|# mount /dev/sdXY /mnt}}&lt;br /&gt;
# If you&#039;re using [[UEFI|EFI]], create a mount point &amp;lt;code&amp;gt;/mnt/boot&amp;lt;/code&amp;gt; and mount the EFI system partition(ESP) on it. {{Cmd|&amp;lt;nowiki&amp;gt;# mkdir -p /mnt/boot&lt;br /&gt;
# mount /dev/sdXY /mnt/boot&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
# If [[Swap|swap]] partition is available, you can also enable it now: {{Cmd|# swapon /dev/sdXY }}&lt;br /&gt;
# Install Alpine Linux using the following command: {{Cmd|# setup-disk -m sys /mnt}}&lt;br /&gt;
# &amp;lt;code&amp;gt;setup-disk&amp;lt;/code&amp;gt; will perform a traditional hard disk install of your running system, detects your file system layout and generates {{Path|/etc/fstab}} and installs a [[Bootloaders|bootloader]] based on the &amp;lt;Code&amp;gt;BOOTLOADER&amp;lt;/Code&amp;gt; [[Alpine_setup_scripts#Environment_Variables|environment variable]].&lt;br /&gt;
# At the end of Installation, you can [[Installation#Reboot|reboot]] to boot into the newly installed Alpine Linux and [[Installation#Post-Installation|configure]] further.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Mounting on /dev/sdXY sysroot failed ===&lt;br /&gt;
&lt;br /&gt;
The error message appears as follows with variations in &amp;lt;code&amp;gt;/dev/sda8&amp;lt;/code&amp;gt; depending on the partition number and SSD/HDD etc:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
mounting /dev/sda8 on /sysroot failed: No such file or directory&lt;br /&gt;
mounting root: failed&lt;br /&gt;
initramfs emergency recovery shell launched. Type &#039;exit&#039; to continue boot&lt;br /&gt;
sh: can&#039;t access tty: job control turned off&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above error message can be caused by various reasons. Follow the below steps in the emergency shell to identify one possible cause.&lt;br /&gt;
&lt;br /&gt;
# Verify that the partition name in which Alpine Linux was installed matches the above [[#Mounting on /dev/sdXY sysroot failed|error]] by issuing the command and also note down the filesystem type of that partition (say TYPE=&amp;quot;ext4&amp;quot;) : {{Cmd| blkid}}&lt;br /&gt;
# If the expected disk (e.g., /dev/sda, /dev/nvme0n1) itself is missing in the output of {{ic| blkid}}, check [[#Disks not detected after setup-disk|Disks not detected after setup-disk]].&lt;br /&gt;
# Verify that sysroot exists by issuing the command. {{Cmd|ls -ld /sysroot}}&lt;br /&gt;
# Check if the above error message apears when issuing the command. {{Cmd|mount /dev/sda8 /sysroot}}&lt;br /&gt;
# If there is no error message, proceed to check if the issue is caused by a [[#Filesystem corruption|filesystem corruption]].&lt;br /&gt;
# If the manual mount command fails with &amp;quot;No such file or directory&amp;quot; even though you verified /sysroot exists in Step 3, this confirms the kernel doesn&#039;t recognize the filesystem type. Check whether filesystem modules(change ext4 if needed) are loaded by issuing the command. {{Cmd|&amp;lt;nowiki&amp;gt;lsmod | grep ext4 &amp;lt;/nowiki&amp;gt;}} &lt;br /&gt;
# If there is no output, then it confirms that the above [[#Mounting on /dev/sdXY sysroot failed|issue]] is caused by [[#Missing filesystem modules in the kernel cmdline|missing filesystem module]].&lt;br /&gt;
&lt;br /&gt;
==== Disks not detected after setup-disk====&lt;br /&gt;
&lt;br /&gt;
After running the standard Alpine installation command: {{ic|setup-disk -m sys /mnt}} and rebooting, the system gives the error mentioned in [[#Mounting on /dev/sdXY sysroot failed|Mounting on /dev/sdXY sysroot failed]] with the expected disk (e.g., /dev/sda, /dev/nvme0n1) missing to show at the output of {{ic| blkid}}. This prevents booting into the installed system. &lt;br /&gt;
&lt;br /&gt;
Issue: As per [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10615 bug report] this might be caused by BIOS storage controller being set to &amp;quot;RAID On (Intel Rapid Storage Technology)&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
Resolution: Switch the storage mode in BIOS/UEFI: Go to BIOS → Storage or SATA/NVMe Operation. Change setting from:RAID On (Intel Rapid Storage Technology) to: AHCI or AHCI/NVMe.&lt;br /&gt;
&lt;br /&gt;
==== Missing filesystem modules in the kernel cmdline ====&lt;br /&gt;
&lt;br /&gt;
[[BusyBox]] mount command does not autoload modules, so need to add filesystem modules to the kernel cmdline. Even though alpine installer does this automatically, this has to be taken care of in case of manual disk install, particularly for [[Dualbooting|dualboot]] installations.&lt;br /&gt;
&lt;br /&gt;
# To resolve, issue the command to load the appropriate filesystem module(say TYPE=&amp;quot;ext4&amp;quot;).{{Cmd|modprobe ext4}}&lt;br /&gt;
# To verify if the issue is resolved, reissue the command.{{Cmd|mount /dev/sda8 /sysroot}} &lt;br /&gt;
# If mount succeeded, issue the following command to boot into Alpine Linux. {{Cmd|exit}}&lt;br /&gt;
&lt;br /&gt;
Choose the appropriate solution based on your use case for a permanent fix:&lt;br /&gt;
&lt;br /&gt;
*If you are using [[Bootloaders#GRUB|grub]], then ensure that {{Codeline|GRUB_CMDLINE_LINUX}} line in the file {{Path|/etc/default/grub}} has the appropriate filesystem module &amp;lt;code&amp;gt;ext4&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;rootfstype=ext4&amp;lt;/code&amp;gt; as follows: {{Cat|/etc/default/grub|&amp;lt;nowiki&amp;gt;...&lt;br /&gt;
GRUB_CMDLINE_LINUX=&amp;quot;console=ttyS0,19200n8 net.ifnames=0 modules=sd-mod,usb-storage,ext4 quiet rootfstype=ext4&amp;quot;&lt;br /&gt;
...&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
* If you are using [[Bootloaders#Syslinux|ExtLinux/SysLinux]], then ensure that {{Codeline|APPEND}} line in the file {{Path|/boot/extlinux.conf}} has &amp;lt;code&amp;gt;root=UUID=&amp;lt;UUID ID&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;root=/dev/sdXY&amp;lt;/code&amp;gt; and the same matches the root path in the {{Path|/etc/fstab}} file. Also ensure that modules has the appropriate filesystem like &amp;lt;code&amp;gt;ext4&amp;lt;/code&amp;gt; as follows: {{Cat|/boot/extlinux.conf|&amp;lt;nowiki&amp;gt;...&lt;br /&gt;
APPEND root=/dev/sdXY modules=sd-mod,usb-storage,ext4 quiet&lt;br /&gt;
# root=UUID=&amp;lt;UUID ID&amp;gt; can be used also in the APPEND Line.&lt;br /&gt;
...&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{Note|For both above cases, you may need to issue {{Codeline|update-grub}} or {{Codeline|update-extlinux}} after making above changes.}}&lt;br /&gt;
 &lt;br /&gt;
*For a solution independent of [[Bootloaders|bootloaders]], ensure that the file {{Path|/etc/mkinitfs/mkinitfs.conf}} has the necessary filesystem module in it. Refer [[Initramfs init|Initramfs]] page for more information and recreate initramfs image.&lt;br /&gt;
&lt;br /&gt;
==== Filesystem corruption ====&lt;br /&gt;
&lt;br /&gt;
To fix filesystem corruption issues, the command fsck must be run on the root partition. The root partition should be umounted before running fsck. Boot from a [[Rescue disk]] to run the fsck command on the root partition:{{Cmd|&amp;lt;nowiki&amp;gt;# fsck -y /dev/&amp;lt;DEVICE&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
After running fsck, proceed to Reboot the Computer.&lt;br /&gt;
&lt;br /&gt;
If the fsck Command does Fix the Corruption on the Root File System but the &#039;&#039;&#039;Error: Mounting Root Failed&#039;&#039;&#039; still persists then the next step would be to ReBuild the &#039;&#039;&#039;initramfs&#039;&#039;&#039; File System with the &#039;&#039;&#039;mkinitfs&#039;&#039;&#039; Command then Reboot. You need to &#039;&#039;&#039;Mount the Root Partition&#039;&#039;&#039; and [[Chroot]] into the Mounted Root Partition before running the mkinitfs Command as shown in the [[Initramfs init|initramfs]] page. &lt;br /&gt;
&lt;br /&gt;
==== Check File System Kernel Modules are Loading ====&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&amp;lt;nowiki&amp;gt;# lsmod | grep &amp;lt;File System&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{Note |&amp;lt;nowiki&amp;gt;File System = ext2, ext3, ext4, btrfs, xfs, fat&amp;lt;/nowiki&amp;gt;|}}&lt;br /&gt;
&lt;br /&gt;
* Run the Command to Output the File System Kernel Modules:&lt;br /&gt;
&lt;br /&gt;
{{Cat |Console Ouput|&amp;lt;nowiki&amp;gt;&lt;br /&gt;
alpinepc:~# lsmod | grep ext4&lt;br /&gt;
&lt;br /&gt;
ext4                 1155072  2&lt;br /&gt;
crc16                  12288  1 ext4&lt;br /&gt;
mbcache                16384  1 ext4&lt;br /&gt;
jbd2                  200704  1 ext4&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
EXT4 = File System&amp;lt;br&amp;gt;&lt;br /&gt;
CRC16 = EXT4 Compression Support&amp;lt;br&amp;gt;&lt;br /&gt;
MBCACHE = MetaData Cache&amp;lt;br&amp;gt;&lt;br /&gt;
JBD2 = Journaling&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Blinking underscore ===&lt;br /&gt;
&lt;br /&gt;
On a UEFI system, at the end of Installation after rebooting, the computer screen may appear with a &#039;&#039;&#039;blinking underscore&#039;&#039;&#039;. This may be due to the firmware not finding a valid boot entry.&lt;br /&gt;
&lt;br /&gt;
The [[UEFI#EFI bootloaders|EFI bootloader]] entries are added without writing to NVRAM, thus preventing GRUB from calling {{ic|efibootmgr}}. In some cases the UEFI firmware may not boot from a bootloader without a valid NVRAM entry. In such cases, at the end of installation, instead of rebooting, manually add an entry for Alpine Linux in the NVRAM as follows:&lt;br /&gt;
* Install the {{pkg|efibootmgr}} package:{{Cmd|# apk add efibootmgr}}&lt;br /&gt;
* Adjust the device name {{ic|/dev/sdX}} and partition number {{ic|1}}, before issuing the command: {{Cmd|# efibootmgr --create --disk /dev/sdX --part 1 --label &amp;quot;Alpine&amp;quot; --loader &#039;\EFI\alpine\grubx64.efi&#039;}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Bootloaders]] - For information on GRUB, Syslinux and rEFInd&lt;br /&gt;
* [[Installing Alpine on HDD dualbooting|Install to HDD with dual-boot]]&lt;br /&gt;
* [[Installing Alpine Linux in a chroot|Installing Alpine Linux in a chroot]]&lt;br /&gt;
* [https://github.com/itoffshore/alpine-linux-scripts setup-partitions]&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Kenrmayfield</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=System_Disk_Mode&amp;diff=32036</id>
		<title>System Disk Mode</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=System_Disk_Mode&amp;diff=32036"/>
		<updated>2026-02-11T00:55:40Z</updated>

		<summary type="html">&lt;p&gt;Kenrmayfield: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;System Disk mode is the traditional or classic harddisk installation of Alpine Linux. This installation mode is suitable for most use cases including generic [[Tutorials_and_Howtos#Desktop|desktop]], [[Setting up the build environment|development machine]] etc. &lt;br /&gt;
&lt;br /&gt;
If an entire hard disk(s) is available for Alpine Linux, [[Installation#setup-alpine_based_System_Disk_Install|setup-alpine based install]] is the recommended way to install Alpine Linux. For all other use cases, follow the [[Alpine_setup_scripts#setup-disk|&amp;lt;code&amp;gt;setup-disk&amp;lt;/code&amp;gt;]] based Installation given below.&lt;br /&gt;
&lt;br /&gt;
== setup-disk based Installation ==&lt;br /&gt;
&lt;br /&gt;
To perform a traditional hard-disk installation of Alpine Linux, after completing the base configuration, proceed to create, format and mount your partitions with MOUNTPOINT {{Path|&#039;&#039;&#039;/mnt&#039;&#039;&#039;}} as root and run the command {{Codeline|&#039;&#039;&#039;&amp;lt;Code&amp;gt;setup-disk -m sys /mnt&amp;lt;/Code&amp;gt;&#039;&#039;&#039;}}.&lt;br /&gt;
&lt;br /&gt;
# Follow the [[Installation#General_course_of_action|Installation guide]] to complete the [[Installation#Base_configuration|base configuration]], if not already done. A working [[Configure_Networking#Connectivity_testing|Internet access]] is mandatory to complete this installation.&lt;br /&gt;
# If necessary formatted partition(s) are unavailable, manually [[Setting up disks manually#Creating_partitions|create]] them first and [[Setting up disks manually#Formatting_partitions|format]] them including swap partition(if used). If you&#039;re using legacy BIOS mode, use DOS i.e MBR partition table and ensure that proper partition is bootable for [[Bootloaders#Syslinux|extlinux]].&lt;br /&gt;
# Mount the &#039;&#039;&#039;/ (root)&#039;&#039;&#039;  partition on a mount point i.e say {{Path|/mnt}} as follows: {{Cmd|# mount /dev/sdXY /mnt}}&lt;br /&gt;
# If you&#039;re using [[UEFI|EFI]], create a mount point &amp;lt;code&amp;gt;/mnt/boot&amp;lt;/code&amp;gt; and mount the EFI system partition(ESP) on it. {{Cmd|&amp;lt;nowiki&amp;gt;# mkdir -p /mnt/boot&lt;br /&gt;
# mount /dev/sdXY /mnt/boot&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
# If [[Swap|swap]] partition is available, you can also enable it now: {{Cmd|# swapon /dev/sdXY }}&lt;br /&gt;
# Install Alpine Linux using the following command: {{Cmd|# setup-disk -m sys /mnt}}&lt;br /&gt;
# &amp;lt;code&amp;gt;setup-disk&amp;lt;/code&amp;gt; will perform a traditional hard disk install of your running system, detects your file system layout and generates {{Path|/etc/fstab}} and installs a [[Bootloaders|bootloader]] based on the &amp;lt;Code&amp;gt;BOOTLOADER&amp;lt;/Code&amp;gt; [[Alpine_setup_scripts#Environment_Variables|environment variable]].&lt;br /&gt;
# At the end of Installation, you can [[Installation#Reboot|reboot]] to boot into the newly installed Alpine Linux and [[Installation#Post-Installation|configure]] further.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Mounting on /dev/sdXY sysroot failed ===&lt;br /&gt;
&lt;br /&gt;
The error message appears as follows with variations in &amp;lt;code&amp;gt;/dev/sda8&amp;lt;/code&amp;gt; depending on the partition number and SSD/HDD etc:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
mounting /dev/sda8 on /sysroot failed: No such file or directory&lt;br /&gt;
mounting root: failed&lt;br /&gt;
initramfs emergency recovery shell launched. Type &#039;exit&#039; to continue boot&lt;br /&gt;
sh: can&#039;t access tty: job control turned off&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above error message can be caused by various reasons. Follow the below steps in the emergency shell to identify one possible cause.&lt;br /&gt;
&lt;br /&gt;
# Verify that the partition name in which Alpine Linux was installed matches the above [[#Mounting on /dev/sdXY sysroot failed|error]] by issuing the command and also note down the filesystem type of that partition (say TYPE=&amp;quot;ext4&amp;quot;) : {{Cmd| blkid}}&lt;br /&gt;
# If the expected disk (e.g., /dev/sda, /dev/nvme0n1) itself is missing in the output of {{ic| blkid}}, check [[#Disks not detected after setup-disk|Disks not detected after setup-disk]].&lt;br /&gt;
# Verify that sysroot exists by issuing the command. {{Cmd|ls -ld /sysroot}}&lt;br /&gt;
# Check if the above error message apears when issuing the command. {{Cmd|mount /dev/sda8 /sysroot}}&lt;br /&gt;
# If there is no error message, proceed to check if the issue is caused by a [[#Filesystem corruption|filesystem corruption]].&lt;br /&gt;
# If the manual mount command fails with &amp;quot;No such file or directory&amp;quot; even though you verified /sysroot exists in Step 3, this confirms the kernel doesn&#039;t recognize the filesystem type. Check whether filesystem modules(change ext4 if needed) are loaded by issuing the command. {{Cmd|&amp;lt;nowiki&amp;gt;lsmod | grep ext4 &amp;lt;/nowiki&amp;gt;}} &lt;br /&gt;
# If there is no output, then it confirms that the above [[#Mounting on /dev/sdXY sysroot failed|issue]] is caused by [[#Missing filesystem modules in the kernel cmdline|missing filesystem module]].&lt;br /&gt;
&lt;br /&gt;
==== Disks not detected after setup-disk====&lt;br /&gt;
&lt;br /&gt;
After running the standard Alpine installation command: {{ic|setup-disk -m sys /mnt}} and rebooting, the system gives the error mentioned in [[#Mounting on /dev/sdXY sysroot failed|Mounting on /dev/sdXY sysroot failed]] with the expected disk (e.g., /dev/sda, /dev/nvme0n1) missing to show at the output of {{ic| blkid}}. This prevents booting into the installed system. &lt;br /&gt;
&lt;br /&gt;
Issue: As per [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10615 bug report] this might be caused by BIOS storage controller being set to &amp;quot;RAID On (Intel Rapid Storage Technology)&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
Resolution: Switch the storage mode in BIOS/UEFI: Go to BIOS → Storage or SATA/NVMe Operation. Change setting from:RAID On (Intel Rapid Storage Technology) to: AHCI or AHCI/NVMe.&lt;br /&gt;
&lt;br /&gt;
==== Missing filesystem modules in the kernel cmdline ====&lt;br /&gt;
&lt;br /&gt;
[[BusyBox]] mount command does not autoload modules, so need to add filesystem modules to the kernel cmdline. Even though alpine installer does this automatically, this has to be taken care of in case of manual disk install, particularly for [[Dualbooting|dualboot]] installations.&lt;br /&gt;
&lt;br /&gt;
# To resolve, issue the command to load the appropriate filesystem module(say TYPE=&amp;quot;ext4&amp;quot;).{{Cmd|modprobe ext4}}&lt;br /&gt;
# To verify if the issue is resolved, reissue the command.{{Cmd|mount /dev/sda8 /sysroot}} &lt;br /&gt;
# If mount succeeded, issue the following command to boot into Alpine Linux. {{Cmd|exit}}&lt;br /&gt;
&lt;br /&gt;
Choose the appropriate solution based on your use case for a permanent fix:&lt;br /&gt;
&lt;br /&gt;
*If you are using [[Bootloaders#GRUB|grub]], then ensure that {{Codeline|GRUB_CMDLINE_LINUX}} line in the file {{Path|/etc/default/grub}} has the appropriate filesystem module &amp;lt;code&amp;gt;ext4&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;rootfstype=ext4&amp;lt;/code&amp;gt; as follows: {{Cat|/etc/default/grub|&amp;lt;nowiki&amp;gt;...&lt;br /&gt;
GRUB_CMDLINE_LINUX=&amp;quot;console=ttyS0,19200n8 net.ifnames=0 modules=sd-mod,usb-storage,ext4 quiet rootfstype=ext4&amp;quot;&lt;br /&gt;
...&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
* If you are using [[Bootloaders#Syslinux|ExtLinux/SysLinux]], then ensure that {{Codeline|APPEND}} line in the file {{Path|/boot/extlinux.conf}} has &amp;lt;code&amp;gt;root=UUID=&amp;lt;UUID ID&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;root=/dev/sdXY&amp;lt;/code&amp;gt; and the same matches the root path in the {{Path|/etc/fstab}} file. Also ensure that modules has the appropriate filesystem like &amp;lt;code&amp;gt;ext4&amp;lt;/code&amp;gt; as follows: {{Cat|/boot/extlinux.conf|&amp;lt;nowiki&amp;gt;...&lt;br /&gt;
APPEND root=/dev/sdXY modules=sd-mod,usb-storage,ext4 quiet&lt;br /&gt;
# root=UUID=&amp;lt;UUID ID&amp;gt; can be used also in the APPEND Line.&lt;br /&gt;
...&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{Note|For both above cases, you may need to issue {{Codeline|update-grub}} or {{Codeline|update-extlinux}} after making above changes.}}&lt;br /&gt;
 &lt;br /&gt;
*For a solution independent of [[Bootloaders|bootloaders]], ensure that the file {{Path|/etc/mkinitfs/mkinitfs.conf}} has the necessary filesystem module in it. Refer [[Initramfs init|Initramfs]] page for more information and recreate initramfs image.&lt;br /&gt;
&lt;br /&gt;
==== Filesystem corruption ====&lt;br /&gt;
&lt;br /&gt;
To fix filesystem corruption issues, the command fsck must be run on the root partition. The root partition should be umounted before running fsck. Boot from a [[Rescue disk]] to run the fsck command on the root partition:{{Cmd|&amp;lt;nowiki&amp;gt;# fsck -y /dev/&amp;lt;DEVICE&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
After running fsck, proceed to Reboot the Computer.&lt;br /&gt;
&lt;br /&gt;
If the fsck Command does Fix the Corruption on the Root File System but the &#039;&#039;&#039;Error: Mounting Root Failed&#039;&#039;&#039; still persists then the next step would be to ReBuild the &#039;&#039;&#039;initramfs&#039;&#039;&#039; File System with the &#039;&#039;&#039;mkinitfs&#039;&#039;&#039; Command then Reboot. You need to &#039;&#039;&#039;Mount the Root Partition&#039;&#039;&#039; and [[Chroot]] into the Mounted Root Partition before running the mkinitfs Command as shown in the [[Initramfs init|initramfs]] page. &lt;br /&gt;
&lt;br /&gt;
==== Check File System Kernel Modules are Loading ====&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&amp;lt;nowiki&amp;gt;# lsmod | grep &amp;lt;File System&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
{{Note |&amp;lt;nowiki&amp;gt;File System = EXT2, EXT3, EXT4, BTRFS, XFS, FAT&amp;lt;/nowiki&amp;gt;|}}&lt;br /&gt;
&lt;br /&gt;
* Run the Command to Output the File System Kernel Modules:&lt;br /&gt;
&lt;br /&gt;
{{Cat |Console Ouput|&amp;lt;nowiki&amp;gt;&lt;br /&gt;
alpinepc:~# lsmod | grep ext4&lt;br /&gt;
&lt;br /&gt;
ext4                 1155072  2&lt;br /&gt;
crc16                  12288  1 ext4&lt;br /&gt;
mbcache                16384  1 ext4&lt;br /&gt;
jbd2                  200704  1 ext4&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
EXT4 = File System&amp;lt;br&amp;gt;&lt;br /&gt;
CRC16 = EXT4 Compression Support&amp;lt;br&amp;gt;&lt;br /&gt;
MBCACHE = MetaData Cache&amp;lt;br&amp;gt;&lt;br /&gt;
JBD2 = Journaling&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Blinking underscore ===&lt;br /&gt;
&lt;br /&gt;
On a UEFI system, at the end of Installation after rebooting, the computer screen may appear with a &#039;&#039;&#039;blinking underscore&#039;&#039;&#039;. This may be due to the firmware not finding a valid boot entry.&lt;br /&gt;
&lt;br /&gt;
The [[UEFI#EFI bootloaders|EFI bootloader]] entries are added without writing to NVRAM, thus preventing GRUB from calling {{ic|efibootmgr}}. In some cases the UEFI firmware may not boot from a bootloader without a valid NVRAM entry. In such cases, at the end of installation, instead of rebooting, manually add an entry for Alpine Linux in the NVRAM as follows:&lt;br /&gt;
* Install the {{pkg|efibootmgr}} package:{{Cmd|# apk add efibootmgr}}&lt;br /&gt;
* Adjust the device name {{ic|/dev/sdX}} and partition number {{ic|1}}, before issuing the command: {{Cmd|# efibootmgr --create --disk /dev/sdX --part 1 --label &amp;quot;Alpine&amp;quot; --loader &#039;\EFI\alpine\grubx64.efi&#039;}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Bootloaders]] - For information on GRUB, Syslinux and rEFInd&lt;br /&gt;
* [[Installing Alpine on HDD dualbooting|Install to HDD with dual-boot]]&lt;br /&gt;
* [[Installing Alpine Linux in a chroot|Installing Alpine Linux in a chroot]]&lt;br /&gt;
* [https://github.com/itoffshore/alpine-linux-scripts setup-partitions]&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Kenrmayfield</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=System_Disk_Mode&amp;diff=32035</id>
		<title>System Disk Mode</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=System_Disk_Mode&amp;diff=32035"/>
		<updated>2026-02-11T00:38:19Z</updated>

		<summary type="html">&lt;p&gt;Kenrmayfield: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;System Disk mode is the traditional or classic harddisk installation of Alpine Linux. This installation mode is suitable for most use cases including generic [[Tutorials_and_Howtos#Desktop|desktop]], [[Setting up the build environment|development machine]] etc. &lt;br /&gt;
&lt;br /&gt;
If an entire hard disk(s) is available for Alpine Linux, [[Installation#setup-alpine_based_System_Disk_Install|setup-alpine based install]] is the recommended way to install Alpine Linux. For all other use cases, follow the [[Alpine_setup_scripts#setup-disk|&amp;lt;code&amp;gt;setup-disk&amp;lt;/code&amp;gt;]] based Installation given below.&lt;br /&gt;
&lt;br /&gt;
== setup-disk based Installation ==&lt;br /&gt;
&lt;br /&gt;
To perform a traditional hard-disk installation of Alpine Linux, after completing the base configuration, proceed to create, format and mount your partitions with MOUNTPOINT {{Path|&#039;&#039;&#039;/mnt&#039;&#039;&#039;}} as root and run the command {{Codeline|&#039;&#039;&#039;&amp;lt;Code&amp;gt;setup-disk -m sys /mnt&amp;lt;/Code&amp;gt;&#039;&#039;&#039;}}.&lt;br /&gt;
&lt;br /&gt;
# Follow the [[Installation#General_course_of_action|Installation guide]] to complete the [[Installation#Base_configuration|base configuration]], if not already done. A working [[Configure_Networking#Connectivity_testing|Internet access]] is mandatory to complete this installation.&lt;br /&gt;
# If necessary formatted partition(s) are unavailable, manually [[Setting up disks manually#Creating_partitions|create]] them first and [[Setting up disks manually#Formatting_partitions|format]] them including swap partition(if used). If you&#039;re using legacy BIOS mode, use DOS i.e MBR partition table and ensure that proper partition is bootable for [[Bootloaders#Syslinux|extlinux]].&lt;br /&gt;
# Mount the &#039;&#039;&#039;/ (root)&#039;&#039;&#039;  partition on a mount point i.e say {{Path|/mnt}} as follows: {{Cmd|# mount /dev/sdXY /mnt}}&lt;br /&gt;
# If you&#039;re using [[UEFI|EFI]], create a mount point &amp;lt;code&amp;gt;/mnt/boot&amp;lt;/code&amp;gt; and mount the EFI system partition(ESP) on it. {{Cmd|&amp;lt;nowiki&amp;gt;# mkdir -p /mnt/boot&lt;br /&gt;
# mount /dev/sdXY /mnt/boot&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
# If [[Swap|swap]] partition is available, you can also enable it now: {{Cmd|# swapon /dev/sdXY }}&lt;br /&gt;
# Install Alpine Linux using the following command: {{Cmd|# setup-disk -m sys /mnt}}&lt;br /&gt;
# &amp;lt;code&amp;gt;setup-disk&amp;lt;/code&amp;gt; will perform a traditional hard disk install of your running system, detects your file system layout and generates {{Path|/etc/fstab}} and installs a [[Bootloaders|bootloader]] based on the &amp;lt;Code&amp;gt;BOOTLOADER&amp;lt;/Code&amp;gt; [[Alpine_setup_scripts#Environment_Variables|environment variable]].&lt;br /&gt;
# At the end of Installation, you can [[Installation#Reboot|reboot]] to boot into the newly installed Alpine Linux and [[Installation#Post-Installation|configure]] further.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Mounting on /dev/sdXY sysroot failed ===&lt;br /&gt;
&lt;br /&gt;
The error message appears as follows with variations in &amp;lt;code&amp;gt;/dev/sda8&amp;lt;/code&amp;gt; depending on the partition number and SSD/HDD etc:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
mounting /dev/sda8 on /sysroot failed: No such file or directory&lt;br /&gt;
mounting root: failed&lt;br /&gt;
initramfs emergency recovery shell launched. Type &#039;exit&#039; to continue boot&lt;br /&gt;
sh: can&#039;t access tty: job control turned off&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above error message can be caused by various reasons. Follow the below steps in the emergency shell to identify one possible cause.&lt;br /&gt;
&lt;br /&gt;
# Verify that the partition name in which Alpine Linux was installed matches the above [[#Mounting on /dev/sdXY sysroot failed|error]] by issuing the command and also note down the filesystem type of that partition (say TYPE=&amp;quot;ext4&amp;quot;) : {{Cmd| blkid}}&lt;br /&gt;
# If the expected disk (e.g., /dev/sda, /dev/nvme0n1) itself is missing in the output of {{ic| blkid}}, check [[#Disks not detected after setup-disk|Disks not detected after setup-disk]].&lt;br /&gt;
# Verify that sysroot exists by issuing the command. {{Cmd|ls -ld /sysroot}}&lt;br /&gt;
# Check if the above error message apears when issuing the command. {{Cmd|mount /dev/sda8 /sysroot}}&lt;br /&gt;
# If there is no error message, proceed to check if the issue is caused by a [[#Filesystem corruption|filesystem corruption]].&lt;br /&gt;
# If the manual mount command fails with &amp;quot;No such file or directory&amp;quot; even though you verified /sysroot exists in Step 3, this confirms the kernel doesn&#039;t recognize the filesystem type. Check whether filesystem modules(change ext4 if needed) are loaded by issuing the command. {{Cmd|&amp;lt;nowiki&amp;gt;lsmod | grep ext4 &amp;lt;/nowiki&amp;gt;}} &lt;br /&gt;
# If there is no output, then it confirms that the above [[#Mounting on /dev/sdXY sysroot failed|issue]] is caused by [[#Missing filesystem modules in the kernel cmdline|missing filesystem module]].&lt;br /&gt;
&lt;br /&gt;
==== Disks not detected after setup-disk====&lt;br /&gt;
&lt;br /&gt;
After running the standard Alpine installation command: {{ic|setup-disk -m sys /mnt}} and rebooting, the system gives the error mentioned in [[#Mounting on /dev/sdXY sysroot failed|Mounting on /dev/sdXY sysroot failed]] with the expected disk (e.g., /dev/sda, /dev/nvme0n1) missing to show at the output of {{ic| blkid}}. This prevents booting into the installed system. &lt;br /&gt;
&lt;br /&gt;
Issue: As per [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10615 bug report] this might be caused by BIOS storage controller being set to &amp;quot;RAID On (Intel Rapid Storage Technology)&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
Resolution: Switch the storage mode in BIOS/UEFI: Go to BIOS → Storage or SATA/NVMe Operation. Change setting from:RAID On (Intel Rapid Storage Technology) to: AHCI or AHCI/NVMe.&lt;br /&gt;
&lt;br /&gt;
==== Missing filesystem modules in the kernel cmdline ====&lt;br /&gt;
&lt;br /&gt;
[[BusyBox]] mount command does not autoload modules, so need to add filesystem modules to the kernel cmdline. Even though alpine installer does this automatically, this has to be taken care of in case of manual disk install, particularly for [[Dualbooting|dualboot]] installations.&lt;br /&gt;
&lt;br /&gt;
# To resolve, issue the command to load the appropriate filesystem module(say TYPE=&amp;quot;ext4&amp;quot;).{{Cmd|modprobe ext4}}&lt;br /&gt;
# To verify if the issue is resolved, reissue the command.{{Cmd|mount /dev/sda8 /sysroot}} &lt;br /&gt;
# If mount succeeded, issue the following command to boot into Alpine Linux. {{Cmd|exit}}&lt;br /&gt;
&lt;br /&gt;
Choose the appropriate solution based on your use case for a permanent fix:&lt;br /&gt;
&lt;br /&gt;
*If you are using [[Bootloaders#GRUB|grub]], then ensure that {{Codeline|GRUB_CMDLINE_LINUX}} line in the file {{Path|/etc/default/grub}} has the appropriate filesystem module &amp;lt;code&amp;gt;ext4&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;rootfstype=ext4&amp;lt;/code&amp;gt; as follows: {{Cat|/etc/default/grub|&amp;lt;nowiki&amp;gt;...&lt;br /&gt;
GRUB_CMDLINE_LINUX=&amp;quot;console=ttyS0,19200n8 net.ifnames=0 modules=sd-mod,usb-storage,ext4 quiet rootfstype=ext4&amp;quot;&lt;br /&gt;
...&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
* If you are using [[Bootloaders#Syslinux|ExtLinux/SysLinux]], then ensure that {{Codeline|APPEND}} line in the file {{Path|/boot/extlinux.conf}} has &amp;lt;code&amp;gt;root=UUID=&amp;lt;UUID ID&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;root=/dev/sdXY&amp;lt;/code&amp;gt; and the same matches the root path in the {{Path|/etc/fstab}} file. Also ensure that modules has the appropriate filesystem like &amp;lt;code&amp;gt;ext4&amp;lt;/code&amp;gt; as follows: {{Cat|/boot/extlinux.conf|&amp;lt;nowiki&amp;gt;...&lt;br /&gt;
APPEND root=/dev/sdXY modules=sd-mod,usb-storage,ext4 quiet&lt;br /&gt;
# root=UUID=&amp;lt;UUID ID&amp;gt; can be used also in the APPEND Line.&lt;br /&gt;
...&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{Note|For both above cases, you may need to issue {{Codeline|update-grub}} or {{Codeline|update-extlinux}} after making above changes.}}&lt;br /&gt;
 &lt;br /&gt;
*For a solution independent of [[Bootloaders|bootloaders]], ensure that the file {{Path|/etc/mkinitfs/mkinitfs.conf}} has the necessary filesystem module in it. Refer [[Initramfs init|Initramfs]] page for more information and recreate initramfs image.&lt;br /&gt;
&lt;br /&gt;
==== Filesystem corruption ====&lt;br /&gt;
&lt;br /&gt;
To fix filesystem corruption issues, the command fsck must be run on the root partition. The root partition should be umounted before running fsck. Boot from a [[Rescue disk]] to run the fsck command on the root partition:{{Cmd|&amp;lt;nowiki&amp;gt;# fsck -y /dev/&amp;lt;DEVICE&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
After running fsck, proceed to Reboot the Computer.&lt;br /&gt;
&lt;br /&gt;
If the fsck Command does Fix the Corruption on the Root File System but the &#039;&#039;&#039;Error: Mounting Root Failed&#039;&#039;&#039; still persists then the next step would be to ReBuild the &#039;&#039;&#039;initramfs&#039;&#039;&#039; File System with the &#039;&#039;&#039;mkinitfs&#039;&#039;&#039; Command then Reboot. You need to &#039;&#039;&#039;Mount the Root Partition&#039;&#039;&#039; and [[Chroot]] into the Mounted Root Partition before running the mkinitfs Command as shown in the [[Initramfs init|initramfs]] page. &lt;br /&gt;
&lt;br /&gt;
==== Check File System Kernel Modules are Loading ====&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&amp;lt;nowiki&amp;gt;# lsmod | grep &amp;lt;File System&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
* Run the Command to Output the File System Kernel Modules:&lt;br /&gt;
&lt;br /&gt;
{{Cat |Console Ouput|&amp;lt;nowiki&amp;gt;&lt;br /&gt;
alpinepc:~# lsmod | grep ext4&lt;br /&gt;
&lt;br /&gt;
ext4                 1155072  2&lt;br /&gt;
crc16                  12288  1 ext4&lt;br /&gt;
mbcache                16384  1 ext4&lt;br /&gt;
jbd2                  200704  1 ext4&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
EXT4 = File System&amp;lt;br&amp;gt;&lt;br /&gt;
CRC16 = EXT4 Compression Support&amp;lt;br&amp;gt;&lt;br /&gt;
MBCACHE = MetaData Cache&amp;lt;br&amp;gt;&lt;br /&gt;
JBD2 = Journaling&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Blinking underscore ===&lt;br /&gt;
&lt;br /&gt;
On a UEFI system, at the end of Installation after rebooting, the computer screen may appear with a &#039;&#039;&#039;blinking underscore&#039;&#039;&#039;. This may be due to the firmware not finding a valid boot entry.&lt;br /&gt;
&lt;br /&gt;
The [[UEFI#EFI bootloaders|EFI bootloader]] entries are added without writing to NVRAM, thus preventing GRUB from calling {{ic|efibootmgr}}. In some cases the UEFI firmware may not boot from a bootloader without a valid NVRAM entry. In such cases, at the end of installation, instead of rebooting, manually add an entry for Alpine Linux in the NVRAM as follows:&lt;br /&gt;
* Install the {{pkg|efibootmgr}} package:{{Cmd|# apk add efibootmgr}}&lt;br /&gt;
* Adjust the device name {{ic|/dev/sdX}} and partition number {{ic|1}}, before issuing the command: {{Cmd|# efibootmgr --create --disk /dev/sdX --part 1 --label &amp;quot;Alpine&amp;quot; --loader &#039;\EFI\alpine\grubx64.efi&#039;}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Bootloaders]] - For information on GRUB, Syslinux and rEFInd&lt;br /&gt;
* [[Installing Alpine on HDD dualbooting|Install to HDD with dual-boot]]&lt;br /&gt;
* [[Installing Alpine Linux in a chroot|Installing Alpine Linux in a chroot]]&lt;br /&gt;
* [https://github.com/itoffshore/alpine-linux-scripts setup-partitions]&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Kenrmayfield</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=System_Disk_Mode&amp;diff=32034</id>
		<title>System Disk Mode</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=System_Disk_Mode&amp;diff=32034"/>
		<updated>2026-02-10T23:22:47Z</updated>

		<summary type="html">&lt;p&gt;Kenrmayfield: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;System Disk mode is the traditional or classic harddisk installation of Alpine Linux. This installation mode is suitable for most use cases including generic [[Tutorials_and_Howtos#Desktop|desktop]], [[Setting up the build environment|development machine]] etc. &lt;br /&gt;
&lt;br /&gt;
If an entire hard disk(s) is available for Alpine Linux, [[Installation#setup-alpine_based_System_Disk_Install|setup-alpine based install]] is the recommended way to install Alpine Linux. For all other use cases, follow the [[Alpine_setup_scripts#setup-disk|&amp;lt;code&amp;gt;setup-disk&amp;lt;/code&amp;gt;]] based Installation given below.&lt;br /&gt;
&lt;br /&gt;
== setup-disk based Installation ==&lt;br /&gt;
&lt;br /&gt;
To perform a traditional hard-disk installation of Alpine Linux, after completing the base configuration, proceed to create, format and mount your partitions with MOUNTPOINT {{Path|&#039;&#039;&#039;/mnt&#039;&#039;&#039;}} as root and run the command {{Codeline|&#039;&#039;&#039;&amp;lt;Code&amp;gt;setup-disk -m sys /mnt&amp;lt;/Code&amp;gt;&#039;&#039;&#039;}}.&lt;br /&gt;
&lt;br /&gt;
# Follow the [[Installation#General_course_of_action|Installation guide]] to complete the [[Installation#Base_configuration|base configuration]], if not already done. A working [[Configure_Networking#Connectivity_testing|Internet access]] is mandatory to complete this installation.&lt;br /&gt;
# If necessary formatted partition(s) are unavailable, manually [[Setting up disks manually#Creating_partitions|create]] them first and [[Setting up disks manually#Formatting_partitions|format]] them including swap partition(if used). If you&#039;re using legacy BIOS mode, use DOS i.e MBR partition table and ensure that proper partition is bootable for [[Bootloaders#Syslinux|extlinux]].&lt;br /&gt;
# Mount the &#039;&#039;&#039;/ (root)&#039;&#039;&#039;  partition on a mount point i.e say {{Path|/mnt}} as follows: {{Cmd|# mount /dev/sdXY /mnt}}&lt;br /&gt;
# If you&#039;re using [[UEFI|EFI]], create a mount point &amp;lt;code&amp;gt;/mnt/boot&amp;lt;/code&amp;gt; and mount the EFI system partition(ESP) on it. {{Cmd|&amp;lt;nowiki&amp;gt;# mkdir -p /mnt/boot&lt;br /&gt;
# mount /dev/sdXY /mnt/boot&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
# If [[Swap|swap]] partition is available, you can also enable it now: {{Cmd|# swapon /dev/sdXY }}&lt;br /&gt;
# Install Alpine Linux using the following command: {{Cmd|# setup-disk -m sys /mnt}}&lt;br /&gt;
# &amp;lt;code&amp;gt;setup-disk&amp;lt;/code&amp;gt; will perform a traditional hard disk install of your running system, detects your file system layout and generates {{Path|/etc/fstab}} and installs a [[Bootloaders|bootloader]] based on the &amp;lt;Code&amp;gt;BOOTLOADER&amp;lt;/Code&amp;gt; [[Alpine_setup_scripts#Environment_Variables|environment variable]].&lt;br /&gt;
# At the end of Installation, you can [[Installation#Reboot|reboot]] to boot into the newly installed Alpine Linux and [[Installation#Post-Installation|configure]] further.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
=== Mounting on /dev/sdXY sysroot failed ===&lt;br /&gt;
&lt;br /&gt;
The error message appears as follows with variations in &amp;lt;code&amp;gt;/dev/sda8&amp;lt;/code&amp;gt; depending on the partition number and SSD/HDD etc:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
mounting /dev/sda8 on /sysroot failed: No such file or directory&lt;br /&gt;
mounting root: failed&lt;br /&gt;
initramfs emergency recovery shell launched. Type &#039;exit&#039; to continue boot&lt;br /&gt;
sh: can&#039;t access tty: job control turned off&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above error message can be caused by various reasons. Follow the below steps in the emergency shell to identify one possible cause.&lt;br /&gt;
&lt;br /&gt;
# Verify that the partition name in which Alpine Linux was installed matches the above [[#Mounting on /dev/sdXY sysroot failed|error]] by issuing the command and also note down the filesystem type of that partition (say TYPE=&amp;quot;ext4&amp;quot;) : {{Cmd| blkid}}&lt;br /&gt;
# If the expected disk (e.g., /dev/sda, /dev/nvme0n1) itself is missing in the output of {{ic| blkid}}, check [[#Disks not detected after setup-disk|Disks not detected after setup-disk]].&lt;br /&gt;
# Verify that sysroot exists by issuing the command. {{Cmd|ls -ld /sysroot}}&lt;br /&gt;
# Check if the above error message apears when issuing the command. {{Cmd|mount /dev/sda8 /sysroot}}&lt;br /&gt;
# If there is no error message, proceed to check if the issue is caused by a [[#Filesystem corruption|filesystem corruption]].&lt;br /&gt;
# If the manual mount command fails with &amp;quot;No such file or directory&amp;quot; even though you verified /sysroot exists in Step 3, this confirms the kernel doesn&#039;t recognize the filesystem type. Check whether filesystem modules(change ext4 if needed) are loaded by issuing the command. {{Cmd|&amp;lt;nowiki&amp;gt;lsmod | grep ext4 &amp;lt;/nowiki&amp;gt;}} &lt;br /&gt;
# If there is no output, then it confirms that the above [[#Mounting on /dev/sdXY sysroot failed|issue]] is caused by [[#Missing filesystem modules in the kernel cmdline|missing filesystem module]].&lt;br /&gt;
&lt;br /&gt;
==== Disks not detected after setup-disk====&lt;br /&gt;
&lt;br /&gt;
After running the standard Alpine installation command: {{ic|setup-disk -m sys /mnt}} and rebooting, the system gives the error mentioned in [[#Mounting on /dev/sdXY sysroot failed|Mounting on /dev/sdXY sysroot failed]] with the expected disk (e.g., /dev/sda, /dev/nvme0n1) missing to show at the output of {{ic| blkid}}. This prevents booting into the installed system. &lt;br /&gt;
&lt;br /&gt;
Issue: As per [https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10615 bug report] this might be caused by BIOS storage controller being set to &amp;quot;RAID On (Intel Rapid Storage Technology)&amp;quot;.  &lt;br /&gt;
&lt;br /&gt;
Resolution: Switch the storage mode in BIOS/UEFI: Go to BIOS → Storage or SATA/NVMe Operation. Change setting from:RAID On (Intel Rapid Storage Technology) to: AHCI or AHCI/NVMe.&lt;br /&gt;
&lt;br /&gt;
==== Missing filesystem modules in the kernel cmdline ====&lt;br /&gt;
&lt;br /&gt;
[[BusyBox]] mount command does not autoload modules, so need to add filesystem modules to the kernel cmdline. Even though alpine installer does this automatically, this has to be taken care of in case of manual disk install, particularly for [[Dualbooting|dualboot]] installations.&lt;br /&gt;
&lt;br /&gt;
# To resolve, issue the command to load the appropriate filesystem module(say TYPE=&amp;quot;ext4&amp;quot;).{{Cmd|modprobe ext4}}&lt;br /&gt;
# To verify if the issue is resolved, reissue the command.{{Cmd|mount /dev/sda8 /sysroot}} &lt;br /&gt;
# If mount succeeded, issue the following command to boot into Alpine Linux. {{Cmd|exit}}&lt;br /&gt;
&lt;br /&gt;
Choose the appropriate solution based on your use case for a permanent fix:&lt;br /&gt;
&lt;br /&gt;
*If you are using [[Bootloaders#GRUB|grub]], then ensure that {{Codeline|GRUB_CMDLINE_LINUX}} line in the file {{Path|/etc/default/grub}} has the appropriate filesystem module &amp;lt;code&amp;gt;ext4&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;rootfstype=ext4&amp;lt;/code&amp;gt; as follows: {{Cat|/etc/default/grub|&amp;lt;nowiki&amp;gt;...&lt;br /&gt;
GRUB_CMDLINE_LINUX=&amp;quot;console=ttyS0,19200n8 net.ifnames=0 modules=sd-mod,usb-storage,ext4 quiet rootfstype=ext4&amp;quot;&lt;br /&gt;
...&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
* If you are using [[Bootloaders#Syslinux|ExtLinux/SysLinux]], then ensure that {{Codeline|APPEND}} line in the file {{Path|/boot/extlinux.conf}} has &amp;lt;code&amp;gt;root=UUID=&amp;lt;UUID ID&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;root=/dev/sdXY&amp;lt;/code&amp;gt; and the same matches the root path in the {{Path|/etc/fstab}} file. Also ensure that modules has the appropriate filesystem like &amp;lt;code&amp;gt;ext4&amp;lt;/code&amp;gt; as follows: {{Cat|/boot/extlinux.conf|&amp;lt;nowiki&amp;gt;...&lt;br /&gt;
APPEND root=/dev/sdXY modules=sd-mod,usb-storage,ext4 quiet&lt;br /&gt;
# root=UUID=&amp;lt;UUID ID&amp;gt; can be used also in the APPEND Line.&lt;br /&gt;
...&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{Note|For both above cases, you may need to issue {{Codeline|update-grub}} or {{Codeline|update-extlinux}} after making above changes.}}&lt;br /&gt;
 &lt;br /&gt;
*For a solution independent of [[Bootloaders|bootloaders]], ensure that the file {{Path|/etc/mkinitfs/mkinitfs.conf}} has the necessary filesystem module in it. Refer [[Initramfs init|Initramfs]] page for more information and recreate initramfs image.&lt;br /&gt;
&lt;br /&gt;
==== Filesystem corruption ====&lt;br /&gt;
&lt;br /&gt;
To fix filesystem corruption issues, the command fsck must be run on the root partition. The root partition should be umounted before running fsck. Boot from a [[Rescue disk]] to run the fsck command on the root partition:{{Cmd|&amp;lt;nowiki&amp;gt;# fsck -y /dev/&amp;lt;DEVICE&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
After running fsck, proceed to Reboot the Computer.&lt;br /&gt;
&lt;br /&gt;
If the fsck Command does Fix the Corruption on the Root File System but the &#039;&#039;&#039;Error: Mounting Root Failed&#039;&#039;&#039; still persists then the next step would be to ReBuild the &#039;&#039;&#039;initramfs&#039;&#039;&#039; File System with the &#039;&#039;&#039;mkinitfs&#039;&#039;&#039; Command then Reboot. You need to &#039;&#039;&#039;Mount the Root Partition&#039;&#039;&#039; and [[Chroot]] into the Mounted Root Partition before running the mkinitfs Command as shown in the [[Initramfs init|initramfs]] page. &lt;br /&gt;
&lt;br /&gt;
=== Blinking underscore ===&lt;br /&gt;
&lt;br /&gt;
On a UEFI system, at the end of Installation after rebooting, the computer screen may appear with a &#039;&#039;&#039;blinking underscore&#039;&#039;&#039;. This may be due to the firmware not finding a valid boot entry.&lt;br /&gt;
&lt;br /&gt;
The [[UEFI#EFI bootloaders|EFI bootloader]] entries are added without writing to NVRAM, thus preventing GRUB from calling {{ic|efibootmgr}}. In some cases the UEFI firmware may not boot from a bootloader without a valid NVRAM entry. In such cases, at the end of installation, instead of rebooting, manually add an entry for Alpine Linux in the NVRAM as follows:&lt;br /&gt;
* Install the {{pkg|efibootmgr}} package:{{Cmd|# apk add efibootmgr}}&lt;br /&gt;
* Adjust the device name {{ic|/dev/sdX}} and partition number {{ic|1}}, before issuing the command: {{Cmd|# efibootmgr --create --disk /dev/sdX --part 1 --label &amp;quot;Alpine&amp;quot; --loader &#039;\EFI\alpine\grubx64.efi&#039;}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Bootloaders]] - For information on GRUB, Syslinux and rEFInd&lt;br /&gt;
* [[Installing Alpine on HDD dualbooting|Install to HDD with dual-boot]]&lt;br /&gt;
* [[Installing Alpine Linux in a chroot|Installing Alpine Linux in a chroot]]&lt;br /&gt;
* [https://github.com/itoffshore/alpine-linux-scripts setup-partitions]&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>Kenrmayfield</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Bootloaders&amp;diff=32033</id>
		<title>Bootloaders</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Bootloaders&amp;diff=32033"/>
		<updated>2026-02-10T23:12:46Z</updated>

		<summary type="html">&lt;p&gt;Kenrmayfield: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;bootloader&#039;&#039; is a computer program that is responsible for booting a computer. In the case where it also provides an interactive menu with multiple boot choices, then it&#039;s often called a &#039;&#039;boot manager&#039;&#039;. This page shows the basic steps that you need to perform if, for any reason, you want to switch bootloaders or to apply some manual configuration.&lt;br /&gt;
&lt;br /&gt;
The following bootloaders are available in Alpine Linux:-&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;[[#Syslinux|Syslinux]]&amp;lt;/code&amp;gt; is the default lightweight bootloader used in Alpine Linux when booting the Alpine Installer ISO.  It is also the bootloader when creating a Live USB/CD/ISOLinux/PXELinux.  Supports the Filesystems: FAT12/16/32&amp;lt;br&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;[[#Extlinux|Extlinux]]&amp;lt;/code&amp;gt; is the default lightweight bootloader used in Alpine Linux when Installing the Alpine OS to Disk via BIOS/Legacy Boot.  Supports the Filesystems: EXT2/3/4, BTRFS, XFS&amp;lt;br&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;[[#rEFInd|rEFInd]]&amp;lt;/code&amp;gt; is an easy-to-use &#039;&#039;EFI&#039;&#039; boot menu that allows booting different operating systems.&amp;lt;br&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;[[#GRUB|GRUB]]&amp;lt;/code&amp;gt; is a standard Linux bootloader used in Alpine Linux when Installing the Alpine OS to Disk via UEFI.&amp;lt;br&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;[[#EFI_Boot_Stub|EFI Boot Stub]]&amp;lt;/code&amp;gt; allows for booting Linux directly from a motherboard supporting &#039;&#039;UEFI&#039;&#039; or from another bootloader.&amp;lt;br&amp;gt;&lt;br /&gt;
* [[UEFI Secure Boot]] uses {{pkg|systemd-efistub}} or {{pkg|stubbyboot-efistub}}.&lt;br /&gt;
&lt;br /&gt;
A [[#Using a UKI|Unified Kernel Image (UKI)]] is additionally supported, available  for UEFI only. It is a UEFI executable that can be useful in [https://uapi-group.org/specifications/specs/unified_kernel_image/ certain use cases], including secure boot, clouds and containers.&lt;br /&gt;
&lt;br /&gt;
Note that {{pkg|gummiboot}} is a &#039;&#039;deprecated&#039;&#039; UEFI boot manager that was originally able to leverage UEFI firmware and detect bootable images such as Linux kernels that have an EFI stub on the EFI System Partition (ESP).  The [https://cgit.freedesktop.org/gummiboot/ gummiboot project] was discontinued in 2015 and renamed as {{Pkg|systemd-boot}} for systemd systems and is only available in Alpine Linux in the [[Repositories#Testing|testing repository]].  As it had no runtime dependencies, &#039;&#039;&#039;gummiboot&#039;&#039;&#039; was appreciated for its simplicity as a lightweight, minimal UEFI boot solution.  Its UEFI stub, {{pkg|gummiboot-efistub}}, was used [[UEFI_Secure_Boot#Generating_Unified_Kernel_Image|to generate a Unified Kernel Images (UKIs)]] e.g. for [[DM-verity]] and Secure Boot, but [[Release_Notes_for_Alpine_3.22.0#Secure_Boot_and_Gummiboot|it has been deprecated since Alpine Linux 3.22]] and is no longer maintained;  it has been replaced by &#039;&#039;&#039;systemd-efistub&#039;&#039;&#039; (note that the latter package [[UEFI_Secure_Boot#Generating_Unified_Kernel_Image|only supplies EFI stub binaries]] and doesn’t depend on any systemd components).&lt;br /&gt;
&lt;br /&gt;
== Syslinux ==&lt;br /&gt;
&lt;br /&gt;
If you want to switch from another bootloader back to &#039;&#039;Syslinux&#039;&#039;, or if for some reason you want to install Syslinux manually, then the following steps are required.&lt;br /&gt;
&lt;br /&gt;
Install the {{pkg|syslinux}} package:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add syslinux}}&lt;br /&gt;
&lt;br /&gt;
If you&#039;re using GPT partitions, then install the &#039;&#039;GPT MBR&#039;&#039; onto the drive that you want to install the bootloader on (in this case, {{path|/dev/sda}}):&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;# dd bs=440 count=1 conv=notrunc if=/usr/share/syslinux/gptmbr.bin of=/dev/sda&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Or, if you&#039;re using DOS partitions, then install the &#039;&#039;DOS MBR&#039;&#039; instead:&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;# dd bs=440 count=1 conv=notrunc if=/usr/share/syslinux/mbr.bin of=/dev/sda&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&amp;lt;!-- See also: http://www.syslinux.org/wiki/index.php?title=Mbr --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Next, install the required Syslinux binaries. Despite being called &amp;lt;code&amp;gt;extlinux&amp;lt;/code&amp;gt;, Syslinux supports booting from FAT12/16/32, NTFS, ext2/3/4, [[Btrfs|btrfs]], XFS and UFS/FFS filesystems.&lt;br /&gt;
&lt;br /&gt;
{{cmd|# syslinux --install /boot}}&lt;br /&gt;
&lt;br /&gt;
The configuration file is located in {{path|/boot/syslinux/syslinux.cfg}}. &lt;br /&gt;
&lt;br /&gt;
Alpine Linux ships with a script, &amp;lt;code&amp;gt;update-extlinux&amp;lt;/code&amp;gt;, that automatically (re)generates this file, for example, on updates to Syslinux. The settings for this script can be found in {{path|/etc/update-extlinux.conf}}, including the option to disable automatic overwriting of {{path|/boot/extlinux.conf}}. &lt;br /&gt;
&lt;br /&gt;
You can also edit and add additional menu entries in the bootloader configuration file for dual booting multiple os&#039;s: {{path|/boot/syslinux/syslinux.cfg}}&lt;br /&gt;
&lt;br /&gt;
=== Using EFI with syslinux ===&lt;br /&gt;
&lt;br /&gt;
The Alpine Linux installer automatically uses [[#GRUB|GRUB]] if EFI mode is detected. The section below is specifically about using EFI with Syslinux.&lt;br /&gt;
&lt;br /&gt;
Assuming that {{path|/mnt}} is a FAT32 partition of type EF00 and that {{path|/boot}} belongs to the rootfs created after running &amp;lt;code&amp;gt;setup-disk&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;# mkdir -p /mnt/EFI/syslinux&lt;br /&gt;
# cp /usr/share/syslinux/efi64/* /mnt/EFI/syslinux/&lt;br /&gt;
# cp /boot/extlinux.conf /mnt/EFI/syslinux/syslinux.cfg&lt;br /&gt;
# cp /boot/vmlinuz* /mnt/EFI/syslinux/&lt;br /&gt;
# cp /boot/initramfs* /mnt/EFI/syslinux/&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
You may need to modify {{path|/mnt/EFI/syslinux/syslinux.cfg}} to change the paths to absolute paths (just add a / in front of the vmlinuz/initramfs entries), or copy the files to {{path|/mnt/EFI/syslinux}} instead (XXX: untested).&lt;br /&gt;
&lt;br /&gt;
In the end, the {{path|/mnt/EFI/syslinux/syslinux.cfg}} file should look like this:&lt;br /&gt;
&lt;br /&gt;
{{cat|/mnt/EFI/syslinux/syslinux.cfg|&amp;lt;nowiki&amp;gt;...&lt;br /&gt;
DEFAULT menu.c32&lt;br /&gt;
PROMPT 0&lt;br /&gt;
MENU TITLE Alpine/Linux Boot Menu&lt;br /&gt;
MENU HIDDEN&lt;br /&gt;
MENU AUTOBOOT Alpine will be booted automatically in # seconds&lt;br /&gt;
TIMEOUT 10&lt;br /&gt;
LABEL lts&lt;br /&gt;
  MENU DEFAULT&lt;br /&gt;
  MENU LABEL Linux lts&lt;br /&gt;
  LINUX /vmlinuz-lts&lt;br /&gt;
  INITRD /initrd-lts&lt;br /&gt;
  APPEND root=/dev/sda3 modules=sd-mod,usb-storage,ext4 quiet&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Finally, add &amp;lt;code&amp;gt;syslinux&amp;lt;/code&amp;gt; to the EFI boot menu.  Assuming that {{path|/dev/sda}} is your hard drive —&#039;&#039;&#039;&#039;&#039;be careful to check first what is its path on your device and to adjust accordingly&#039;&#039;&#039;&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;# apk add efibootmgr&lt;br /&gt;
# efibootmgr -c -d /dev/sda -p 1 -l \\EFI\\syslinux\\syslinux.efi -L &amp;quot;ALPINE-SYSLINUX&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
You can now verify that the boot entry has been added:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;efibootmgr&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
BootCurrent: 0001&lt;br /&gt;
Timeout: 0 seconds&lt;br /&gt;
BootOrder: 0001,0000,0002,...&lt;br /&gt;
Boot001* ALPINE-SYSLINUX HD(1,GPT,xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)/FILE(\EFI\syslinux\syslinux.efi)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== rEFInd ==&lt;br /&gt;
{{Main|rEFInd}}&lt;br /&gt;
&lt;br /&gt;
[[rEFInd]] provides a graphical boot menu for [[UEFI]] systems.&lt;br /&gt;
&lt;br /&gt;
== GRUB ==&lt;br /&gt;
&lt;br /&gt;
To install GRUB in BIOS mode, (optionally) remove the Syslinux package and install the required GRUB packages:&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;# apk del syslinux&lt;br /&gt;
# apk add grub grub-bios&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
For EFI, install GRUB&#039;s EFI package instead. Note that {{path|/boot}} has to be an EFI-compatible filesystem, such as FAT32.&lt;br /&gt;
&lt;br /&gt;
{{cmd|# apk add grub-efi efibootmgr}}&lt;br /&gt;
&lt;br /&gt;
Next, install the MBR and GRUB binaries to disk for BIOS mode:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# grub-install /dev/vda}}&lt;br /&gt;
&lt;br /&gt;
For EFI mode:&lt;br /&gt;
&lt;br /&gt;
{{cmd|&amp;lt;nowiki&amp;gt;# grub-install --target=x86_64-efi --efi-directory=/boot&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Then, add this line to {{path|/etc/default/grub}}:&lt;br /&gt;
&lt;br /&gt;
{{cat|/etc/default/grub|&amp;lt;nowiki&amp;gt;# GRUB_CMDLINE_LINUX_DEFAULT=&amp;quot;quiet rootfstype=ext4 modules=sd-mod,usb-storage,ext4&amp;quot;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
GRUB ships with an automatic configuration generator, including some automatic detection of other operating systems installed on the device:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# grub-mkconfig -o /boot/grub/grub.cfg}}&lt;br /&gt;
&lt;br /&gt;
This script can be configured via the {{path|/etc/default/grub}} file. &lt;br /&gt;
&lt;br /&gt;
If the font in the GRUB boot screen appears too small, then [[Fonts#Changing_GRUB_font_and_font_size|change the GRUB font]].&lt;br /&gt;
&lt;br /&gt;
Consult [https://www.gnu.org/software/grub/manual/html_node/Simple-configuration.html gnu.org&#039;s online manual] for a list of available &amp;lt;code&amp;gt;grub-mkconfig&amp;lt;/code&amp;gt; configuration options.&lt;br /&gt;
&lt;br /&gt;
== EFI Boot Stub ==&lt;br /&gt;
&lt;br /&gt;
To boot directly from your motherboard&#039;s UEFI boot menu, a boot entry needs to be created either with a UEFI shell or with &#039;&#039;efibootmgr&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== efibootmgr ===&lt;br /&gt;
&lt;br /&gt;
Install {{Pkg|efibootmgr}}:&lt;br /&gt;
{{cmd|# apk add efibootmgr}}&lt;br /&gt;
&lt;br /&gt;
Create a boot entry. It is recommended to do this in a script, as efibootmgr does not allow for editing entries.&lt;br /&gt;
&lt;br /&gt;
{{cat|add-bootentry|&amp;lt;nowiki&amp;gt;#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
params=&amp;quot;root=/dev/sdXZ rootfstype=ext4 rw \&lt;br /&gt;
  initrd=\intel-ucode.img \&lt;br /&gt;
  initrd=\initramfs-lts&amp;quot;&lt;br /&gt;
&lt;br /&gt;
efibootmgr --create --label &amp;quot;Alpine Linux&amp;quot; \&lt;br /&gt;
  --disk /dev/sdX --part Y \&lt;br /&gt;
  --loader /vmlinuz-lts \&lt;br /&gt;
  --unicode &amp;quot;${params}&amp;quot; \&lt;br /&gt;
  --verbose&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Where {{path|/dev/sdXY}} contains the EFI partition and {{path|/dev/sdXZ}} contains the root partition. If you are using {{Pkg|linux-stable}}, then replace &amp;lt;code&amp;gt;lts&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;stable&amp;lt;/code&amp;gt; in the script.&lt;br /&gt;
&lt;br /&gt;
{{Tip|If you&#039;re modifying EFI records from a running system (e. g. migrating from GRUB), you can populate {{ic|$params}} from {{ic|/proc/cmdline}}. Make sure to append {{ic|initrd}} param if it&#039;s missing since GRUB does not add it to the command line.}}&lt;br /&gt;
&lt;br /&gt;
{{Note| The kernel contains the [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/init/do_mounts.c#n254 exhaustive list] of ways to specify the block device. For a more robust boot entry, it is recommended to use a persistent name such as the PARTUUID.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Optionally, set the newly-created entry as the default:&lt;br /&gt;
&lt;br /&gt;
{{cmd|# efibootmgr -n XXXX}}&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;code&amp;gt;XXXX&amp;lt;/code&amp;gt; is the boot number of the new entry.&lt;br /&gt;
&lt;br /&gt;
{{Note| The loader and initrd file arguments are relative to the EFI partition. In a default installation, Alpine Linux places these files in {{path|/boot/}}, while EFI is mounted to {{path|/boot/efi/}}. You can either update &amp;lt;code&amp;gt;fstab&amp;lt;/code&amp;gt; to mount EFI at {{path|/boot/}}, or manually copy them to {{path|/boot/efi/}}.                                                                                           }}&lt;br /&gt;
&lt;br /&gt;
== Using a UKI  ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[https://github.com/uapi-group/specifications/blob/main/specs/unified_kernel_image.md#unified-kernel-image-uki Unified Kernel Image]&#039;&#039;&#039; (UKI) is supported in UEFI only. It is possible to boot directly into a UKI. A UKI is a single file that contains the initfs, kernel and cmdline. &lt;br /&gt;
&lt;br /&gt;
The [[UEFI Secure Boot]] page contains the instructions for setting up an a UKI.  While this is typically done in order to &#039;&#039;SecureBoot&#039;&#039;, it is perfectly feasible to skip enrolling the custom keys and to leave SecureBoot off. &lt;br /&gt;
&lt;br /&gt;
Additionally, it is possible to install the UKI in the default fallback path used by most UEFI implementations. By installing the UKI into this path, the system will automatically boot into it if no other entries are defined. This can be automated as part of the kernel hook by adding the following to {{path|/etc/kernel-hooks.d/secureboot.conf}} :&lt;br /&gt;
&lt;br /&gt;
{{cat|/etc/kernel-hooks.d/secureboot.conf|&amp;lt;nowiki&amp;gt;# For the stable kernel, install the UKI into the default UEFI path.&lt;br /&gt;
if [ &amp;quot;$1&amp;quot; == &amp;quot;stable&amp;quot; ]; then&lt;br /&gt;
  output_dir=&amp;quot;/efi/EFI/Boot/&amp;quot;&lt;br /&gt;
  output_name=&amp;quot;bootx64.efi&amp;quot;&lt;br /&gt;
fi&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{Note|  {{path|bootx64.efi}} is only correct for &amp;lt;code&amp;gt;x86_64&amp;lt;/code&amp;gt; systems. For other architectures, the exact name will vary.}}&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting == &lt;br /&gt;
&lt;br /&gt;
Since bootloaders are installed only during [[System Disk Mode]], the errors related to them are documented in [[System Disk Mode#Troubleshooting|that page]].&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Enable Serial Console on Boot]]&lt;br /&gt;
* [[Silent boot]]&lt;br /&gt;
* [https://wiki.gentoo.org/wiki/Bootloader Gentoo Wiki - Bootloaders]&lt;br /&gt;
* [https://wiki.archlinux.org/title/Arch_boot_process#Boot_loader Archwiki - Boot loader]&lt;br /&gt;
* [https://wiki.postmarketos.org/wiki/Category:Bootloaders PostmarketOS Wiki - Bootloaders]&lt;br /&gt;
* [https://docs.u-boot.org/en/latest/develop/release_cycle.html u-boot.org docs - U-Boot Release Cycle]&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
[[Category:Booting]]&lt;/div&gt;</summary>
		<author><name>Kenrmayfield</name></author>
	</entry>
</feed>