LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-11-2008, 01:18 PM   #1
Rexx Magnus
LQ Newbie
 
Registered: Aug 2008
Posts: 10

Rep: Reputation: 0
Using wine with fat32 shared drives (mounting/write problems - not persistent)


Ok, I dual-boot my system with windows XP (for work purposes) and decided that if I've got games that I like to run in windows, I might as well be able to run them on Linux too. I put them on a shared fat32 partition and tried to mount it.
Initially it didn't work, so I fiddled around with the fstab and finally came up with an entry that enables me to write to the disk and keeps the changes (I had problems with being either unable to write to it, or writing to it and finding the files gone when windows booted).
This setup seems to keep the files, but Wine can't write to the drive when trying to save games (I don't know if it can install stuff either at this point, as I was only able to by trial and error - but again it still wasn't able to save games after installing).

Fstab:
Code:
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/sda2       /               ext3    errors=remount-ro 0       1
/dev/sda6       /home           ext3    defaults        0       2
/dev/sda5       none            swap    sw              0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
/home/testing.iso /mnt/iso		iso9660	user,loop	0	0
/dev/sda7	/media/share 	vfat	rw,auto,exec,users,uid=1000,gid=100,umask=000	0	0
Permissions on /media/share:
(example output from ls -all)
drwxrwxrwx 2 root users 4096 <date> share

Now wine seems able to copy files using winefile and they show up when I do so. I'll boot into windows now and see if the file shows up there too - I've found that oftentimes things appear to have changed but not been written to the drive.

After rebooting, it appears that the files are no longer visible to windows (so the drive hasn't been changed) but going back into Linux the files I've copied there are now visible again. This feels like they're being put in the mount point's structure and stored there, but not being written to the drive (which can account for the inability to save games).

I just realized that I think it's also being mounted elsewhere (other than from the fstab entry) since watching the output during boot, it shows something trying to mount a fat32 drive and mentioning utf8 not being recommended.

edit: I just created the share folder under /home/username/ just to check that it was the folder permissions - they're all fine, and it's still not working so I'm assuming it's definately the entry in the fstab that is mucking things up.

Last edited by Rexx Magnus; 10-11-2008 at 01:29 PM.
 
Old 10-12-2008, 09:19 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,861
Blog Entries: 33

Rep: Reputation: 142Reputation: 142
Hi, try changing the permissions to user instead of root. for the fat32 partition.

My fat32 line in fstab looks quite simple...
# Entry for /dev/sdb8 :
UUID=4807-901A /mnt/win_d vfat umask=0,iocharset=utf8 0 0

have you checked winehq to see if there are any tips there...

[Wine]Configuring Wine to use on a separate partition
http://www.winehq.org/pipermail/wine...ay/017930.html

see how you go..

regards, Glenn
 
Old 10-13-2008, 04:24 AM   #3
Rexx Magnus
LQ Newbie
 
Registered: Aug 2008
Posts: 10

Original Poster
Rep: Reputation: 0
I tried using your fstab parameters, but that didn't seem to make any difference either.
I've tried changing the mount point's ownership to the username and users group, but when I check the permissions in the kde file manager, it's still showing as root and users - most odd.

I can copy files onto the drive, but they're still not showing under windows (even though they may reappear in linux) and wine still can't save games.
 
Old 10-13-2008, 04:31 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,861
Blog Entries: 33

Rep: Reputation: 142Reputation: 142
Hi, can you access the drive via ~/.wine/dosdrives/ etc.

I used the scan button and my counterstrike drive came up as n:

But I have my own problems, some sound and version conflicts, I think, alsa is not listed.

But cstrike runs, a bit slower than windows, but I's also sorting out driver-module issues with my graphics card and motherboard.

I can only suggest having a closer search at winehq, and the net.
 
Old 10-13-2008, 07:37 AM   #5
Rexx Magnus
LQ Newbie
 
Registered: Aug 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GlennsPref View Post
Hi, can you access the drive via ~/.wine/dosdrives/ etc.

I used the scan button and my counterstrike drive came up as n:

But I have my own problems, some sound and version conflicts, I think, alsa is not listed.

But cstrike runs, a bit slower than windows, but I's also sorting out driver-module issues with my graphics card and motherboard.

I can only suggest having a closer search at winehq, and the net.
No, I haven't tried looking in that path yet, but will give it a go.

Edit:
I found that the files are indeed showing up under windows, so it must be a permissions issue now. I hadn't rebooted windows and instead had resumed from a hibernate state. Evidently windows doesn't reload FAT data (as it wouldn't, I don't think it would expect the filesystem to have been changed, of course!) and wasn't showing the new files, Doh!

Last edited by Rexx Magnus; 10-13-2008 at 10:43 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using wine with fat32 shared drives (mounting/write problems) Rexx Magnus Linux - Newbie 0 10-12-2008 01:44 PM
Mounting fat32 drives with read/write access in Fedora a1ex_007 Red Hat 3 03-23-2005 12:38 PM
Cannot write to FAT32 drives properly tharsan Linux - Hardware 2 02-22-2005 08:46 PM
FAT32 shared drive lacks user write access abijah Linux - General 2 06-28-2004 06:28 PM
mounting FAT32 drives bbenz3 Linux - General 6 03-05-2002 07:37 PM


All times are GMT -5. The time now is 12:28 PM.

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
Open Source Consulting | Domain Registration