Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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 at 8:48

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
share|improve this answer
    
maybe he was wondering if he could burn the ISO to a DVD using dd? – jiggunjer Jan 11 at 8:50

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
share|improve this answer

You must log in to answer this question.