<?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=7heo</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=7heo"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/7heo"/>
	<updated>2026-05-01T11:25:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Include:Copying_Alpine_to_Flash&amp;diff=10116</id>
		<title>Include:Copying Alpine to Flash</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Include:Copying_Alpine_to_Flash&amp;diff=10116"/>
		<updated>2014-08-04T15:21:03Z</updated>

		<summary type="html">&lt;p&gt;7heo: /* Determine the Device Name of the {{{1|Flash Medium}}} */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Boot Alpine Linux CD-ROM ===&lt;br /&gt;
# Insert the Alpine Linux CD-ROM into a computer.&lt;br /&gt;
# Boot the computer from the Alpine Linux CD-ROM.&lt;br /&gt;
#* This step may require changes to the BIOS settings to select booting from CD. &lt;br /&gt;
# Login with the username &#039;&#039;root&#039;&#039;. No password is needed.&lt;br /&gt;
&lt;br /&gt;
{{Tip|If you&#039;re not able to boot from the CD, then another option is to boot from a regular Alpine installation, and [[Burning_ISOs|manually mount the ISO image to {{Path|/media/cdrom}}]].}} &lt;br /&gt;
&lt;br /&gt;
=== Determine the Device Name of the {{{1|Flash Medium}}} ===&lt;br /&gt;
Determine the name your computer uses for your {{{1|flash medium}}}. The following step is one way to do this.&lt;br /&gt;
# After inserting the {{{1|flash medium}}}, run the command:&lt;br /&gt;
#* {{Cmd|dmesg}}&lt;br /&gt;
#* At the end of this command you should see the name of your {{{1|flash medium}}}, likely starting with &amp;quot;sd&amp;quot;. (For example: &amp;quot;sda&amp;quot;).&lt;br /&gt;
#* The remainder of this document will assume that your {{{1|flash medium}}} is called /dev/sda&lt;br /&gt;
&lt;br /&gt;
{{Warning|If you are not using a virtual machine, be very careful about this. You do not want to mistakenly wipe your hard drive if it&#039;s on /dev/sda}}&lt;br /&gt;
&lt;br /&gt;
=== Format {{{1|Flash Medium}}} ===&lt;br /&gt;
Run fdisk (replacing sda with your {{{1|flash medium}}} name):&lt;br /&gt;
{{Cmd|fdisk /dev/sda}}&lt;br /&gt;
&lt;br /&gt;
# (&#039;&#039;Optional&#039;&#039;) - Create new partition table with one FAT32 partition&lt;br /&gt;
#* &#039;&#039;&#039;d&#039;&#039;&#039; Delete all partitions (this may take a few steps)&lt;br /&gt;
#* &#039;&#039;&#039;n&#039;&#039;&#039; Create a new partition&lt;br /&gt;
#* &#039;&#039;&#039;p&#039;&#039;&#039; A primary partition&lt;br /&gt;
#* &#039;&#039;&#039;1&#039;&#039;&#039; Partition number 1&lt;br /&gt;
#** Use defaults for first and last cylinder (just press [Enter] twice).&lt;br /&gt;
#* &#039;&#039;&#039;t&#039;&#039;&#039; Change partition type&lt;br /&gt;
#* &#039;&#039;&#039;c&#039;&#039;&#039; Partition type (Win95 FAT32/LBA)&lt;br /&gt;
#Verify that the primary partition is bootable&lt;br /&gt;
#* &#039;&#039;&#039;p&#039;&#039;&#039; Print list of partitions&lt;br /&gt;
#* If there is no &#039;*&#039; next to the first partition, follow the next steps:&lt;br /&gt;
#** &#039;&#039;&#039;a&#039;&#039;&#039; &amp;lt;big&amp;gt;Make the partition bootable (set boot flag)&amp;lt;/big&amp;gt;&lt;br /&gt;
#** &#039;&#039;&#039;1&#039;&#039;&#039; Partition number 1&lt;br /&gt;
#&#039;&#039;&#039;w&#039;&#039;&#039; Write your changes to the device&lt;br /&gt;
&lt;br /&gt;
=== Add Alpine Linux to the {{{1|Flash Medium}}}  ===&lt;br /&gt;
To boot from your {{{1|flash medium}}} you need to copy the contents of the CDROM to the {{{1|flash medium}}} and make it bootable. Those two operations can be automated with the [[setup-bootable]] tool or can be done manually.&lt;br /&gt;
&lt;br /&gt;
{{Note|If the following commands fail due to &#039;No such file or directory&#039;, you may have to remove and reinsert the {{{1|flash medium}}}, or even reboot, to get /dev/sda1 to appear}}&lt;br /&gt;
&lt;br /&gt;
==== Automated ====&lt;br /&gt;
{{Tip|If using Alpine Linux 1.10.4 or newer, you can use this section to complete the install. Otherwise, follow the Manual steps below.}}&lt;br /&gt;
{{Note|The target partition has to be formatted. Use the &amp;lt;code&amp;gt;mkdosfs&amp;lt;/code&amp;gt; command from the Manual steps below if needed.}}&lt;br /&gt;
# Run the [[setup-bootable]] script to add Alpine Linux to the {{{1|flash medium}}} and make it bootable (replacing sda with your {{{1|flash medium}}} name):&lt;br /&gt;
#: {{Cmd|setup-bootable /media/cdrom /dev/sda1}}&lt;br /&gt;
{{Note|If you get something like &#039;&amp;lt;code&amp;gt;Failed to mount /dev/sda1 on /media/sda1&amp;lt;/code&amp;gt;&#039; when running the above [[setup-bootable]] command, you might want to try running:&lt;br /&gt;
{{Cmd|modprobe vfat}}&lt;br /&gt;
and then try re-run the [[setup-bootable]] command as described above.}}&lt;br /&gt;
{{Warning|If you are installing to a USB Stick, you may need to modify the {{Path|syslinux.cfg}} file to say &amp;lt;code&amp;gt;usbdisk&amp;lt;/code&amp;gt; as [[#Wrong_Device_Name|described below]], or you will face possible problems booting and definite problems with the package cache. Recent versions of &amp;lt;code&amp;gt;setup-bootable&amp;lt;/code&amp;gt; will specify the alpine_dev using a UUID instead, so it should work properly by default.}}&lt;br /&gt;
&lt;br /&gt;
==== Manual ====&lt;br /&gt;
# (&#039;&#039;Optional&#039;&#039;) - If you created a new partition above, format the {{{1|flash medium}}} with a FAT32 filesystem (replacing sda with your {{{1|flash medium}}} name):&lt;br /&gt;
#: {{Cmd|apk add dosfstools&amp;lt;BR&amp;gt;mkdosfs -F32 /dev/sda1}}&lt;br /&gt;
# Install syslinux and MBR (replacing sda with your {{{1|flash medium}}} name):&lt;br /&gt;
#: {{Cmd|{{{|apk add syslinux&amp;lt;BR&amp;gt;dd if=/usr/share/syslinux/mbr.bin of=/dev/sda}}}&amp;lt;BR&amp;gt;syslinux /dev/sda1}}&lt;br /&gt;
#Copy the files to the {{{1|flash medium}}} (replacing sda with your {{{1|flash medium}}} name):&lt;br /&gt;
#: {{Cmd|&amp;lt;nowiki&amp;gt;mkdir -p /media/sda1&lt;br /&gt;
mount -t vfat /dev/sda1 /media/sda1&lt;br /&gt;
cd /media/cdrom&lt;br /&gt;
cp -a .alpine-release * /media/sda1/&lt;br /&gt;
umount /media/sda1&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
# (&#039;&#039;Optional&#039;&#039;) Remove any apkovl files that were transfered as part of the copy process.  This should be done if you wish to have a fresh install.  Replace sda with your {{{1|flash medium}}} name)&lt;br /&gt;
#: {{Cmd|&amp;lt;nowiki&amp;gt;mount -t vfat /dev/sda1 /media/sda1&lt;br /&gt;
rm /media/sda1/*.apkovl.tar.gz&lt;br /&gt;
umount /media/sda1&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
=== Wrong Device Name ===&lt;br /&gt;
If you cannot boot from the {{{1|flash medium}}} and you see something like:&lt;br /&gt;
 Mounting boot media failed.&lt;br /&gt;
 initramfs emergency recovery shell launched. Type &#039;exit&#039; to continue boot&lt;br /&gt;
then it is likely that the device name in {{Path|syslinux.cfg}} is wrong. You should replace the device name in this line:&lt;br /&gt;
 append initrd=/boot/grsec.gz alpine_dev=&#039;&#039;&#039;usbdisk&#039;&#039;&#039;:vfat modules=loop,cramfs,sd-mod,usb-storage quiet&lt;br /&gt;
with the proper device name.&lt;br /&gt;
* For boot from USB, the device name should be &#039;usbdisk&#039; (as shown above)&lt;br /&gt;
* For other options, you can run &amp;lt;code&amp;gt;cat /proc/partitions&amp;lt;/code&amp;gt; to see the available disks (i.e. &#039;sda&#039; or &#039;sdb&#039;)&lt;br /&gt;
&lt;br /&gt;
=== Non-FAT32 Filesystems ===&lt;br /&gt;
When your {{{1|flash medium}}} is formatted with a filesystem other than FAT32, you might have to specify the necessary filesystem modules in the boot parameters.&lt;br /&gt;
&lt;br /&gt;
To do so, mount the {{{1|flash medium}}} and change the {{Path|syslinux.cfg}} file line from &lt;br /&gt;
 append initrd=/boot/grsec.gz alpine_dev=usbdisk:vfat modules=loop,cramfs,sd-mod,usb-storage quiet&lt;br /&gt;
to&lt;br /&gt;
 append initrd=/boot/grsec.gz alpine_dev=usbdisk:&#039;&#039;&#039;ext3&#039;&#039;&#039; modules=loop,cramfs,sd-mod,usb-storage&#039;&#039;&#039;,ext3&#039;&#039;&#039; quiet&lt;br /&gt;
in the case of an ext3 formatted partition. A similar procedure might apply to other filesystems (if they are supported by syslinux and the Alpine Linux kernel).&lt;/div&gt;</summary>
		<author><name>7heo</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Create_a_Bootable_Device&amp;diff=10115</id>
		<title>Create a Bootable Device</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Create_a_Bootable_Device&amp;diff=10115"/>
		<updated>2014-08-04T15:20:42Z</updated>

		<summary type="html">&lt;p&gt;7heo: /* Creating a bootable Alpine Linux USB Stick from the command line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Creating a bootable Alpine Linux USB Stick with UNetbootin ==&lt;br /&gt;
&lt;br /&gt;
UNetbootin is a graphical tool that allows you to create bootable Live USB drives for Ubuntu, Fedora, and other Linux distributions without burning a CD. UNetbootin is available for many distributions and Windows. This process applies to all versions of Alpine Linux, and results in a &#039;&#039;&#039;run-from-ram&#039;&#039;&#039; style installation.&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
To create a bootable Alpine Linux USB drive, you will need:&lt;br /&gt;
&lt;br /&gt;
* An Alpine Linux ISO image file ([http://alpinelinux.org/downloads Download])&lt;br /&gt;
* A partitioned and formatted USB drive&lt;br /&gt;
* [http://unetbootin.sourceforge.net/ UNetbootin]&lt;br /&gt;
&lt;br /&gt;
=== Process ===&lt;br /&gt;
&lt;br /&gt;
After the launch of UNetbootin, click the &#039;&#039;&#039;Diskimage&#039;&#039;&#039; radio button, and then the &#039;&#039;&#039;...&#039;&#039;&#039; button to select the Alpine ISO image.&lt;br /&gt;
&lt;br /&gt;
[[File:Unetbootin.png|size=400]]&lt;br /&gt;
&lt;br /&gt;
When you selected your USB device under &#039;&#039;&#039;Device&#039;&#039; and press &#039;&#039;&#039;OK&#039;&#039;&#039; to proceed. When UNetbootin is done, your USB drive is ready to use.&lt;br /&gt;
&lt;br /&gt;
== Creating a bootable Alpine Linux USB Stick from the command line ==&lt;br /&gt;
&lt;br /&gt;
This process applies to Alpine Linux 1.9.0 or later, and results in a &#039;&#039;&#039;run-from-ram&#039;&#039;&#039; style installation. &lt;br /&gt;
&lt;br /&gt;
{{Warning|This process can potentially totally or partly erase the contents of your hard drive. For this reason, it is recommended to do this procedure using VirtualBox rather than your own computer.}}&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
In order to follow this document, you will need:&lt;br /&gt;
* Alpine Linux CD-ROM ([[Downloads|Download]] a .iso file containing an Alpine release.)&lt;br /&gt;
* A USB drive (flash, external HD, card reader, etc.)&lt;br /&gt;
&lt;br /&gt;
{{:Include:Copying Alpine to Flash|USB stick}}&lt;br /&gt;
=== Slow USB Devices ===&lt;br /&gt;
Specifying the &#039;waitusb=X&#039; option at the end of the syslinux.cfg line might help with certain USB devices that take a bit longer to register. X stands for the amount of seconds kernel will wait before looking for the installation media.&lt;br /&gt;
 append initrd=/boot/grsec.gz alpine_dev=usbdisk:vfat modules=loop,cramfs,sd-mod,usb-storage quiet &#039;&#039;&#039;waitusb=3&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{:Include:Installing_Alpine_see_also}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;/div&gt;</summary>
		<author><name>7heo</name></author>
	</entry>
</feed>