1

Are there any linux command which lets me to read Iso file byte by byte without mounting?

6
  • An ISO file is a file, you can use all manner of Unix tools such as cat to read it. You should elaborate more about your intention in order to getting better help.
    – Chen Levy
    Aug 4, 2010 at 8:25
  • What do you mean byte by byte? What are you trying to do? Aug 4, 2010 at 8:40
  • I think he is trying to extract one file from ISO and read it. Ugur, am I correct? Aug 4, 2010 at 8:43
  • I just want to read first bit of the iso. is it 1 or 0? I just need that.
    – ugur
    Aug 4, 2010 at 8:56
  • What language are you using?
    – mmmmmm
    Aug 4, 2010 at 9:07

4 Answers 4

2
dd if=file.iso bs=1 count=1|tr '\000-\177\200-\377' [0*128][1*128]
1

cat and read is OK.
You can do sth. like:
cat file.iso | while read -n 1 x ; do .. here do something with one character (like echo "$x") .. ; done
for more info use: man cat help read help while
Or you can use C man 2 read

0

An ISO is just a container file, much like a zip file. Most compression utilities (such as 7-zip for windows) can extract the files contained in the ISO to your hard drive for you.

0

To read some files from ISO, you can use isoinfo command (from genisoimage package).

For example, to list files:

isoinfo -i somefile.iso -l

To print specific file to stdout:

isoinfo -i somefile.iso -x /path/to/filename

-i filename Filename to read ISO-9660 image from

-x pathname Extract specified file to stdout

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .