Linux - Newbie This 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.
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.
|
 |
|
08-15-2003, 08:51 AM
|
#1
|
Member
Registered: Mar 2003
Posts: 35
Rep:
|
Mounting NTFS read-write
Can you mount a NTFS read-write?
I changed the fstab from ro to rw, but doesn't seem to make any difference. Do I have to reboot?
TIA,
Fred
|
|
|
08-15-2003, 08:59 AM
|
#2
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
Danger Will Robinson, Danger
 You are taking a big risk ...
NTFS support is Read-Only. 
Do NOT write to NTFS from Linux. 
It may corrupt your NTFS filesystem. 
|
|
|
08-15-2003, 09:02 AM
|
#3
|
Senior Member
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249
Rep: 
|
Check out this:
http://linux-ntfs.sourceforge.net/info/ntfs.html
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.
|
|
|
08-15-2003, 09:29 AM
|
#4
|
Member
Registered: Jun 2001
Location: Houston, TX, USA
Distribution: Debian
Posts: 569
Rep:
|
Re: Danger Will Robinson, Danger
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.
But yeah, in short, don't mount NTFS r/w.
|
|
|
08-15-2003, 10:16 AM
|
#5
|
Member
Registered: Mar 2003
Posts: 35
Original Poster
Rep:
|
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!
|
|
|
08-15-2003, 10:45 AM
|
#6
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
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.
|
|
|
08-15-2003, 10:59 AM
|
#7
|
Member
Registered: Jul 2003
Location: Salt Lake City, UT and Spokane, WA
Distribution: Mandrake 10.0, Gentoo, FreeSBIE 1.0
Posts: 345
Rep:
|
I believe changing the umask might do the trick for you. Try setting it to 027 by typing "umask 027" at the console.
|
|
|
08-15-2003, 11:03 AM
|
#8
|
Member
Registered: Mar 2003
Posts: 35
Original Poster
Rep:
|
so in the fstab, would that be umask= 0 2 7 ?
|
|
|
08-15-2003, 11:06 AM
|
#9
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
No spaces though:
umask=027
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).
COol
|
|
|
08-15-2003, 11:12 AM
|
#10
|
Member
Registered: Jul 2003
Location: Salt Lake City, UT and Spokane, WA
Distribution: Mandrake 10.0, Gentoo, FreeSBIE 1.0
Posts: 345
Rep:
|
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?
|
|
|
08-15-2003, 11:16 AM
|
#11
|
Member
Registered: Mar 2003
Posts: 35
Original Poster
Rep:
|
Well, I changed it in the fstab to:
/dev/hdb1 /mnt/windows ntfs iocharset=iso8859-1,ro,umask=027
but the file is still read-only when I copy it to my home directory, do I need to do something to make the new fstab active?
|
|
|
08-15-2003, 11:18 AM
|
#12
|
Member
Registered: Jul 2003
Location: Salt Lake City, UT and Spokane, WA
Distribution: Mandrake 10.0, Gentoo, FreeSBIE 1.0
Posts: 345
Rep:
|
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? 
|
|
|
08-15-2003, 11:26 AM
|
#13
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Nah, just ask
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  ).
Cool
|
|
|
08-15-2003, 11:31 AM
|
#14
|
Member
Registered: Mar 2003
Posts: 35
Original Poster
Rep:
|
OK, now I get "permission denied" when trying to move to /mnt/windows as a regular user. it has:
dr-xr-x--- 1 root root 12288 Aug 13 18:01 windows/
any ideas?
|
|
|
08-15-2003, 11:33 AM
|
#15
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Ah yeah, shoulda caught that, my bad.
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).
Cool
|
|
|
All times are GMT -5. The time now is 05:35 PM.
|
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
|
|