You are not logged in.
Pages: 1
Hi everyone!
I'm using Arch64 and I made a chroot for running 32bit apps; following the instructions of the wiki. I got Opera to work with flash and java, wich was my first goal. But the problem comes when I try to use wine. It seems to work ok, but not when I'm executing something off a cdrom. It seems that the mounted cdrom isn't visible in the chroot. I'm using HAL to mount things from KDE. I tried adding:
mount --bind /media /opt/arch32/media
to the init script of the chroot
but all it does is make visible the folders on /media, but not the files mounted in them.
This is the output when I try to run something off a cd:
[emil@CivilizationII cdrom]$ schroot -p wine autorun
E: Failed to change to directory '/media/cdrom': No such file or directory
I've tried all the variants (ie: write the absolute path instead of just "autorun" or "autorun.exe"). But the result is always the same
Thank's in advance!!
Offline
In order for wine to see the mounted cd in the virtual chroot you have two options
a) mount the disc to /opt/arch32/media/cd
b) After mounting the disk normalling you must unbind and bind /media/cdrom again (umount /opt/arch32/media and then mount --bind /media /opt/arch32/media or /etc/rc.d/arch32 restart - the choice is yours.)
EDIT:
You can't just bind the media folder. You need to bind alse the cdrom folder inside media (in order to get the things to work...)
Last edited by Dheart (2008-09-25 18:57:32)
My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...
Offline
Hi! Thanks for the reply!
I tried both, added:
mount --bind /media/cdrom /opt/arch32/media/cdrom
in the init script, but it keeps failing with the same output.
I don't think it will be important, but for disk space reasons I had to change /opt to another folder and then symplinked it to /opt ... but I doubt that is a problem
Migth this be a bug (I've googled around with this specific output and it seems a very uncommon problem)
Offline
Just mount --bind fails when symlinks get to complex... (or it's just not designed to do that...) Just edin arch32 daemon and dchroot/schroot.conf files to reflect your chroot location. (post the error next time - it'd usefull for us to see it)
My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...
Offline
Hi! I tried doing that, but it keeps with the same error. There's no other error but:
E: Failed to change to directory '/media/cdrom': No such file or directory
I tried changing all references to /usr/local and then remounting once the cd is mounted; but it won't work. At this moment, /media/cdrom *seems* mounted on both directories (the real one and the chroot). But there's no way wine will see it. Anyway; wine shouldn't bother about the absolute path, should it? I mean, if I'm trying to run it on a directory, it shouldn't look for the same directory in the chroot ....
Anyway, in the wiki there is no reference about having to mount things two times or doing moun --bind of /media directory, and no one seems to have this problem ....
Everybody else's got cdrom working out of the box? Did you have to do anything else to get it working?
Last edited by e1986 (2008-09-26 19:24:30)
Offline
Accessing removable media from a chroot is a PITA. If you have schroot set up properly then there is no need to use the rc script from the Wiki article. To make removable media appear in the chroot when schroot is run, add
# <file system> <mount point> <type> <options> <dump> <pass>
/media /media none rw,rbind 0 0
to /etc/schroot/mount-<name_of_chroot>. (Media mounted while the chroot is running will appear in the chroot's /media directory but it will only be accessible by root.)
To be able to mount removable media from a terminal session in the chroot I install pmount, make sure that there are no removable media entries in /etc/fstab and create a symlink from /etc/mtab to /proc/mounts (all in the chroot).
However, the reason why nobody else seems to have this problem may be that, AFAIK, there is no real need to run wine in a 32 bit chroot. It will work quite happily in the 64 bit environment if the right lib32 packages are installed. I use CrossOver Linux myself but there is a bin32-wine package in AUR that may do the job.
Offline
Well, I definitely give up. Adding that to /etc/schroot/mount-<name_of_chroot> didn't do the job, and for some reason I can't chroot as a normal user nor do su username when I chroot as root... I'll go with bin32-wine for the sake of simlicity and for saving time, as I need tyo have running a couple of programs for tomorrow. Thanks for your help!
Offline
Pages: 1