LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-13-2015, 01:32 PM   #1
unassailable
Member
 
Registered: May 2012
Distribution: gentoo, debian, qubes, openELEC
Posts: 38

Rep: Reputation: 2
ISO Filesystem Information / Analysis Tool


I have an ISO which is placed on a USB device and then inserted into a system in order to update it. The issue is I need to edit a file on the ISO and recreate a new image, with the original ISO's options, so that this system will recongize and use it.

I've been searching the web for a tool/method that will tell me how the ISO was "created".
  • Does it have a boot image or catalog
  • Was a boot-load-size specified
  • Was rock ridge used
  • Was a specific volid used
  • etc...

I've looked through mkisofs for an option that would accomplish this, but haven't seen one yet.

Does anyone have some suggestions? All of my internet queries thus far have only yielded a deluge of "what is an ISO" and "how to mount and burn an ISO" results...
 
Old 05-13-2015, 01:36 PM   #2
unassailable
Member
 
Registered: May 2012
Distribution: gentoo, debian, qubes, openELEC
Posts: 38

Original Poster
Rep: Reputation: 2
Talking Solution found.

Amazing how a random thought can lead you to your answer.
Code:
qlist cdrtools
showed an 'isoinfo' binary installed. This looks like what I needed.

EDIT: The binary isodebug when given an image outputs the command used to create the image.
Code:
$ isodebug -i ISO.iso
ISO-9660 image created at Sat Jun 21 16:45:14 2014

Cmdline: '3.01a02 -r -J -o swdl.iso ISO'

Last edited by unassailable; 05-13-2015 at 01:46 PM. Reason: New information
 
Old 05-13-2015, 01:45 PM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.0, MX-18
Posts: 4,260

Rep: Reputation: Disabled
Is that a command entered in a terminal? What distribution do you use? Did you try it yet? Didn't you mount the iso with the "-o loop" option and wouldn't that allow you to edit what you want?

Last edited by JZL240I-U; 05-13-2015 at 01:47 PM.
 
Old 05-13-2015, 01:52 PM   #4
unassailable
Member
 
Registered: May 2012
Distribution: gentoo, debian, qubes, openELEC
Posts: 38

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by JZL240I-U View Post
Is that a command entered in a terminal? What distribution do you use?
Sorry, forgot about the basics.

I'm running linux-3.18.11-gentoo x86_64 from the terminal. All these binaries are installed with the 'cdrtools' package available in the main repo.

Quote:
Did you try it yet?
Yes I did and it gave me what I needed

Quote:
Didn't you mount the iso with the "-o loop" option and wouldn't that allow you to edit what you want?
I did come across this during my searching and after looking into it I think this is a misnomer. I was able to mount it using the loop option but the filesystem is readonly due to the nature of the ISO filesystem.

Last edited by unassailable; 05-13-2015 at 01:53 PM. Reason: grammar
 
Old 05-13-2015, 05:27 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,893

Rep: Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857
Quote:
I did come across this during my searching and after looking into it I think this is a misnomer. I was able to mount it using the loop option but the filesystem is readonly due to the nature of the ISO filesystem.
Loop mounting will not allow writing to the extracted file as you indicate. You would need to copy the loop mounted directories/files to another location where you have write permissions to make changes, then re-create the iso. Moot point in your case as you have found another method.
 
2 members found this post helpful.
Old 05-13-2015, 06:01 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
n/m.

Last edited by Habitual; 05-13-2015 at 06:03 PM.
 
Old 05-15-2015, 12:51 PM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.0, MX-18
Posts: 4,260

Rep: Reputation: Disabled
Quote:
Originally Posted by unassailable View Post
...I was able to mount it using the loop option but the filesystem is readonly due to the nature of the ISO filesystem.
Hmm. Though all is solved and well, I just wonder if a "mount -o loop,rw" wouldn't have done the trick, but, as already stated, it is sort of moot ...

<edit> Tried it myself. System (openSUSE) denies rw mounting because of file system type. </edit>

Last edited by JZL240I-U; 05-18-2015 at 02:19 AM.
 
  


Reply

Tags
analysis, iso


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
[SOLVED] Tool for source code analysis in Linux tarunchawla Linux - Software 3 10-10-2013 10:33 AM
free static code analysis tool BenCollver Programming 1 06-23-2012 11:52 AM
LXer: Command line tool for network analysis 2 LXer Syndicated Linux News 0 09-25-2010 02:01 PM
Network Forensic Analysis Tool for Linux? OlRoy Linux - Networking 5 04-12-2004 12:52 PM
Can anyone recommend an IPtables log analysis tool? steppin_razor Linux - Networking 2 11-13-2001 12:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:41 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