LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2009, 11:43 AM   #1
r.johnson
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Rep: Reputation: 0
extract files from an ISO w/o mounting


I'm looking for a utility to extract files from an ISO _without_ having to mount it.

Something such as:
- the inverse of mkisofs - to unpack an iso to a directory tree
- an iso -> cpio filter to convert the iso into a cpio stream.

Is there anything available?

--rich
 
Old 07-11-2009, 11:48 AM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Welcome to LQ!
I use Ubuntu alot, and most of the time I just right-click the iso
and select "extract here", which will extract it to a folder.

other gadgets i use are gmountiso, and isomaster.
 
Old 07-11-2009, 04:05 PM   #3
r.johnson
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks, but I should add that I need a utility that can be used from a bash script w/o user interaction. I'm looking for a utility allowing me to treat an iso file as an archive rather than a device. I'm trying to get away from:

a) requiring root privileges
b) consuming scarce /dev/loop devices
c) having to manage mount points.
 
Old 07-11-2009, 05:14 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
I'm looking for a utility to extract files from an ISO _without_ having to mount it.
If a filesystem isn't mounted, I don't think you can read it. That's the whole point of mount

Perhaps if you told us more about what, exactly, you are trying to do, we could help you better.
 
Old 07-11-2009, 05:37 PM   #5
gapan
Member
 
Registered: Feb 2007
Posts: 367

Rep: Reputation: 134Reputation: 134
If you're looking for a gui tool, there's isomaster: http://www.littlesvr.ca/isomaster/
 
Old 07-11-2009, 06:15 PM   #6
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
You do know that you can mount and unmount ISOs? Once an ISO is unmounted the loop device is freed. You can also look at the fuse-iso package to give non-root users the ability to mount ISOs. If you are doing this for specific users just build a mount point within their home directory. Personally I just call it mountpoint.
 
Old 07-12-2009, 12:14 PM   #7
r.johnson
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tredegar View Post
If a filesystem isn't mounted, I don't think you can read it. That's the whole point of mount

Perhaps if you told us more about what, exactly, you are trying to do, we could help you better.
On the first point: one can always read the bytestream...even from a device; and initrd filesystems no longer require mounting to read them--it's just zcat | cpio -i ...
I'd like to use the same pattern against an ISO bytestream as I would with tar, ar, cpio, zip or any other archive format.

On the tasks I'm dealing with:

I'm writing internal support scripts that extract a single file or directory tree from an ISO file. I want to do this requiring neither root privileges, nor special system configuration--mount fails these two criteria. And as I mentioned earlier...no GUI--the scripts are running unattended as part of an automated build process.

Two specific tasks include:
1. Take the ISO constructed by a nightly build and update a yum repository with its contents. In an ideal world I'd be able to something like:
cd repository; iso2cpio? iso-file | cpio -i -u rpm_location_on_iso

2. install a single rpm to a system from a network accessible RHEL5 supplementary ISO along the lines of:
curl url-to-iso | iso2cpio? | cpio -i --to-stdout rpm-location-on-iso >local-file; rpm -Uvh local-file

I'm looking for a utility that'll do the format conversion form ISO-9660 to cpio (or equivalent)
 
Old 07-12-2009, 12:40 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
No cpio but how about doing extraction as "iso-read -i /path/to/filename.iso -e /path/inside/iso/to/filename -o /path/to/extract/filename"?
 
Old 07-12-2009, 01:30 PM   #9
r.johnson
LQ Newbie
 
Registered: Jul 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
No cpio but how about doing extraction as "iso-read -i /path/to/filename.iso -e /path/inside/iso/to/filename -o /path/to/extract/filename"?
Looks promising...thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to extract the files from a vfat .img image file, without mounting zoombee Linux - General 13 11-23-2008 06:39 AM
mounting / burning iso files Grinder2 Linux - Newbie 8 01-19-2006 04:35 PM
mounting iso files on linux minm Linux - Newbie 26 01-16-2005 11:41 PM
mount a .iso or extract a .iso behind user witout access to root easytarget Linux - Newbie 3 09-29-2002 06:01 AM
Mounting ISO files as a normal user... Thymox Linux - General 3 02-16-2002 11:32 PM


All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration