Convert UIF to ISO
The fastest way to convert an UIF image to ISO image is UIF2ISO. It is a speedy command line tool, that will save you the hassle of installing wine and MagicISO.
This is how I downloaded and installed UIF2ISO, written by Luigi Auriemma.
1. We first need to install zlib and OpenSSL with apt-get.
sudo apt-get install zlib1g zlib1g-dev libssl-dev build-essential2. Now we can download UIF2ISO with wget from a terminal, or from the author’s site here.
wget http://aluigi.altervista.org/mytoolz/uif2iso.zip3. Once you have the file downloaded, unzip it and cd into the directory.
unzip uif2iso.zip
cd src4. Finally compile the source, and create the executable.
make
sudo make install5. Now you can convert the .uif file to an .iso with the following command:
uif2iso example.uif output.isoMounting an ISO
You don't necessarily need to burn a cd in order to access the files within the ISO. You can mount it with some simple commands.
Here is how to mount the ISO from command line.
sudo modprobe loop
sudo mkdir ISO_directory
sudo mount /media/file.iso /media/ISOPoint/ -t iso9660 -o loop- 35332 reads

Many thanks, your utility has done the job.
Andy
Apparently the source code is located inside a folder titled "src". So your step that says:
"unzip uif2iso.zip
cd uif2iso"
...should read:
"unzip uif2iso.zip
cd src"
Other than that, all was well. Thanks!
Thank you Cassidy, for the correction.
Thanks for the help bro, worked like a charm.
I'm not going to nitpick your steps, as you provided the pertinent info.
I’m glad I could help, and thank you Doug, for your comment.
I have developed a thick skin, working as a help desk technician over the years. So please hit me with your feedback, as it will help the next person who reads this article.
This is the best way to convert uif to iso on my Ubuntu Linux!! Thank you!
Thanks a lot for this perfect utility.
I didn't see any type of license file included. You may want to apply a suitable license so that it can find its way into various distributions, and ultimately into other file system tools.
Much appreciated.
After some digging, the license is inside the source file(src/uif2iso.c).
/*
Copyright 2007,2008 Luigi Auriemma
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
http://www.gnu.org/licenses/gpl.txt
*/
What am I doing wrong?
Thanks!
patricio@patricio-desktop:~$ sudo apt-get install zlib1g zlib1g-dev libssl-dev build-essentialsReading package lists... Done
Building dependency tree
Reading state information... Done
zlib1g is already the newest version.
zlib1g-dev is already the newest version.
zlib1g-dev set to manually installed.
E: Couldn't find package build-essentials
patricio@patricio-desktop:~/src$ make
cc uif2iso.c -O2 -s -o uif2iso -lz -lssl -lcrypto
uif2iso.c:33:25: error: openssl/des.h: No such file or directory
uif2iso.c:126: error: expected declaration specifiers or ‘...’ before ‘DES_key_schedule’
uif2iso.c:131: error: expected ‘)’ before ‘*’ token
uif2iso.c: In function ‘main’:
uif2iso.c:159: error: ‘DES_key_schedule’ undeclared (first use in this function)
uif2iso.c:159: error: (Each undeclared identifier is reported only once
uif2iso.c:159: error: for each function it appears in.)
uif2iso.c:159: error: ‘ctx’ undeclared (first use in this function)
uif2iso.c:311: error: too many arguments to function ‘blhr_unzip’
uif2iso.c:323: error: too many arguments to function ‘blhr_unzip’
uif2iso.c:333: error: too many arguments to function ‘blhr_unzip’
uif2iso.c: At top level:
uif2iso.c:806: error: expected declaration specifiers or ‘...’ before ‘DES_key_schedule’
uif2iso.c: In function ‘blhr_unzip’:
uif2iso.c:813: error: ‘ctx’ undeclared (first use in this function)
uif2iso.c: At top level:
uif2iso.c:952: error: expected ‘)’ before ‘*’ token
make: *** [all] Error 1
This is the relevant error message:
uif2iso.c:33:25: error: openssl/des.h: No such file or directory
Now go to packages.ubuntu.com (or equivalent for your distro) and search for the package containing that file.
ok, I think I needed for Ubuntu we need to use:
build-essential without the “s”
Thanks,
Patricio
Wes, Conversion works great! For mounting I didn’t test gmountiso
but this works too:
sudo modprobe loop
sudo mkdir ISOPoint
sudo mount /media/file.iso /media/ISOPoint/ -t iso9660 -o loop
Patricio
There was a typo(build-essential) should not have an “s”.
Thanks Patricio for pointing out the typo, and providing a pure command line procedure, for mounting ISOs.
Thanks! your utility has done the job.
:-)
Thanks mate. This rocks! :)
Many thanx ;D works perfectly fine for me
Thank you very much for this. You deserve a medal.
Thanks a lot, worked like it should on DreamLinux
sudo apt-get install gmountiso does not work, it cant find a package by that name.
nvm, mounted using the other method.
Thanks for the program worked great on Kubuntu. As an aside you don't have to download the gmountiso program. iso files can be mounted already with the command:
mount -o loop example.iso /media/temp
HI ,thanks for the nice tool....
it works like a charm...
Very helpful tutorial, you saved me a lot of time struggling with Wine and Magiciso. Thank you.
thank you, thank you, thank you!
Brilliant. Took about two minutes to do. Thank you so much!
This is what I get
gawain@Cradle:~$ sudo apt-get install zliblg zliblg-dev libssl-dev build-essentialReading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package zliblg
I'm very new to linux, but I guess that the package is removed?
It's zlib1g not zliblg. number 1 not letter L
i know this cause i was trying to do the same thing...
thank you!
ok
Hello,
thanks for the prog but when I ran it I get this
UIF2ISO 0.1.5a
by Luigi Auriemma
e-mail: aluigi@autistici.org
web: aluigi.org
- open 10000_Nature_Photos_&_Wallpapers.uif
file size 0000000015ac3e46
version 4
image type 8
padding 0
sectors 192781
sectors size 2048
blhr offset 0000000015ac175d
blhr size 9961
hash 9f087d3aaa999798d4da476d1c3a0aa6
others 00000040 00000000 00020201 00000000
- set DES encryption key: FAngS)snOt32
- DES password: 95 b5 a1 99 53 29 73 6e
Error: the compressed input is wrong or incomplete
Is there any solution to this?
Thanks!
Fantastic! Thank you so much for this! I hate MagicISO so much!
maymore@maymore-desktop:~/src$ uif2iso /home/maymore/123.uif /home/maymore/123.iso
UIF2ISO 0.1.6
by Luigi Auriemma
e-mail: aluigi@autistici.org
web: aluigi.org
- open /home/maymore/123.uif
file size 000000008efe50f7
version 4
image type 8
padding 0
sectors 1302321
sectors size 2048
blhr offset 000000008efda0e5
blhr size 45074
hash 003d551aab2b5a19c0d4fa9616206464
others 00000040 00000000 01 02 02 00 00000000
- enable magiciso_is_**** encryption
- ISO output image format
- create /home/maymore/123.iso
- start unpacking:
000%
Error: the compressed LZMA input is wrong or incomplete (0)
why????????
Thank you Wesley for the howto and thank you Luigi for the program.
Though I wish people would completely avoid proprietary formats.
Interestingly the author, Luigi, claims magiciso contains GPL violations.
Patricio i think you have a problem with libssl-dev; on mandriva i had to install libopenssl-dev
Whats going wrong here??
root@XELA:~# unzip uif2iso.zip
Archive: uif2iso.zip
creating: src/
inflating: src/3way.c
inflating: src/bf_tab.h
inflating: src/blowfish.c
inflating: src/blowfish.h
inflating: src/compa.bat
inflating: src/dunno.c
inflating: src/gost.c
inflating: src/idea.c
inflating: src/loki.h
inflating: src/loki.i
inflating: src/loki91.c
inflating: src/LzmaDec.c
inflating: src/LzmaDec.h
inflating: src/magiciso_is_shit.h
inflating: src/Makefile
inflating: src/rc5.c
inflating: src/seal.c
inflating: src/Types.h
inflating: src/uif2iso.c
inflating: uif2iso.exe
inflating: uif2iso.txt
root@XELA:~# cd src
root@XELA:~/src# make
cc uif2iso.c -O2 -s -o uif2iso -lz -lssl -lcrypto LzmaDec.c
uif2iso.c:32:18: error: zlib.h: No such file or directory
uif2iso.c:33:25: error: openssl/des.h: No such file or directory
uif2iso.c:135: error: expected declaration specifiers or ‘...’ before ‘z_stream’
uif2iso.c:135: error: expected declaration specifiers or ‘...’ before ‘DES_key_schedule’
uif2iso.c:139: error: expected ‘)’ before ‘*’ token
uif2iso.c:140: error: expected ‘)’ before ‘*’ token
uif2iso.c:146: error: expected ‘)’ before ‘*’ token
uif2iso.c: In function ‘main’:
uif2iso.c:182: error: ‘DES_key_schedule’ undeclared (first use in this function)
uif2iso.c:182: error: (Each undeclared identifier is reported only once
uif2iso.c:182: error: for each function it appears in.)
uif2iso.c:182: error: ‘des_ctx’ undeclared (first use in this function)
uif2iso.c:184: error: ‘z_stream’ undeclared (first use in this function)
uif2iso.c:184: error: ‘z’ undeclared (first use in this function)
uif2iso.c:309: error: ‘DES_cblock’ undeclared (first use in this function)
uif2iso.c:309: error: expected expression before ‘)’ token
uif2iso.c:322: error: expected expression before ‘)’ token
uif2iso.c:342: error: ‘alloc_func’ undeclared (first use in this function)
uif2iso.c:342: error: expected ‘;’ before numeric constant
uif2iso.c:343: error: ‘free_func’ undeclared (first use in this function)
uif2iso.c:343: error: expected ‘;’ before numeric constant
uif2iso.c:344: error: ‘voidpf’ undeclared (first use in this function)
uif2iso.c:344: error: expected ‘;’ before numeric constant
uif2iso.c:354: warning: passing argument 3 of ‘blhr_unzip’ makes integer from pointer without a cast
uif2iso.c:354: error: too many arguments to function ‘blhr_unzip’
uif2iso.c:366: warning: passing argument 3 of ‘blhr_unzip’ makes integer from pointer without a cast
uif2iso.c:366: error: too many arguments to function ‘blhr_unzip’
uif2iso.c:376: warning: passing argument 3 of ‘blhr_unzip’ makes integer from pointer without a cast
uif2iso.c:376: error: too many arguments to function ‘blhr_unzip’
uif2iso.c: At top level:
uif2iso.c:872: error: expected declaration specifiers or ‘...’ before ‘z_stream’
uif2iso.c:872: error: expected declaration specifiers or ‘...’ before ‘DES_key_schedule’
uif2iso.c: In function ‘blhr_unzip’:
uif2iso.c:881: error: ‘des_ctx’ undeclared (first use in this function)
uif2iso.c:885: error: ‘z’ undeclared (first use in this function)
uif2iso.c: At top level:
uif2iso.c:1001: error: expected ‘)’ before ‘*’ token
uif2iso.c:1038: error: expected ‘)’ before ‘*’ token
uif2iso.c:1122: error: expected ‘)’ before ‘*’ token
make: *** [all] Error 1
root@XELA:~/src# make install
install -m 755 -d /usr/local/bin
install -m 755 uif2iso /usr/local/bin/uif2iso
install: cannot stat `uif2iso': No such file or directory
make: *** [install] Error 1
root@XELA:~/src# uif2iso
bash: uif2iso: command not found
install zlib and openssl ( devel packages) and try compiling again.
You cannot do make install if make failed.
Make sure that you have NO errors and the uif2iso program is created in the src directory.
Bogdan
Thanks, works like a charm!!!
Error: wrong bbis signature <00000000>
Press RETURN to quit
I used the .UIF file and try to convert..
Hi,
if you dont feel like compiling, when unzipping the uif2iso.zip file, an uif2iso.exe is generated. If you have wine installed, copy the uif2iso.exe to the same folder as the uif file and type
wine uif2iso.exe yourfile.uif yournewfile
and a yournewfile.iso will hopefully be generated!
@alex
Make sure you install openssl-dev package.
@Blogger
Thank you!!! works perfectly. Ubuntu 8.04 - Hardy Heron
Thanks a lot ....
install zlib and openssl ( devel packages) and try compiling again.
You cannot do make install if make failed.
Make suere that you have NO errors and the uif2iso program is created in the src directory
Bogdan
Worked like a charm. Thanks for the simple HOW TO
superb!!!!its workn like a chrm...u re amzn man...i hav tried to unzip ths sht uif in windows and nothng wrkd there..ths thng rockzz...expctng more frm u...
Thnx man,
works like a charm :D
worked perfectly... thanks for makin it so ez
Hi,
I am stuck on this command:
make
sudo make install
I do have to fill in something, the source, the uif file name??? I cant find the solution :-(
I hope somebody likes newbies and fill in the gaps :-)
alex
Anonymous
What error message does it give you when you execute the
makesudo make install
Also what Linux flavour do you have installed, Ubuntu 8.10, Slackware, Redhat?
Wes
Thank you!!!!!!!!!!!!!!!
MANY Thanx!
You have freed us from the UIF scam!
I AM aloses and LINUX rules!
P.S. minor error did not prevent install.
uif2iso.c: In function ‘nrg_truncate’:
uif2iso.c:933: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result
Lol nice.
In the command prompt, Luigi (creator of the converter) says "enable magiciso_is_shit encryption"
loved that one :)
thank you. i'm new to linux and following your instructions was a breeze.
Hi! Thank you for this tip. I got through all of it without a hitch on Ubuntu 8.10, until I mounted the ISO and found that only the first third of the files were there (out of a 2.5 GB uif, I can only see the first 800 MB). Any suggestions? Thanks!
I'm wondering how to disable encryption, as requested. Any ideas on what might be the problem?
***********
UIF2ISO 0.1.7b
by Luigi Auriemma
e-mail: aluigi@autistici.org
web: aluigi.org
- open rld-aoe-cd1.uif
file size 000000002434fcae
version 1
image type 8
padding 0
sectors 307364
sectors size 2048
blhr offset 000000002434c179
blhr size 15157
hash 4b787d5f999f18bae66e3184bbdd3181
others 00000040 00000000 00 00 00 00 00000000
- disable any encryption
Error: the compressed LZMA input is wrong or incomplete (0)
To have this program in your database, I suggest to use checkinstall:
$ unzip uif2iso.zip
$ cd src
$ make
$ sudo checkinstall -D --install=no
then you can use whatever program you like to install it
example:
$ sudo dpkg -i
To uninstall it you can use a Synaptic package manager.
thx dude..
Excellent!
- enable magiciso_is_shit encryption
Post new comment