Map a network CD Drive

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
roygbiv
Level 1
Level 1
Posts: 5
Joined: Tue Jun 30, 2009 10:11 am

Map a network CD Drive

Post by roygbiv »

I am trying to map a network (windows shared) DVD drive via WINE.
Using Ubuntu Remix 9.04, I have mounted the drive and am able to access it via Ubuntu. However cannot map a drive letter via the Wincfg interface.

The various suggestions in a various forums have suggested mapping to the /mnt/sub-folder however there does not seem to be a sub-folder in the /mnt directory. Is there something I am missing?

Much appreciated
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Map a network CD Drive

Post by austin987 »

On Tue, Jun 30, 2009 at 10:19 AM, roygbiv<[email protected]> wrote:
I am trying to map a network (windows shared) DVD drive via WINE.
Using Ubuntu Remix 9.04, I have mounted the drive and am able to access it via Ubuntu. However cannot map a drive letter via the Wincfg interface.
Does 'autodetect' not work? What wine version?
The various suggestions in a various forums have suggested mapping to the /mnt/sub-folder however there does not seem to be a sub-folder in the /mnt directory. Is there something I am missing?
Try /media. It's probably /media/cdrom.

--
-Austin
roygbiv
Level 1
Level 1
Posts: 5
Joined: Tue Jun 30, 2009 10:11 am

Post by roygbiv »

Thanks for the prompt reply.
Does 'autodetect' not work? What wine version?
Nope, tried that one
Try /media. It's probably /media/cdrom.
There is a /cdrom folder there but it is 'empty.' The cdrom I am trying to access is not on the machine itself. Should it still appear there?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Map a network CD Drive

Post by austin987 »

On Tue, Jun 30, 2009 at 10:30 AM, roygbiv<[email protected]> wrote:
Thanks for the prompt reply.

Does 'autodetect' not work? What wine version?
Nope, tried that one

Try /media. It's probably /media/cdrom.
There is a /cdrom folder there but it is 'empty.' The cdrom I am trying to access is not on the machine itself. Should it still appear there?
Ah, misread what you said originally. Where did you mount it to? Add
that folder in winecfg as a drive.

--
-Austin
roygbiv
Level 1
Level 1
Posts: 5
Joined: Tue Jun 30, 2009 10:11 am

Post by roygbiv »

Thanks again,

That's where I am coming unstuck. Where is the folder? In the file browser I see the drive as mounted under places, but cannot figure out where to reference it. The media folder has cdrom and cdrom0 folders but these are empty. When I go into the mounted drive in places I see this files on the cd in the drive
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

Since it is a Samba share and since that samba uses fuse AND since you are on ubuntu, it's most likely under ~/.gvfs (where ~ is the home directory of whomever mounted it)

do a cat /proc/mount and search for "gvfs-fuse-daemon". That's where Samba mounted drives will probably be.

Good luck,

Jorl17
Gert van den Berg

Map a network CD Drive

Post by Gert van den Berg »

On Tue, Jun 30, 2009 at 19:24, roygbiv<[email protected]> wrote:
Thanks again,

That's where I am coming unstuck. Where is the folder? In the file browser I see the drive as mounted under places, but cannot figure out where to reference it. The media folder has cdrom and cdrom0 folders but these are empty. When I go into the mounted drive in places I see this files on the cd in the drive
In Gnome, you can use the edit button next to the directory name to
see the path.

A more universal methods, is to look for it from the 'mount' command's
output. (samba mounts are supposed to be smbfs / cifs IIRC)

If it uses the smb:// notation, you would probably need to mount it
manually before using it in Wine. (a FUSE driver that enables you to
browser the entire Winodws network within a directory exist as well)

iSCSI might be a more elegant (but a lot harder to setup) solution
(and MIGHT (with the right features) allow things like games' copy
protection and writing to the remote drive to work...) You would need
a iSCSI target on the Windows box and an initiator on the Linux box...

Some targets for Windows with free versions (that seem to support
exporting an entire drive):
http://www.rocketdivision.com/download_starwind.html
http://www.kernsafe.com/product.aspx?id ... ense+Types

Background:
http://en.wikipedia.org/wiki/ISCSI

Gert
roygbiv
Level 1
Level 1
Posts: 5
Joined: Tue Jun 30, 2009 10:11 am

Post by roygbiv »

Thks Jorl17

I think I am getting somewhere.

Now for a total newbie pls help me understand
do a cat /proc/mount and search for "gvfs-fuse-daemon".
I only install Ubuntu two days ago!
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

roygbiv wrote:Thks Jorl17

I think I am getting somewhere.

Now for a total newbie pls help me understand
do a cat /proc/mount and search for "gvfs-fuse-daemon".

