Burning ISOs: Difference between revisions

From Alpine Linux
("may happen automatically")
(The article is entitled "Burning ISOs". Restrict the content to just that. Remove most of the other distro stuff and make the article includeable.)
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Draft}}
== Burning an image to a CD or DVD ==


See:
Many systems provide the <code>cdrecord</code> command (on Alpine it is provided by the {{pkg|cdrkit|arch=}} package) to write an image to a disc. For example:
<ul>
{{cmd|cdrecord -v speed{{=}}0 alpine-standard-{{AlpineLatest}}-x86.iso}}
<li>[https://wiki.archlinux.org/index.php/CD_Burning Arch Wiki on CD Burning]
<!-- Gentoo uses Jörg Schilling's "cdrtools"; Arch and Alpine use {{Pkg|cdrkit}} -->


<li>[https://wiki.archlinux.org/index.php/DVD_Burning Arch Wiki on DVD Burning]
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:
<!-- Arch uses dvd+rw-tools, rather than less-capable dvdrtools -->
Example: {{Cmd|growisofs -Z /dev/dvd{{=}}/path/to/dvdimage.iso}}


<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
{{cmd|cdrecord -v dev{{=}}/dev/sr0 speed{{=}}0 alpine-standard-{{AlpineLatest}}-x86.iso}}
</ul>
<noinclude>
== See also ==
* [https://wiki.archlinux.org/title/Optical_disc_drive#Burning Arch Wiki on CD/DVD Burning]
* [https://web.archive.org/web/20120906220957/http://en.gentoo-wiki.com/wiki/Image_Files#Convert_other_image_files_to_ISO Gentoo page on converting image files]


 
[[category: ISO]]
To do the converse operation, copying a CD to an ISO image, just do:
</noinclude>
{{Cmd|dd if{{=}}/dev/cdrom of{{=}}/path/to/cdimage.iso}}
 
 
To mount an ISO without physically burning it to a CD:
<!-- "mount -t iso9660 -o ro,loop=/dev/loop0 /path/to/cdimage.iso /mnt" doesn't work with BusyBox's mount -->
{{Cmd|modprobe loop
LOOP{{=}}`losetup -f`
losetup $LOOP /path/to/cdimage.iso
mount -t iso9660 -o ro $LOOP /mnt
...
&#35; when finished
umount /mnt
losetup -d $LOOP &#35; this step may happen automatically when you umount}}
or see [https://wiki.archlinux.org/index.php/Mounting_images_as_user#fuseiso Arch Wiki on fuseiso].
 
 
See also:
* [http://en.gentoo-wiki.com/wiki/Image_Files#Convert_other_image_files_to_ISO Gentoo page on converting image files]
 
 
[[Category:Storage]]

Latest revision as of 08:58, 12 January 2024

Burning an image to a CD or DVD

Many systems provide the cdrecord command (on Alpine it is provided by the cdrkit package) to write an image to a disc. For example:

cdrecord -v speed=0 alpine-standard-3.19.1-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=0 alpine-standard-3.19.1-x86.iso

See also