write permissions for windoze hd, mounted on linux hd are not cooperating
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
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.
write permissions for windoze hd, mounted on linux hd are not cooperating
Goal: to access, read and write to windoze hd files from linux xterm session.
environment:
2 harddrives: hda linux FD-4, hdb windoze Me
/etc/fstab mounts the Me hd on linux filesystem
from xterm, can cd to files, open them (read-only).
I knowI have a permissions oversight, but don't understand how to overwrite windoze protection (am I right? is it windoze that's stopping me?).
I can su and chmod 777 the windoze filename from an xterm and linux tells me the permissions are now rwxrwxrwx, but when I do a ls -l, permissions are unchanged rwxr-xr-x.
lets see
fdisk -l (check out what those partitions actually are)
/etc/fstab (to see what instructions are going in there)
ls -al <where the mountpoints are> (for eg, I have a win partition mounted at /mnt/winc so I would do: ls -al /mnt)
I've run into similar things where I have been unable to chmod or chown mounted volumes to anything different.
Is the drive NTFS? If so write support in Linux is still experimental, and probably won't work. This inability to write would be why you can't change your permissions, and just read the files.
alunduil: you'll see from the first post that permissions could not be moved from rwxr-xr-x. Clearly the fs type should be established. However, write support for ntfs is only unavailable in the native ntfs driver - there is always captive, as well as a variety of commercial offerings, to fill the gap. Write support is quite mature - though not complete (ntfs encrypted files are not supported).
... that I didn't know. Mostly I treasure my ignorance of windows
It seems from the first post that it is vfat - but we do not know for sure that this is a virgin (win) install. You can end up in all sorts of mess if someone else has been at it before you that we don't know about.
this is probably just an issue of umask not being set in the /etc/fstab. This has usually been the case for most people who asked this question in the past. I guess we will know for sure when wantabee posts what we asked
I can su and chmod 777 the windoze filename from an xterm and linux tells me the permissions are now rwxrwxrwx, but when I do a ls -l, permissions are unchanged rwxr-xr-x.
Yup, that's exactly what's supposed to happen. The Windows filesystem doesn't support Linux file permissions. You can't change the permissions on the individual files. All you can do is change the default permissions that are applied to the entire filesystem. To do that, add something like "umask=0000" to the options section of the partition's /etc/fstab entry. That will make all the files writable to everyone. You can read about the various options in the "mount" man page.
Hi Everyone ~
I want to thank you all up front. I really appreciate the support.
Ok, first off, windoze Me is in fact vfat.
It will take a couple more hours before I can run the cmds as requested
above. I will do that tonight, and report back if successful. If not, will list the EXACT responses.
Thanks again!!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.