ISO as CDROM

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
lvleph
Level 2
Level 2
Posts: 15
Joined: Sun Mar 01, 2009 11:47 am

ISO as CDROM

Post by lvleph »

I have a laptop that has no CDROM, so I have to use an ISO. Anyway, I use to be able to mount the ISO at /media/cdrom and wine would recognize it as a cdrom. Now, when I try the same thing it doesn't recognize it as a cdrom. I have added /media/cdrom as a cdrom in winecfg, but still no luck. Can someone help me out, because this is the only thing preventing me from using my program (damn DRM).
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: ISO as CDROM

Post by dimesio »

lvleph wrote:I have a laptop that has no CDROM, so I have to use an ISO. Anyway, I use to be able to mount the ISO at /media/cdrom and wine would recognize it as a cdrom. Now, when I try the same thing it doesn't recognize it as a cdrom. I have added /media/cdrom as a cdrom in winecfg, but still no luck. Can someone help me out, because this is the only thing preventing me from using my program (damn DRM).
What distro, what version of Wine, and how are you mounting the ISO?
lvleph
Level 2
Level 2
Posts: 15
Joined: Sun Mar 01, 2009 11:47 am

Post by lvleph »

Linux Mint 9 with linux kernel

Code: Select all

uname -r
2.6.32-24-generic
and wine version

Code: Select all

dpkg --get-selections | grep wine
wine						install
wine1.2						install
wine1.2-gecko					install
.

I am mounting the ISO like so

Code: Select all

sudo mount -t iso9660 -o loop /path/to/iso /media/cdrom/
James McKenzie

ISO as CDROM

Post by James McKenzie »

lvleph wrote:
Linux Mint 9 with linux kernel

Code:

uname -r
2.6.32-24-generic



and wine version

Code:

dpkg --get-selections | grep wine
wine install
wine1.2 install
wine1.2-gecko install


.

I am mounting the ISO like so

Code:
sudo mount -t iso9660 -o loop /path/to/iso /media/cdrom/

Can you read the disk at /media/cdrom and is it marked ro in
/etc/fstab? (or /etc/vfstab)

James McKenzie
lvleph
Level 2
Level 2
Posts: 15
Joined: Sun Mar 01, 2009 11:47 am

Post by lvleph »

Well, the new Ubuntu doesn't place the cdrom in fstab, but since I don't have a cdrom it wouldn't be in fstab.
lvleph
Level 2
Level 2
Posts: 15
Joined: Sun Mar 01, 2009 11:47 am

Post by lvleph »

Just checked the permission after mounting the ISO and the file system is definitely RO.
James McKenzie

ISO as CDROM

Post by James McKenzie »

lvleph wrote:
Well, the new Ubuntu doesn't place the cdrom in fstab, but since I don't have a cdrom it wouldn't be in fstab.

Let me check, but I think that mounted devices are in that file. If the
mounted iso is not appearing there, then the .iso is not mounting and
thus should not appear as ready in Wine.

James McKenzie
lvleph
Level 2
Level 2
Posts: 15
Joined: Sun Mar 01, 2009 11:47 am

Post by lvleph »

FSTAB is for mount points that mount at startup.
James McKenzie

ISO as CDROM

Post by James McKenzie »

lvleph wrote:
FSTAB is for mount points that mount at startup.

Thank you. How about the output of the mount command?

James McKenzie
lvleph
Level 2
Level 2
Posts: 15
Joined: Sun Mar 01, 2009 11:47 am

Post by lvleph »

Code: Select all

mount
/dev/sda5 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
/dev/sda6 on /home type ext4 (rw)
/dev/sda2 on /media/Media type ext4 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/erich/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=erich)
//192.168.1.2/Backup on /media/Backup type cifs (rw,mand)
/dev/loop0 on /media/cdrom type iso9660 (rw)
The very last line has the loop mount of the iso. The weird part is that if I use grep cdrom I get nothing.
James McKenzie

ISO as CDROM

Post by James McKenzie »

lvleph wrote:
Code:
mount

/dev/loop0 on /media/cdrom type iso9660 (rw)
The drive should be mounted ro, not rw. cdrom is not writable, cdrw is.

This may be causing the problems with winecfg not being able to find and
retain the drive.

James McKenzie
lvleph
Level 2
Level 2
Posts: 15
Joined: Sun Mar 01, 2009 11:47 am

Post by lvleph »

Well, I fixed that

Code: Select all

mount
/dev/sda5 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
/dev/sda6 on /home type ext4 (rw)
/dev/sda2 on /media/Media type ext4 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/erich/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=erich)
//192.168.1.2/Backup on /media/Backup type cifs (rw,mand)
/dev/loop0 on /media/cdrom type iso9660 (ro,loop=/dev/loop0)
,
but it still doesn't recognize the iso in wine.
James McKenzie

ISO as CDROM

Post by James McKenzie »

lvleph wrote:
Well, I fixed that

Code:
mount
/dev/sda5 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
/dev/sda6 on /home type ext4 (rw)
/dev/sda2 on /media/Media type ext4 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/erich/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=erich)
//192.168.1.2/Backup on /media/Backup type cifs (rw,mand)
/dev/loop0 on /media/cdrom type iso9660 (ro,loop=/dev/loop0)


,
but it still doesn't recognize the iso in wine.

