LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to extract an .iso file to an directory (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-extract-an-iso-file-to-an-directory-256784/)

vito_huang 11-19-2004 05:38 AM

how to extract an .iso file to an directory
 
how to extract an .iso file to an directory??because i don't want to burn .iso to CD.
thanks

nhs 11-19-2004 06:17 AM

The simplest way is to loopback mount the file. This will assign one of /dev/loop[0-7] to the file and mount that device - thereby giving you the .iso contents in a directory pretty much identical to if you had burnt the disc. This is done with a normal mount command except that whereas one would normally type:

mount [-t <filesystem>] <dev> <mnt point> [-o <options>]

one now types:

mount [-t <filesystem>] <file> <mnt point> -o loop[,<options>]

i.e. use the file instead of the device and add loop to the list of mount options. You will need to be root to mount/umount the directory - hope this helps.

candymanOBH3 11-29-2004 09:12 PM

This'll do it:

mount -o loop /path/to/file.iso /mnt/somewhere


All times are GMT -5. The time now is 10:38 PM.