I only install Ubuntu two days ago!
Well, cat is a command that, putting it simple, 'prints out something'. And, since in UNIX (and Linux) everything is a file (roughly), you can 'see' the contents of a file located in the /proc directory which is called mounts. This file (/proc/mounts) allows you to see 'what' and 'where' is stuff mounted. (as well as some other info).

FUSE is a way to have filesystems created without modifying the kernel, so Samba (the application used to access Windows Shares and Printers) uses FUSE to do its mount tasks.

And, from my experience, it mounts stuff in the FUSE directory (or is that manadatory, correct me if wrong, please), so you need to find where FUSE is mounting its stuff and the Samba shares will be there!

using cat to see the cntents of the /proc/mounts file, you can see where FUSE is, by finding its line. But since you are only looking for its line, you can 'filter' them all by using grep.

So you can open up a terminal (Applications->Accessories->Terminal, I think) and type:

Code: Select all

cat /proc/mounts | grep gvfs-fuse-daemon
Now you should have output, search for the second piece of text which is the location of the place where Samba usually mounts everything!

But really, until you've gotten used to Unix, this is all going to sound whacko.

Sorry, I took a bit longer than I expect to answer, since I decided to test that to see if it works (with a folder, not a CD-Drive). Surprise, surprise -- it does!

Good luck,

Jorl17
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

For some reason, I can't edit my post, sorry. Anyway, check what Gert van den Berg said. It might be a hell more efficient to try to use a more relaible method for using a CD-Drive far far away from the machine ;)
Gert van den Berg

Map a network CD Drive

Post by Gert van den Berg »

On Tue, Jun 30, 2009 at 21:05, jorl17<[email protected]> wrote:
For some reason, I can't edit my post, sorry. Anyway, check what Gert van den Berg said. It might be a hell more efficient to try to use a more relaible method for using a CD-Drive far far away from the machine ;)
And harder... Or at least more unknown.

roygbiv: The Ubunut formus might be able to give you a quicker / more
accurate awnser on the specific location of Samba mounts under Ubuntu.

It might also be easier to try and create a ISO CD image and to mount
that under Linux. (The command prompt version is "mount -o loop
/path/to/image.iso /mnt/mountpointname" with the mountpoint an empty
directory) You then add the mountpoint in winecfg and and set it as a
cd-rom. (cdemu is needed for more advanced funtionality, such as
playing audio cd's/ VCDs) ISO CD images can easily be created under
Windows with ImgBurn (or most CD writing programs, although outputting
to an ISO is often not obvious). Under Linux dd can be used, as well
as most CD writing programs.

imgBurn: http://www.imgburn.com/index.php?act=sc ... ts#isoread
dd image creation:
http://www.cyberciti.biz/tips/linux-cre ... image.html
(Try k3b, etc is probably less intimidating..)

jorl17: Editing was disabled, because it broke mailing-list
integration IIRC. See this thread:
http://www.winehq.org/pipermail/wine-de ... 76320.html

Gert
roygbiv
Level 1
Level 1
Posts: 5
Joined: Tue Jun 30, 2009 10:11 am

Post by roygbiv »

Thanks Gert & Jol17,
You guys have been loads of help. I have now been able to map directly to the cd drive I required.
What I was hoping to achieve is not quite done yet.
I think Gert's suggestion though does seem like the way to go and I will look at doing this .. but that's tomorrow's job :D
perryh

Map a network CD Drive

Post by perryh »

"jorl17" <[email protected]> wrote:
cat /proc/mounts | grep gvfs-fuse-daemon
It would be somewhat more efficient, and much more
in keeping with "the Unix/Linux way", to redirect
grep's input instead of piping the file through cat:

grep gvfs-fuse-daemon < /proc/mounts
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

Map a network CD Drive

Post by austin987 »

On Tue, Jun 30, 2009 at 4:47 PM, <[email protected]> wrote:
"jorl17" <[email protected]> wrote:
cat /proc/mounts | grep gvfs-fuse-daemon
It would be somewhat more efficient, and much more
in keeping with "the Unix/Linux way", to redirect
grep's input instead of piping the file through cat:

grep gvfs-fuse-daemon < /proc/mounts
If you're arguing semantics, you shouldn't use /proc/mounts, which is
more of a Linuxism.

Instead, use the mount command

mount | grep gvfs-fuse-daemon

--
-Austin
jorl17
Level 5
Level 5
Posts: 365
Joined: Mon Jul 28, 2008 6:44 pm

Post by jorl17 »

Indded, you're both right, but since he is using Ubuntu and I assume he didn't do any major core changes, that's where it probably is ;)

Thanks, though!

Jorl17
Locked