LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-16-2004, 05:07 PM   #1
mr_a_ali
Member
 
Registered: Aug 2004
Location: USA
Distribution: SuSE 9.1 (Personal)
Posts: 49

Rep: Reputation: 15
wine issue: program can't find the CD


Hello,

I am using WINE to *attempt* to run StarCraft. It installs just fine, but when I try to run the program, it reports that the CD is not in the CD drive (which it is). StarCraft plays off of the CD.

How can I fix this...is there a place where I can make it look at the CD drive? I know that the directory to it is /media/dvd/

Thanks
 
Old 08-16-2004, 05:55 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Try creating a symlink in ~/.wine/dosdevices/ called d: which points to /media/dvd -
Code:
ln -sf /media/dvd ~/.wine/dosdevices/d:
You can then refer to programs using their 'windows' name. For example, if you would go to d:\install.exe to install the program in windows, then to do the same in wine you can now type:
Code:
wine d:\\install.exe
(note the double backslash - that's because backslash on its own is an escape character used to put things like line breaks into files)

You may need to reinstall the program if you use this method, so it knows which drive to look on...or alternatively link d: and e: to /media/dvd using the same method
 
Old 08-16-2004, 06:10 PM   #3
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
also make sure you mount the drive if it's not done automajikaly
 
Old 08-16-2004, 06:22 PM   #4
mikedeatworld
Member
 
Registered: Nov 2003
Location: Farmington Michigan
Distribution: UBUNTU - Slackware - SuSE 9.1 - Knoppix - Fedora
Posts: 828

Rep: Reputation: 30
Quote:
wine d:\\install.exe

you just need to navigate to the dir where the file resides and type in the cmd

wine 'setup.exe'

check out frankscorner.org
 
Old 08-16-2004, 08:38 PM   #5
mr_a_ali
Member
 
Registered: Aug 2004
Location: USA
Distribution: SuSE 9.1 (Personal)
Posts: 49

Original Poster
Rep: Reputation: 15
Sorry to be a pain, but its not as simple as navigating to an exe file on the CD and running it in WINE. StarCraft works by running an exe file installed to your hard drive which then references to the CD...

Komakino, I tried your suggestion, here was the output:
linux:~> ln -sf /media/dvd ~/.wine/dosdevices/d:
ln: creating symbolic link `/home/aali/.wine/dosdevices/d:' to `/media/dvd': No such file or directory


I could just make the directory myself, but will it even mean anything?

Thanks.
 
Old 08-16-2004, 08:53 PM   #6
mr_a_ali
Member
 
Registered: Aug 2004
Location: USA
Distribution: SuSE 9.1 (Personal)
Posts: 49

Original Poster
Rep: Reputation: 15
I figured out the solution on my own, and Komakino's point probably helped out, so I'll document it:

I went into the file /home/USERNAME/.wine/config

and added the following lines in between all the other drives:

[Drive D]
"Type" = "cdrom"
"Path" = "/media/dvd"
"Label" = "/media/dvd"
"FS" = "win95"
"Device" = "/dev/hdc"

It was just a stab at it, but at least the program launches...lets see if it can be fasibly run! Thanks again for everyone's help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wine installation; Can't find ~/.wine/config mrmcctt Linux - Software 5 10-11-2005 06:33 PM
Wine can't find path to program folder kalahari875 Linux - Software 1 06-26-2005 04:53 PM
wine - issue wprauchholz Linux - Newbie 4 04-17-2005 06:23 PM
Just finished compiling Wine, getting "couldn't find program" error Maronflower Linux - Software 1 11-10-2003 06:50 PM
program run with wine cant find CD veritas Slackware 7 08-19-2003 10:10 AM


All times are GMT -5. The time now is 03:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration