Difference between revisions of "Use ISOs on Linux"

From Linuxintro
imported>ChrisM
imported>ThorstenStaerk
 
(One intermediate revision by one other user not shown)
Line 6: Line 6:
  
 
You can just mount the ISO using a loopback device:
 
You can just mount the ISO using a loopback device:
  mount -t loop filename.iso mountpoint  # run as root
+
  mount -o loop filename.iso ''mountpoint'' # run as root
  
 
Mountpoint should be a (empty) directory you created before, preferable in /mnt or /media but that is not required.
 
Mountpoint should be a (empty) directory you created before, preferable in /mnt or /media but that is not required.
Line 18: Line 18:
 
== Converting other CD image formats to ISO ==
 
== Converting other CD image formats to ISO ==
  
* For MDF: Install mdf2iso (available as package "mdf2iso" for Gentoo and Ubuntu) and run "mdf2iso filename.mdf".
+
* For MDF:
 +
Install mdf2iso (available as package "mdf2iso" for Gentoo and Ubuntu) and run "mdf2iso filename.mdf".

Latest revision as of 07:42, 11 October 2010

Introduction

ISOs are used for many purposes and frequently, you just want to have a look inside without actually burning the ISO. With Linux and unlike on Windows, you can simply mount the ISO without any additional utilities, since an ISO file is just the same binary data as the CD (ISO 9660) without any meta data.

Mounting an ISO

You can just mount the ISO using a loopback device:

mount -o loop filename.iso mountpoint  # run as root

Mountpoint should be a (empty) directory you created before, preferable in /mnt or /media but that is not required.

If you need to mount the same ISO often and want to get rid of the need to become root, you can create a entry into fstab, which might look like this:

/.../filename.iso  mountpoint  iso9660  loop,ro  0  0

Of course, if you like, you could also tell the system to auto-mount the ISO, so it is mounted, when booting the system or running "mount -a":

/.../filename.iso  mountpoint  iso9660  loop,ro,auto  0  0

Converting other CD image formats to ISO

  • For MDF:

Install mdf2iso (available as package "mdf2iso" for Gentoo and Ubuntu) and run "mdf2iso filename.mdf".