2

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

migrated from stackoverflow.com Aug 5 '09 at 17:09

This question came from our site for professional and enthusiast programmers.

  • You need to extract an specific file? – setatakahashi Aug 5 '09 at 17:16
  • this is vague. One can not extract a filesystem from an image, a filesystem isn't data. – jiggunjer Jan 11 '16 at 8:48
12

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
  • maybe he was wondering if he could burn the ISO to a DVD using dd? – jiggunjer Jan 11 '16 at 8:50
6

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
3

How to mount an ISO image under Linux

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy