LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-12-2007, 04:15 AM   #1
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Rep: Reputation: 30
Windows messes shared Linux files and partition..


Hi there

I have a shared FAT32 partition on my laptop hard drive on which I keep many files and documents. I boot almost exclusively in Linux (Suse 10.2) but occasionally have to use XP to run Macros and the like on Word documents for my job.
I booted in XP this week to run some Word document macros and now all of my OOo files on that partition have become 'Read-only'! Most have mild corruption (OOo can repair them, but the date formats on spreadsheets have all changed!).

I had a similar problem a couple of months ago and on that occasion XP seems to have tried to 'repair' the partition and badly corrupted much of the data on there. The corrupted files are NOT read only when opened in XP with Word, but then are when open in OOo.

I have copied the files back to my Home file and repaired them all, but what is going on? I can't even seem to change the permissions on my files on the shared partition to be able to write to them again.

Here is my Fstab file if it helps..


Quote:
/dev/hda3 / ext3 acl,user_xattr 1 1
/dev/hda6 /home ext3 acl,user_xattr 1 2
/dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda5 /windows/D vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hda2 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

The Windows/D partition is the shared one.
thanks for listening...
 
Old 03-12-2007, 07:47 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
For clarification, when you said they had become "read only", do you mean under XP or under Linux? MS products use flags on the FAT filesystem for this that, TMK, the Linux FAT driver doesn't have access to. Under Linux, all files/directories on the partition have the same ownership/permissions, which are determined at mount time. From your fstab it looks like both user and group should always have write permission.

This may be a bit of a long shot, but as far as the corruption goes I am wondering if it could be caused by the utf8 specification. Do you need that? If not, try eliminating it. (I picked that out because it is the only thing different from what I have used with FAT32.) The only other things I can think of are either hardware problems or problems on the XP side.

Good luck.
 
Old 03-12-2007, 07:51 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I have now switched to keeping all shared files on ext3 and using the ext2fsd driver for Windows---works great.
 
Old 03-13-2007, 05:19 PM   #4
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Original Poster
Rep: Reputation: 30
Thanks for the replies, and sorry for not getting back to you earlier as I've been away from my laptop for a day or two.

Blackhole54 - I mean 'read only' under Linux. I can't modify any of the files any more. Under XP, they are fine. Windows seems to have gained permission for my files!!
I have no idea about the utf8 specification. I don't know why its there or what it does. Any ideas/info welcome! Do I need this?

pixellany - I have never heard of ext2fsd under Windows. I'll do some research and perhaps try that. It sound sa good idea.
 
Old 03-13-2007, 10:52 PM   #5
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by Adrian Baker
Blackhole54 - I mean 'read only' under Linux. I can't modify any of the files any more. Under XP, they are fine. Windows seems to have gained permission for my files!!
That is really strange. When this read-only condition exists, does ls show read-only or does {b]mount[/b] show the partition is mounted read-only? Pixellany's sugestion might turn out to be the easiest thing to resolve this.

Quote:
I have no idea about the utf8 specification. I don't know why its there or what it does. Any ideas/info welcome! Do I need this?.
I guess that means you didn't enter that line in fstab. I think it has something to do with encoding file names. As I said, you might try removing that one option and see if things clear up. I have never used it with FAT32, but then again the most recent MS system I've had installed is win95. I've never had any issues with Linux's access to FAT32.
 
Old 03-14-2007, 03:55 PM   #6
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Original Poster
Rep: Reputation: 30
Thanks for the help.
I rebooted today and now the files ARE accessible again!! Most odd.

I'll remove the utf8 bit anyway as it seems unnecessary. I'll also investigate ext2fsd as it sounds a better solution than the one I have now.

Thanks for the 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shared Linux/Windows partition WITHOUT FAT32 damiendusha Linux - Software 2 11-26-2006 04:36 PM
4.7GB files and shared linux windows partition TurboChicken Linux - Software 10 03-06-2006 09:23 PM
partition magic messes up linux partition jthomas Linux - General 1 12-10-2005 05:28 PM
Need assitance in creating a shared partition accessible by both Linux and Windows XP cajunaggie Linux - Newbie 5 09-14-2004 06:41 PM
Shared Windows and Linux Partition chrisfirestar Linux - Hardware 7 12-11-2003 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:39 AM.

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