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.
You have to enable write support in the kernel I think. But it is listed as DANGEROUS when you run menuconfig for kernel configuration. I guess write support still doesn't work well. I haven't tried it myself. I have a Fat32 partition for sharing files between windows and linux.
Originally posted by Mathieu You are taking a big risk ...
NTFS support is Read-Only.
Do NOT write to NTFS from Linux.
It may corrupt your NTFS filesystem.
In fact, I believe that you actually definitely WILL corrupt the filesystem if you do write to it. I remember reading somewhere that the NTFS write capability always (intentionally) corrupts the filesystem, but it tries to do so in a way that's easy to repair by the NTFS repair utility.
OK, sounds like it would not be a good idea then.
The reason I was wanting to was because everything that I copy from the windows side is "read-only" and I have to do a chmod on the files each time. Is there an automatic way to do this?
Thanks!
If you are copying a directory, you can change the permissions of the directory and all of the files and sub-directories in it with the following syntax:
Code:
chmod -R 664 myDirectory
Or
you can always create a script which does a cp and then a chmod.
I don't know whether this'll stick across the filesystems when copied though. And the 0 in that umask will not enable the write bit even though it'll essentially be creating a chmod of 7 (because of the above mentioned kernel compile requirement).
Yeah, I didn't mean that it would enable write access to the NTFS volume, I meant it would make it so he doesn't have to change permissions when he copies files from the NTFS volume over to his Linux partition(s). I've never really used umask, was I correct about it?
Ummm you may need to reboot. I am sure there is a command to do what you are asking, but I don't know what it is, I only know a reboot would do it
And yes, that normally is the Windows way of doing things, but when you don't know the command to reinitialize something, why not just let the system do it for you?
mount -a -o remount
OR
umount /mnt/windoze
mount /mnt/windoze
To issue the remount command in 2 commands rather than one.
And I don't know if it'll work either, but according to the umask, that is correct, but copying FROM windoze TO linux is a ball park I'm not all that familiar with.
OT:
SLC and WA eh? I'm in WA, and moving back to SLC I was originally from there. What part you from? Me, Glendale originally, moved to West Valley, went to Kennedy Junior High and Hunter High, graduated from Granite. Feel free to email me so we don't clog this guys thread (sorry for the temporary heist ).
It has been established (yet for unknown reasons) that you need a umask=000 for NTFS to work for simple read-only for users. The script idea sounds like the best solution at this point. That or an alias (alias might be better actually).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.