Find the answer to your Linux question:
Results 1 to 7 of 7
Hello, I am attempting to install an update for a program that I installed with wine. The problem is that I need to have the CD in the drive when ...
  1. #1
    Linux User geese's Avatar
    Join Date
    Jan 2005
    Location
    Florida / Trinidad W.I.
    Posts
    284

    Create virtual cdrom from iso

    Hello, I am attempting to install an update for a program that I installed with wine. The problem is that I need to have the CD in the drive when installing. I do not have the CD but have the iso image. I am able to mount the image but the program does not see it as an actual drive.

    When on windows I use daemon tools to accomplish this.

    Can this be done on linux?

    Thanks,
    Geese.
    Registered Linux user # 395739
    direplay.com

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    This should do it:
    Code:
    modprobe loop
    losetup /dev/loop0 <PATH_TO_ISOFILE>
    Your "CDrom" device is then /dev/loop0.
    However, not sure how to pass that to wine.

    To delete the device
    Code:
    losetup -d /dev/loop0
    You must always face the curtain with a bow.

  3. #3
    Linux User geese's Avatar
    Join Date
    Jan 2005
    Location
    Florida / Trinidad W.I.
    Posts
    284
    Thanks but it does not work. I am able to see the drive after running the commands but I cannot access it. I get "no application installed that can open files of the type block device" The wine program does not see it as well.

    Any other ideas?
    Geese

    <unrelated> Are you really in Munich? We were discussing the city in my German class today. </unrelated>
    Registered Linux user # 395739
    direplay.com

  4. #4
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,100
    Well, while wine is a tool with great ambition and goals, I usually avoid it for practical reasons.
    Windows executeables are neither made for nor tested for a wine environment.
    So even if a program seemingly works, it can still break sometimes.
    And according to Murphy´s law: It will break in a situation, where you really can´t afford it.

    If I have to use windows tools I use a VM.
    For playing games: dualboot.

    P.S.:
    Yes, I´m in munich right now, the wheather is fine and the beergardens are open
    You must always face the curtain with a bow.

  5. #5
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    You should be able to use winecfg to add your loop device location to the list of drives. There should be a Drives tab or something along those lines.

    Create a mountpoint for you iso
    Code:
    sudo mkdir /mnt/myiso
    Mount the iso
    Code:
    sudo mount -o loop image.iso /mnt/myiso
    Open winecfg, go to the drives tab, add a new drive and set the path to /mnt/myiso.

  6. #6
    Linux User geese's Avatar
    Join Date
    Jan 2005
    Location
    Florida / Trinidad W.I.
    Posts
    284

    Thumbs up

    Quote Originally Posted by reed9 View Post
    You should be able to use winecfg to add your loop device location to the list of drives. There should be a Drives tab or something along those lines.

    Create a mountpoint for you iso
    Code:
    sudo mkdir /mnt/myiso
    Mount the iso
    Code:
    sudo mount -o loop image.iso /mnt/myiso
    Open winecfg, go to the drives tab, add a new drive and set the path to /mnt/myiso.
    YES!! this worked. Thanks.
    Registered Linux user # 395739
    direplay.com

  7. #7
    Linux User geese's Avatar
    Join Date
    Jan 2005
    Location
    Florida / Trinidad W.I.
    Posts
    284
    Quote Originally Posted by Irithori View Post
    P.S.:
    Yes, I´m in munich right now, the wheather is fine and the beergardens are open
    Ah, Beergardens, I would love to go just to sample the beer.
    Registered Linux user # 395739
    direplay.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...