LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How can I extract a file from iso archive (https://www.linuxquestions.org/questions/linux-software-2/how-can-i-extract-a-file-from-iso-archive-265649/)

kmichal2 12-12-2004 04:02 PM

How can I extract a file from iso archive
 
Is there a tool in linux which allows to view content of iso archive and extract a file?

kevinalm 12-12-2004 04:23 PM

mount ;)

If the iso file is named foo.iso and you have an empty dir named isoview:

mount foo.iso isoview -o loop

then cd into isoview and look around and cp to your heart's content.

You need loop device support in your kernel and loop devices in /dev (which you most likely have).

Pretty sure that altering anything in the mount dir (isoview in this example) will trash the iso file. You may not be able to alter it, it may be read only. But cp'ing a file out is no problem. The mount command may require you to be root. Oh, and loop support is not the same thing as the loopback (127.0.0.1) interface, that causes some confusion.

kmichal2 12-13-2004 07:15 PM

Thank you very much. I did not know it was so simple...
Michal

kevinalm 12-13-2004 08:38 PM

Yeah, kind of neat. Found out about it from the RIP (Rescue Is Possible) documentation. You can do the same with initrd files. But you have to gunzip them first, and iirc gunzip won't work unless .gz is on the end of the file name, so you rename the initrd (like initrd.gz). Gunzip it then loop mount it the same way. And you _can_ alter in the veiwing directory with those, the changes will be reflected in the initrd file when you umount. In the previous example, just umount isoveiw.

heema 12-14-2004 02:24 AM

there is also a script that let u right click on an iso and click mount , then u will find a folder at the desktop for the mounted iso
simple :)

http://kde-apps.org/content/show.php?content=11577

varunnarang 12-14-2004 03:16 AM

Hi all!!!
Is there some way I can create the 'iso' files and put the dump on my hard drive. Also how can I burn those iso images to the CD ROMs. Please help

carl0ski 12-14-2004 05:15 AM

Mount ISO
works on KDE 3.x
http://www.kde-apps.org/content/show.php?content=11577

adds manage ISO> to right click context menu

when an ISO is selected , ManageISO>Mount ISO

right click a folder Including /mnt/cdrom
Manage ISO>Create ISO image

easy as pie the script writer is my god

otoomet 12-14-2004 05:48 AM

Quote:

Is there some way I can create the 'iso' files and put the dump on my hard drive. Also how can I burn those iso images to the CD ROMs. Please help
ON the command line look for 'mkisofs' for creating iso-s and 'cdrecord' for burning them onto a cd. There are several graphical frontends, 'k3b' is perhaps the best, but you may check 'xcdroast', 'gtoaster' and the burn: filesystem on nautilus.

best,

Ott

shy 12-14-2004 05:48 AM

Quote:

Originally posted by varunnarang
Hi all!!!
Is there some way I can create the 'iso' files and put the dump on my hard drive.

If you mean "I've got a cdr, and I want to make it's .iso copy", then
Code:

dd if=/dev/cdrom of=./image.iso
Quote:

Originally posted by varunnarang

Also how can I burn those iso images to the CD ROMs.

You can do it with cdrecord


All times are GMT -5. The time now is 01:37 PM.