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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-12-2007, 04:15 AM
|
#1
|
Member
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341
Rep:
|
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...
|
|
|
03-12-2007, 07:47 AM
|
#2
|
Senior Member
Registered: Mar 2006
Posts: 1,896
Rep:
|
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.
|
|
|
03-12-2007, 07:51 AM
|
#3
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809
|
I have now switched to keeping all shared files on ext3 and using the ext2fsd driver for Windows---works great.
|
|
|
03-13-2007, 05:19 PM
|
#4
|
Member
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341
Original Poster
Rep:
|
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.
|
|
|
03-13-2007, 10:52 PM
|
#5
|
Senior Member
Registered: Mar 2006
Posts: 1,896
Rep:
|
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.
|
|
|
03-14-2007, 03:55 PM
|
#6
|
Member
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|