Linux DD Command: How to extract files from an ISO image?

14,330

Solution 1

If you already have the ISO filesystem in a file on your hard drive (downloaded from the Internet or copied, wholesale, from a CD or DVD), you'll need to mount the file in "loopback" mode. ("loopback" means the source of the filesystem is in fact another file, not a physical device.) As root, something like this would work:

# mkdir /tmp/fedora
# mount /path/to/image.iso /tmp/fedora -o ro,loop -t iso9660

Then you can browse /tmp/fedora using your favorite tools.

You can use dd to create an iso file from a CD or DVD:

# dd if=/dev/cdrom of=image.iso

Solution 2

I believe dd can't do that, it just enables raw access to the ISO file itself.

I think you should use the mount command:

mount -o loop file.iso /mnt

Solution 3

How to mount an ISO image under Linux

Share:
14,330

Related videos on Youtube

studiohack
Author by

studiohack

Updated on September 17, 2022

Comments

  • studiohack
    studiohack over 1 year

    I need to extract the OS filesystem from Fedora's ISO image (downloadable from their site) using dd command?

    • setatakahashi
      setatakahashi over 14 years
      You need to extract an specific file?
    • jiggunjer
      jiggunjer over 8 years
      this is vague. One can not extract a filesystem from an image, a filesystem isn't data.
  • jiggunjer
    jiggunjer over 8 years
    maybe he was wondering if he could burn the ISO to a DVD using dd?