You are not logged in.

#1 2010-03-29 11:55:58

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Exposing external Media to a 32bit chroot

Hi,
I'm using a 32bit chroot to run wine.
My problem is, that external media such as usb-sticks and drives and also cd/dvd drives don't show up in winecfg.
When I attempt to run a program off say a cd, wine complains that it cannot find the path.

I've tried symlinking /opt/arch32/etc/mtab to /etc/mtab, and running mount from within the chroot gives the same results as it does from my 'real' system. I'm guessing this has something todo with devkit, which handles external-drives and media, but I am at a loss as to how I can make wine 'see' my drives.

Any ideas??

Last edited by hungerfish (2010-03-30 13:37:25)


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#2 2010-03-29 12:11:52

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Exposing external Media to a 32bit chroot

I don't know about wine specifically, but if you mount the device outside the chroot, you should be able to bind-mount it into the chroot.

Offline

#3 2010-03-29 13:58:17

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: Exposing external Media to a 32bit chroot

Just bind-mount /media, AFAICR.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#4 2010-03-30 13:29:13

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: Exposing external Media to a 32bit chroot

Ohhh, ok, I see...Thanks! smile

EDIT: Ok, I was too fast..its still not working...
What I did was

mount --bind /media /opt/arch32/media

When I now ls /opt/arch32/media, I get the correct folders for the mounts that should be located here, but they are empty.
Also, winefile still doesn't see all mountpoints that are in /media

I'm lost!? sad

Last edited by hungerfish (2010-03-30 13:41:16)


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#5 2010-03-30 14:40:24

seiichiro0185
Member
From: Leipzig/Germany
Registered: 2009-04-09
Posts: 226
Website

Re: Exposing external Media to a 32bit chroot

I think bind doesn't expose filesystems mounted under the directory you bind. according to the mount manpage you have to use this to include mounts inside the directory:

mount --rbind /media /opt/arch32/media

PS.: didn't try for myself, just citation from the manpage wink

Last edited by seiichiro0185 (2010-03-30 14:41:17)


My System: Dell XPS 13 | i7-7560U | 16GB RAM | 512GB SSD | FHD Screen | Arch Linux
My Workstation/Server: Supermicro X11SSZ-F | Xeon E3-1245 v6 | 64GB RAM | 1TB SSD Raid 1 + 6TB HDD ZFS Raid Z1 | Proxmox VE
My Stuff at Github: github
My Homepage: Seiichiros HP

Offline

#6 2010-03-30 16:17:36

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: Exposing external Media to a 32bit chroot

Ok, thanks for that tip.
Sadly it only partly solves my problem.
Now I get all mountpoints that are in /media also in /opt/arch32/media. Also I can traverse the subdirs.
However, this only works for harddisks/partitions, not cd/dvds.
I've tried separately binding the dvd's mountpoint, without success.

EDIT:
It seems that the 'only' way I can read the contents of cd is to mount the drive directly from within the chroot env.
For my purpose of testing/installing games via wine, this is acceptable, however a more transparent solution would be nice!

Any ideas?

Last edited by hungerfish (2010-03-30 17:31:00)


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#7 2010-04-06 01:02:51

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: Exposing external Media to a 32bit chroot

*bump*!?


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

Board footer

Powered by FluxBB