[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: nrg2iso



Gabriel Parrondo wrote:
El dom, 21-12-2008 a las 15:52 +0000, steef escribió:
El sáb, 20-12-2008 a las 09:45 +0000, steef escribió:
Eduard Bloch wrote:
[...]
Try this:

mount foo.nrg /bla -oloop,offset=307200
[...]
hi eduardo,

i did:

steef@etchschijf:~$ sudo mount /home/steef/Desktop/pf2.iso /home/steef/Desktop/ISO -t iso9660 -o loop
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
the same thing happened with the original nrg_file out of which pdf2.iso was derived.

i'll look into the logs, allthough i know for sure the pdf2.iso file is corrupt. the command mounted another non-corrupt iso.file without a problem in the ISO directory.



I just found this:

I have successfully mounted several .NRG files under Linux. The key:
it appears that an .NRG file has 300KB (75x4096) = 307200 bytes
pre-pended to the ISO image.

So I was able to do this as root:

    mkdir /media/loop_cd
    mount -o norock,map=off,loop,offset=307200
imagefile.nrg /media/loop_cd

and it worked. (the norock,map-off options are optional)

One could then easily convert NRG to ISO by using dd like this:

   dd if=imagefile.nrg of=isofile.iso bs=4096 skip=75

I'm not sure if the offset is always 4096x75 bytes, but it has been in
all the .NRG files that I've tried.

TECHNICAL DETAILS:

If you do this on an .NRG file:

linuxprompt$ od -Ad -c file.nrg | more

you see output like this:

0000000 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
*
0339968 001 C D 0 0 1 001 \0
0339984

while on an ISO you see this:

0000000 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
*
0032768 001 C D 0 0 1 001 \0 W i n 3 2
0032784

Note that the line with the CD001 signature is at address 32768 on the
real .ISO file, while it is at address 339968 in the .NRG file. A
simple calculation then reveals the offset:

    339968 - 32768 = 307200.

So, if the offset of 307200 doesn't work for you on an .NRG file, just
try the "od" command above on the file to see the offset is the same.
It might be that on multisession images, or on other types of source
discs (DVD, etc), or maybe even different versions of Nero, that the
offset changes.


Taken from: https://answers.launchpad.net/ubuntu/+question/5979



I don't have any nrg image here to try it...






good morning gabriel (local time)

thank you for your exquisite explanation. this is really worth another try! i apologize on the forehand that my experiences will come on this list on a somewhat later time. i *must* close the books of our business before christmas.

regards,

steef


--
drs. steef van duin

publicist, research-journalist


Reply to: