LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   executing "DOS/Windows executable" files from "/media" (https://www.linuxquestions.org/questions/linux-newbie-8/executing-dos-windows-executable-files-from-media-889800/)

Ruarscampbell 07-04-2011 04:41 AM

executing "DOS/Windows executable" files from "/media"
 
It seems all .exe files work from my /home folder, however as this didn't have enough space I installed a game(World of Warcraft) onto one of the file systems in /media folder. The game worked perfectly when I played it on Linux Mint 9 but when I upgraded to Linux mint 11 it wasn't marked as executable. When I attempt to change the permissions from properties to "allow executing file as program", it instantly deselects the box and double clicking has no effect. I've tried the "chmod +x" command from the terminal and that has no effect either. I can't move the file to my "/home" folder as it's too large. Any help please?

colucix 07-04-2011 05:09 AM

Maybe the /media filesystem was mounted with the noexec option. What are the current mount options (you can verify using the mount command without arguments)? Is there an entry in /etc/fstab for this filesystem?

i92guboj 07-04-2011 09:14 AM

I don't think you need +x for .exe files to work, since they are not loaded using the ELF loader. They are open by wine just like oowriter would open your .doc files. Maybe you just need to install wine, or otherwise, make sure that exe files are associated to wine.

DavidMcCann 07-04-2011 11:14 AM

Assuming you actually re-installed Wine after installing a new Mint, there's probably just a problem with the Wine path. Wine should have programs in
/home/yourname/.wine/drive_c/Program Files
which it will call
c:\Program Files
You need to create a drive letter for where the files live. Run the Wine configuration tool and check what you've done. I have the root partition set up as z: so /media/wine/ would be z:\media\wine. You could, of course, name your special directory w: so that you'd run something like w:\program\program.exe.

Ruarscampbell 07-05-2011 04:32 AM

Quote:

Originally Posted by colucix (Post 4404203)
Maybe the /media filesystem was mounted with the noexec option. What are the current mount options (you can verify using the mount command without arguments)? Is there an entry in /etc/fstab for this filesystem?

There is no entry in /etc/fstab for the filesystem, when I use the mount command it's already mounted according to /dev/sda5 and shows no mount options. To all the others asking about wine, thank you, but I have re-installed wine when I got Linux Mint 11 and I have downloaded the .exe file into the wine "c:" file. But thankyou for trying it was probably my fault for not explaining that.

colucix 07-05-2011 09:14 AM

Quote:

Originally Posted by Ruarscampbell (Post 4405428)
when I use the mount command it's already mounted according to /dev/sda5 and shows no mount options.

Some option should appear, e.g. /dev/sda5 on /media/disk type ext3 (rw,nosuid,nodev). At least the rw or ro option should be there. :confused:

Ruarscampbell 07-05-2011 10:37 AM

Quote:

Originally Posted by colucix (Post 4405706)
Some option should appear, e.g. /dev/sda5 on /media/disk type ext3 (rw,nosuid,nodev).

I've copied and pasted the entire terminal command and response here:

famcam@famcam-desktop ~ $ mount /media/secondpt
mount: according to mtab, /dev/sda5 is already mounted on /media/secondpt
mount failed

Have I done something wrong?

colucix 07-05-2011 10:47 AM

Your command tries to mount /media/secondpt, hence the error message. To see the already mounted files and their mount options just run the mount command alone (without options and without arguments).

Ruarscampbell 07-05-2011 10:58 AM

woops, sorry. So after running the mount command the options for /media/secondpt are these:

/dev/sda5 on /media/secondpt type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)

colucix 07-05-2011 11:07 AM

Well, it looks like there is no problem with exec permissions. Anyway, you can give it a try and remount the filesystem marking all files as executables:
Code:

mount -o remount,mode=0777,exec /media/secondpt
This advice is from the official wine FAQ, here.

jefro 07-05-2011 05:48 PM

/media is usually for removable media. Don't mount to media make a different folder.


All times are GMT -5. The time now is 06:38 PM.