Burning ISOs: Difference between revisions
Dubiousjim (talk | contribs) (update losetup instructions) |
m (> category: ISO) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Draft}} | {{Draft}} | ||
See: | |||
== 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: | |||
<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: | |||
<pre>cdrecord -v dev=/dev/sr0 speed=4 alpine-standard-3.8.0-x86.iso</pre> | |||
Alpine, like Debian, has <code>cdrskin</code>, which can be invoked just like <code>cdrecord</code> above. | |||
See also: | |||
<ul> | <ul> | ||
<li>[https://wiki.archlinux.org/index.php/CD_Burning Arch Wiki on CD Burning] | <li>[https://wiki.archlinux.org/index.php/CD_Burning Arch Wiki on CD Burning] | ||
Line 9: | Line 23: | ||
<!-- Arch uses dvd+rw-tools, rather than less-capable dvdrtools --> | <!-- Arch uses dvd+rw-tools, rather than less-capable dvdrtools --> | ||
Example: {{Cmd|growisofs -Z /dev/dvd{{=}}/path/to/dvdimage.iso}} | Example: {{Cmd|growisofs -Z /dev/dvd{{=}}/path/to/dvdimage.iso}} | ||
</ul> | |||
== Copying an installation image to a USB key == | |||
<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, whereas 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 == | |||
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, just do: | ||
{{Cmd|dd if{{=}}/dev/cdrom of{{=}}/path/to/cdimage.iso}} | {{Cmd|dd if{{=}}/dev/cdrom of{{=}}/path/to/cdimage.iso}} | ||
== Mounting an ISO image == | |||
To mount an ISO without physically burning it to a CD: | 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 --> | <!-- "mount -t iso9660 -o ro,loop=/dev/loop0 /path/to/cdimage.iso /mnt" doesn't work with BusyBox's mount --> | ||
{{Cmd|modprobe loop | {{Cmd|modprobe loop | ||
LOOP=`losetup -f` | LOOP{{=}}`losetup -f` | ||
losetup $LOOP /path/to/cdimage.iso | losetup $LOOP /path/to/cdimage.iso | ||
mount -t iso9660 -o ro $LOOP /mnt | mount -t iso9660 -o ro $LOOP /mnt | ||
... | ... | ||
# when finished | # when finished | ||
umount /mnt | umount /mnt | ||
losetup -d $LOOP}} | losetup -d $LOOP # 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]. | or see [https://wiki.archlinux.org/index.php/Mounting_images_as_user#fuseiso Arch Wiki on fuseiso]. | ||
See also | == See also == | ||
* [http://en.gentoo-wiki.com/wiki/Image_Files#Convert_other_image_files_to_ISO Gentoo page on converting image files] | * [http://en.gentoo-wiki.com/wiki/Image_Files#Convert_other_image_files_to_ISO Gentoo page on converting image files] | ||
[[ | [[category: ISO]] |
Revision as of 13:32, 30 October 2019
This material is work-in-progress ... Do not follow instructions here until this notice is removed. |
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:
- Arch Wiki on CD Burning
- Arch Wiki on DVD Burning
Example:
growisofs -Z /dev/dvd=/path/to/dvdimage.iso
Copying an installation image to a USB key
- Arch Wiki on Copying Install ISOs to a USB key, though note that
mkarchiso
generates hybrid ISOs, whereas as far as I know,alpine-iso
does not
Creating an image from a CD
To do the converse operation, copying a CD to an ISO image, just do:
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 umount
or see Arch Wiki on fuseiso.