Burning ISOs: Difference between revisions

From Alpine Linux
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
== Burning an image to a CD or DVD ==
== Burning an image to a CD or DVD ==


On systems that ship cdrtools (e.g., Gentoo, openSuSe, NetBSD, Slackware), you can use <code>cdrecord</code> to write an image to a disc, for example:
On systems that ship cdrtools (e.g., Gentoo, openSuSe, NetBSD, Slackware), you can use <code>cdrecord</code> to write an image to a disc. For example:


<pre>cdrecord -v speed=4 alpine-standard-3.8.0-x86.iso</pre>
<pre>cdrecord -v speed=4 alpine-standard-3.8.0-x86.iso</pre>


If there's only one CD drive on the system, it should be auto-detected. If not, find the device name using <code>lsblk</code> and specify the <code>dev</code> option, for example:
If there's only one CD drive on the system, it should be auto-detected. If not, find the device name using <code>lsblk</code> and specify the <code>dev</code> option. For example:


<pre>cdrecord -v dev=/dev/sr0 speed=4 alpine-standard-3.8.0-x86.iso</pre>
<pre>cdrecord -v dev=/dev/sr0 speed=4 alpine-standard-3.8.0-x86.iso</pre>
Line 28: Line 28:


<ul>
<ul>
<li>[https://wiki.archlinux.org/index.php/USB_Installation_Media Arch Wiki on Copying Install ISOs to a USB key], though note that <code>mkarchiso</code> generates hybrid ISOs, whereas as far as I know, <code>[[How to make a custom ISO image|alpine-iso]]</code> does not
<li>[https://wiki.archlinux.org/index.php/USB_Installation_Media Arch Wiki on Copying Install ISOs to a USB key], though note that <code>mkarchiso</code> generates hybrid ISOs, where, as far as I know, <code>[[How to make a custom ISO image|alpine-iso]]</code> does not
</ul>
</ul>


== Creating an image from a CD ==
== Creating an image from a CD ==


To do the converse operation, copying a CD to an ISO image, just do:
To do the converse operation, copying a CD to an ISO image, execute:
{{Cmd|dd if{{=}}/dev/cdrom of{{=}}/path/to/cdimage.iso}}
{{Cmd|dd if{{=}}/dev/cdrom of{{=}}/path/to/cdimage.iso}}


== Mounting an ISO image ==
== Mounting an ISO image ==
Line 48: Line 47:
&#35; when finished
&#35; when finished
umount /mnt
umount /mnt
losetup -d $LOOP &#35; this step may happen automatically when you umount}}
losetup -d $LOOP &#35; this step may happen automatically when you run umount}}
or see [https://wiki.archlinux.org/index.php/Mounting_images_as_user#fuseiso Arch Wiki on fuseiso].
or see [https://wiki.archlinux.org/index.php/Mounting_images_as_user#fuseiso Arch Wiki on fuseiso].


== See also ==
== See also ==

Revision as of 04:52, 5 July 2021

This material is work-in-progress ...

Do not follow instructions here until this notice is removed.
(Last edited by Bt129 on 5 Jul 2021.)


Burning an image to a CD or DVD

On systems that ship cdrtools (e.g., Gentoo, openSuSe, NetBSD, Slackware), you can use cdrecord to write an image to a disc. For example:

cdrecord -v speed=4 alpine-standard-3.8.0-x86.iso

If there's only one CD drive on the system, it should be auto-detected. If not, find the device name using lsblk and specify the dev option. For example:

cdrecord -v dev=/dev/sr0 speed=4 alpine-standard-3.8.0-x86.iso

Alpine, like Debian, has cdrskin, which can be invoked just like cdrecord above.


See also:

Copying an installation image to a USB key

Creating an image from a CD

To do the converse operation, copying a CD to an ISO image, execute:

dd if=/dev/cdrom of=/path/to/cdimage.iso

Mounting an ISO image

To mount an ISO without physically burning it to a CD:

modprobe loop LOOP=`losetup -f` losetup $LOOP /path/to/cdimage.iso mount -t iso9660 -o ro $LOOP /mnt ... # when finished umount /mnt losetup -d $LOOP # this step may happen automatically when you run umount

or see Arch Wiki on fuseiso.

See also