Install multiple ISO games with Wine.

Solved
ibac001 Posted messages 262 Status Member -  
mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   -
Hello,
So here it is, I'm trying to install Call of Duty (the first one) on my PC running Ubuntu 10.10. I have two iso files for this.
The problem is, when I mount the first cd, I can't unmount it to mount the second one... What should I do?

Configuration: Windows Vista Geforce 9300GE 3Go DDR2 Intel Pentium Dual CPU 2.00Ghz

--
Forum rules!

4 answers

  1. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
     
    Ah, but it is entirely possible to mount ISOs under Linux! You simply need to ensure that the directory where you mount them is referenced by a Wine disk.

    sudo mkdir -p /mnt/iso winecfg


    Add a disk for /mnt/iso. Then mount your ISO file, for example, by following this guide:
    https://www.commentcamarche.net/faq/906-monter-une-image-iso-sous-linux

    sudo mount -o loop -t iso9660 /path/to/file1.iso /mnt/iso


    When you want to change the ISO:

    sudo umount /mnt/iso sudo mount -o loop -t iso9660 /path/to/file2.iso /mnt/iso


    ... then continue with the installation.

    You can automatically mount ISO files that you often use in dedicated mount points (for example, /mnt/iso-w3 for Warcraft 3) and reference everything in /etc/fstab.

    gksudo gedit /etc/fstab


    Then add a line like this:

    /home/mando/Games/FrozenThrone.iso /mnt/iso-w3 iso9660 user,ro,loop 0 0


    Save and exit, then:

    mount /mnt/iso-w3


    Naturally, you will need to reference /mnt/iso-w3 in winecfg for Wine to take advantage of it.

    Good luck.
    1
    1. ibac001 Posted messages 262 Status Member 29
       
      Thank you already for this precious information, but now, when I type sudo umount... it tells me the device is busy... What to do? (the game I'm installing is Call Of Duty 1)
      0
  2. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
     
    If an umount fails, it's because a process is using a file from the directory tree. For example, if a program has opened a file, it's game over. More likely, you have a shell (a terminal running bash, for example) positioned in the mount point (for example, in /mnt/iso). You need to exit this directory beforehand for the umount to work:

    cd / umount /mnt/iso


    If that doesn't suffice, you can find the offending process using the lsof command:

    lsof | grep /mnt/iso


    Good luck!
    0
    1. ibac001 Posted messages 262 Status Member 29
       
      The problem is that this so-called process that works on the CD is the setup!
      Whereas under Windows and Daemon Tools it works!
      0
    2. ibac001 Posted messages 262 Status Member 29
       
      I found something, I "killed" wineserver, it worked, but after that everything crashed, nothing responded anymore...
      0
  3. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
     
    No, you shouldn't kill wineserver or it will crash wine. At worst, you can mount the ISOs of each CD in different directories all referenced in winecfg, for example /mnt/iso-cd1, /mnt/iso-cd2, etc...

    That said, an installation of Diablo 2 that requires multiple CDs works perfectly for me. Either the installer for your game is broken, or you're doing it wrong.
    0
    1. ibac001 Posted messages 262 Status Member 29
       
      From what I've read, the game works. I've also tried this method, but no matter how many times I click OK when it asks for CD 2, even though I've mounted it in "iso2" and changed the drive in winecfg to recognize iso2 as a CD drive, it still doesn't work...
      I can't help but wonder if it's the SETUP that doesn't recognize the second CD...
      0
    2. ibac001 Posted messages 262 Status Member 29
       
      I installed PlayOnLinux, it is not listed. So I believe that even if it should be possible to install it (according to the wine website), there must be a manipulation to do!... Hoping that I don't have a problem with other multi-CD games...
      0
  4. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
     
    Suppose you mount your iso at /mnt/iso. When Diablo2 asks you to insert a new CD, you normally just have to type:

    umount /mnt/iso


    ... then mount the correct iso file in /mnt/iso. Then you click OK in the installer and so on.

    The other strategy is to create a mount point for each installation CD:

    sudo mkdir -p /mnt/iso-d2-cd1 sudo mkdir -p /mnt/iso-d2-cd2 sudo mkdir -p /mnt/iso-d2-cd3 sudo mount -o loop -t iso9660 /home/toto/cd1.iso /mnt/iso-d2-cd1 sudo mount -o loop -t iso9660 /home/toto/cd2.iso /mnt/iso-d2-cd2 sudo mount -o loop -t iso9660 /home/toto/cd3.iso /mnt/iso-d2-cd3 winecfg 


    There you add a CD drive for each of the three mount points from /mnt/iso-d2-cd1 to /mnt/iso-d2-cd3. Then you launch the Diablo2 installer...

    Good luck.
    0
    1. ibac001 Posted messages 262 Status Member 29
       
      I already tried, I believe the problem comes from the fact that the installer does not recognize the presence of another installation CD, it gets stuck... Anyway, I've given up for now, while I test with another multi-disk game, I will confirm or refute my hypothesis then.
      0
    2. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
       
      Well, listen, I followed the first strategy and it's working very well. That's all I can tell you :)
      0
    3. ibac001 Posted messages 262 Status Member 29
       
      With Call of Duty 1?
      0
    4. mamiemando Posted messages 33228 Registration date   Status Moderator Last intervention   7 944
       
      Oh no, sorry, I must have mixed up the discussion threads; I was talking about Diablo 2. As for COD1, I don't know, but if the 4 works on Ubuntu, I hope that the 1 does too!
      0
    5. ibac001 Posted messages 262 Status Member 29
       
      Absurd thing, the game itself works but not the SETUP xD
      0