What happens when you do ls -l /media/cdrom from Linux?

James McKenzie
lvleph
Level 2
Level 2
Posts: 15
Joined: Sun Mar 01, 2009 11:47 am

Post by lvleph »

Code: Select all

ls -l /media/cdrom/
total 20
dr-xr-xr-x 1 root root 14336 2007-07-05 19:19 data
dr-xr-xr-x 1 root root  2048 2007-07-05 19:19 documentation
dr-xr-xr-x 1 root root  2048 2007-07-05 19:19 languages
dr-xr-xr-x 1 root root  2048 2007-07-05 19:19 speech
I don't mean to be rude, but can we move passed mounting the ISO. The issue isn't mounting the ISO. I am definitely not a beginner Linux user. The issue is with Wine it seems. So, even though I tell wine that /media/cdrom is a cdrom it doesn't seem to register that it is. This is the problem. It has nothing to do with it being mounted or not.
lvleph
Level 2
Level 2
Posts: 15
Joined: Sun Mar 01, 2009 11:47 am

Post by lvleph »

I do want to thank you for your help though, since I did realize that there was a better way to mount ISOs based on your questions.
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

lvleph wrote:So, even though I tell wine that /media/cdrom is a cdrom it doesn't seem to register that it is. This is the problem. It has nothing to do with it being mounted or not.
Mount the iso, run winecfg, and click Autodetect on the drives tab. Post console output.
lvleph
Level 2
Level 2
Posts: 15
Joined: Sun Mar 01, 2009 11:47 am

Post by lvleph »

Nothing came up. I cleared everything I had before and hit auto detect. It detected /media/cdrom but it didn't list it as a cdrom. Instead it just had it as auto. Changing it to cdrom doesn't help detect it as a cdrom.
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

What app is this, and what DRM scheme does it use?
lvleph
Level 2
Level 2
Posts: 15
Joined: Sun Mar 01, 2009 11:47 am

Post by lvleph »

This is Rosetta Stone. I can't seem to find what DRM scheme it is actually using. However, it requires the disc and registration. I tried searching for the DRM, but my search produced a lot of crap.
James McKenzie

ISO as CDROM

Post by James McKenzie »

lvleph wrote:
I do want to thank you for your help though, since I did realize that there was a better way to mount ISOs based on your questions.
Thank you. I did not imply that you were a beginner. I've made
mistakes mounting cdroms as rw in the past. The results were 'most
interesting' when the system realized it could not write to the media.

I was asking the questions because if you cannot read the drive, then
Wine cannot either.

Since you named the program, have you visited the Applications Database
entry for the program:
http://appdb.winehq.org/objectManager.p ... n&iId=1867

I did not find any 'hints/tricks' on how to install the program. I have
to make the assumption that it was from physical media and that the
installations were successful.

James McKenzie
lvleph
Level 2
Level 2
Posts: 15
Joined: Sun Mar 01, 2009 11:47 am

Post by lvleph »

Yes, everything is installed fine. The issue comes from trying to add a language. Like I said previously, on a computer with an actual cdrom I can mount the ISO at /media/cdrom and everything works. The issue seems to stem from not having a physical CDROM at all.
James McKenzie

ISO as CDROM

Post by James McKenzie »

lvleph wrote:
Yes, everything is installed fine. The issue comes from trying to add a language. Like I said previously, on a computer with an actual cdrom I can mount the ISO at /media/cdrom and everything works. The issue seems to stem from not having a physical CDROM at all.

Hmmm. This is most interesting as mounting a .iso file should not cause
this problem. I'll have to try this and see what happens. Since I'm
using a Mac the results may be different,

James McKenzie
James McKenzie

ISO as CDROM

Post by James McKenzie »

James McKenzie wrote:
lvleph wrote:
Yes, everything is installed fine. The issue comes from trying to add
a language. Like I said previously, on a computer with an actual
cdrom I can mount the ISO at /media/cdrom and everything works. The
issue seems to stem from not having a physical CDROM at all.

Hmmm. This is most interesting as mounting a .iso file should not
cause this problem. I'll have to try this and see what happens.
Since I'm using a Mac the results may be different,

James McKenzie


Sorry for the short reply, but I hit the 'send' button way to early.

What I did was mount a .iso from CentOS and then used autodetect. It
was then listed as drive Q: I opened a command session using wine
wineconsole cmd and then did a dir, dir /x, dir /q and finally dir /a
(there is a hidden .diskinfo file on the image). All displayed
correctly. I don't want to install CentOS onto my Mac (it won't work
anyway) so I'm now at a loss as to what could be causing the problem
here. The .iso file is mounted ro however.

James McKenzie
lvleph
Level 2
Level 2
Posts: 15
Joined: Sun Mar 01, 2009 11:47 am

Post by lvleph »

My /media/cdrom is mounted at G:\. If I run wineconsole cmd and then g: then dir everything appears to be normal. My guess is that it is not actually treating it as a cdrom, rather it is treating it as a directory. If this is the case the DRM would prevent me from using it to add a language.
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

lvleph wrote: The issue seems to stem from not having a physical CDROM at all.
The issue is more likely copy protection. A mounted iso is not the same as a real cd-rom, and if the game needs to read disc sectors, it won't work. You could try cdemu.
Locked