DIGIT-ARC read-only archive · snapshot: July 23, 2026

Can Read But cannot Write

67 posts · originally from https://geek.digit.in/community/threads/can-read-but-cannot-write.49269/

Manshahia
Manshahia Original post #1
Feb 12, 2007 at 10:36 AM
I hav installed Windows XP on NTFS and Suse 10.2.
Whenever i try to paste something in NTFS partitions(IN LINUX) it says u dont hav permissions to do that.
Then i clicked on drive's properties and checked all of these.
But that didnt solved the problem.
How can i do this??
M
Feb 12, 2007 at 10:38 AM
What are you using for writing on NTFS? You need some util like ntfs-3g or linux-ntfs(don't remember the exact name). And you need to mount the partition using that driver.
mediator
Feb 12, 2007 at 10:57 AM
Can u post ur fstab details? => "more /etc/fstab" !
Manshahia
Feb 12, 2007 at 11:03 AM
TYF said:
need to mount the partition using that driver.
Partitions get mounted automatically on startup.

Mediator said:
Can u post ur fstab details? => "more /etc/fstab" !
Sorry dude i m new to linux.
Waaaaaaaat is It??
M
Feb 12, 2007 at 11:04 AM
Manshahia said:
Partitions get mounted automatically on startup.
Oh! I didn't know about that. Thx for telling me.

Manshahia said:
Sorry dude i m new to linux.
Waaaaaaaat is It??
He's given the exact command just follow it.
Manshahia
Feb 12, 2007 at 11:37 AM
TYF} Dont get it wrong. I was just telling that oveer here they r mounted when i start the system and i can access them. Is there any other meaning of Mount?? [/quote said:
By the way searched in the DVD nd got these software....
1. ntfsprogs Preinstalled on system.
Description
The Linux-NTFS project (*linux-ntfs.sf.net/) aims to bring full support for the NTFS filesystem to the Linux operating system. The ntfsprogs package currently consists of a static library and utilities such as mkntfs, ntfscat, ntfsls, ntfsresize, and ntfsundelete (for a full list of included utilities see man 8 ntfsprogs after installation).

2. ntfsprogs-fuse - NTFS mount utility

Description

This package contains the needed user space application to mount NTFS partitions via fuse.

Are these the same u were talking abt???

And the fstab details are--
*img406.imageshack.us/img406/7720/cutfa2.jpg
mediator
Feb 12, 2007 at 11:57 AM
Replace "ro,users,gid=users,umask=00" with "exec,user,noauto 0 0" in fstab!
Then just goto terminal and do "mount /windows/C". Or u can use the "disk mounter" applet for mounting drives in gnome's panel.

Gnome panel > right click > add to panel > disk mounter! Select ur drive and go.
Manshahia
Feb 12, 2007 at 12:10 PM
ro with EXEC
users with user
gid=users with noauto 0 0
unmask = 00
????
M
Feb 12, 2007 at 12:13 PM
mediator said:
Replace "ro,users,gid=users,umask=00" with "exec,user,noauto 0 0" in fstab!
Then just goto terminal and do "mount /windows/C". Or u can use the "disk mounter" applet for mounting drives in gnome's panel.

Gnome panel > right click > add to panel > disk mounter! Select ur drive and go.
Are the drivers in the kernel able to write to NTFS partition now?
mediator
mediator #10
Feb 12, 2007 at 12:24 PM
^^I dunno! But if he can read the partitions with ntfs options like in his screenshot of fstab, then I guess he can write to the partitions too!

manshia said:
ro with EXEC
users with user
gid=users with noauto 0 0
unmask = 00
????
Yes! And "," with ","!
M
mehulved #11
Feb 12, 2007 at 12:26 PM
mediator said:
^^I dunno! But if he can read the partitions with ntfs options like in his screenshot of fstab, then I guess he can write to the partitions too!
ntfs read support has been around for long enough but write support just came in the kernel or 2.6.18, and it wasn't usable. This has been discussed in another thread.
Manshahia
Manshahia #12
Feb 12, 2007 at 12:58 PM
@ Mediator

This is the file now--
Plz tell if there is any mistake.

*img175.imageshack.us/img175/7429/loaditmp6.jpg
hellknight
Feb 12, 2007 at 1:05 PM
Manshahia said:
I hav installed Windows XP on NTFS and Suse 10.2.
Whenever i try to paste something in NTFS partitions(IN LINUX) it says u dont hav permissions to do that.
Then i clicked on drive's properties and checked all of these.
But that didnt solved the problem.
How can i do this??
You'll have to download and install NTFS kernel from the kernel site (search google.com/linux for that) and then you can write on NTFS drives.
mediator
mediator #14
Feb 12, 2007 at 1:15 PM
Manshahia said:
@ Mediator

This is the file now--
Plz tell if there is any mistake.

*img175.imageshack.us/img175/7429/loaditmp6.jpg
Remove the "umask=00,nls=utf8"!

@TYF : Didn't know that. Anyways all the modern distros they say have ntfs support!

@manshia : If things still don't go the way they r suposed to, then update the kernel first.
Manshahia
Manshahia #15
Feb 12, 2007 at 1:38 PM
@Mediator

is it Ok now??

*img360.imageshack.us/img360/5791/untitledmq5.jpg
freebird
freebird #16
Feb 12, 2007 at 2:23 PM
do you want write access in ntfs partitions...

ntfs-3g is the present available solution for write access from linux to ntfs partitions...suse linux repos may have it.get it installed and edit your /etc/fstab as:
Code:
~# gedit /etc/fstab
/dev/sdx       /media/sda1    ntfs-3g  silent,umask=0,locale=en_US.UTF-8  0  0
HOWTOInstall newest ntfs-3g driver and fuse in opensuse 10.1
*www.suseforums.net/index.php?showtopic=29813
*forum.ntfs-3g.org/viewtopic.php?p=530&sid=e56c7ad52a3d0bdbf71fe104c199154a
mediator
mediator #17
Feb 12, 2007 at 2:31 PM
Yea it is ok now! Proceed...
Manshahia
Manshahia #18
Feb 12, 2007 at 4:57 PM
Done.

Now when i typed
mount /windows/C

It told either it is BUSY or it is Already mounted.
??????????????
mediator
mediator #19
Feb 12, 2007 at 5:22 PM
Restart ur system, then try! Or simply command "umount /windows/C" as root first and then try mounting as normal user!
Manshahia
Manshahia #20
Feb 12, 2007 at 8:39 PM
After restart mounted the Drive.
When i tried to access it, it said Cudnt enter folder Windows/C.
Sud i update the kernel??

How to do that?? :D
kalpik
kalpik #21
Feb 12, 2007 at 10:17 PM
^^ Just install ntfs-3g.. Kernel will NOT give you NTFS write support.. Only NTFS-3g will provide that..
*www.ntfs-3g.org
The Outsider
Feb 12, 2007 at 10:23 PM
install fuse, fuse-libs, ntfs-3g, ntfsprogs & ntfsprogs-gnomevfs from your package manager, must be yast, search them and install, these are exact names just search.

make sure the partitions are unmounted, then issue this command as root
Code:
mount /dev/hdb1 /windows/C -t ntfs-3g -rw umask=0000

check if it gets mounted, if it gets mounted then for sure you can write too.

i guess no need to update the kernel when the thing can be done without updating.
mediator
mediator #23
Feb 12, 2007 at 10:35 PM
Then, as others r saying, do install ntfs-3g!
Manshahia
Manshahia #24
Feb 13, 2007 at 10:12 AM
Naa.
i installed both the packages, FUSE and NTFS-3g.
After Unmounting the C, i gave this command
Code:
mount /dev/hdb1 /windows/C -t ntfs-3g -rw umask=0000
It Said
Code:
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .
The changes i had made in FSTAB, sud i mke them default??
mediator
mediator #25
Feb 13, 2007 at 11:08 AM
Please change "ntfs" to "ntfs-3g" in ur fstab and then try!
M
mehulved #26
Feb 13, 2007 at 12:00 PM
Manshahia said:
Naa.
i installed both the packages, FUSE and NTFS-3g.
After Unmounting the C, i gave this command
Code:
mount /dev/hdb1 /windows/C -t ntfs-3g -rw umask=0000
There's error with the syntax. umask should be specified after -o
Manshahia
Manshahia #27
Feb 13, 2007 at 12:38 PM
^^^^^^
plz explain with correct syntax.
kalpik
kalpik #28
Feb 13, 2007 at 1:21 PM
mount /dev/hdb1 /windows/C -t ntfs-3g -rw -o umask=0000
Manshahia
Manshahia #29
Feb 14, 2007 at 4:02 PM
it gave this error
fusermount: mountpoint is not empty
fusermount: if you are sure this is safe, use the 'nonempty' mount option
FUSE mount point creation error: No such file or directory
Unmounting /dev/hdb1 ()
freebird
freebird #30
Feb 14, 2007 at 6:00 PM
umount -f /dev/hdb1
and try again mounting
eddie
eddie #31
Feb 15, 2007 at 12:21 AM
kalpik said:
mount /dev/hdb1 /windows/C -t ntfs-3g -rw -o umask=0000
rw is an option and should come after -o. the correct syntax would be
Code:
mount /dev/hdb1 /windows/C -t ntfs-3g -o rw,umask=0000

As for OP: Looks like your partition is already mounted using ntfs. You need to first unmount it and then try the new command.
Manshahia
Manshahia #32
Feb 15, 2007 at 8:01 AM
^^
naaaa......
the partitions r unmounted.
when i give command umount it says partition is not mounted.
eddie
eddie #33
Feb 15, 2007 at 2:10 PM
Then execute the command I gave you and if it gives you the same error again, then give me the output of this command
Code:
cat /etc/mtab
Manshahia
Manshahia #34
Feb 16, 2007 at 11:49 AM
eddie said:
rw is an option and should come after -o. the correct syntax would be
Code:
mount /dev/hdb1 /windows/C -t ntfs-3g -o rw,umask=0000

As for OP: Looks like your partition is already mounted using ntfs. You need to first unmount it and then try the new command.

When i gave this command

fusermount: mountpoint is not empty
fusermount: if you are sure this is safe, use the 'nonempty' mount option
FUSE mount point creation error: No such file or directory
Unmounting /dev/hdb1 ()

The outpur of mtab is

linux-zpzd:/home/manshahia # cat /etc/mtab
/dev/hdb10 / ext3 rw,acl,user_xattr 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
debugfs /sys/kernel/debug debugfs rw 0 0
udev /dev tmpfs rw 0 0
devpts /dev/pts devpts rw,mode=0620,gid=5 0 0
/dev/hdb11 /home ext3 rw,acl,user_xattr 0 0
securityfs /sys/kernel/security securityfs rw 0 0

?????

Now i cant even Read my NTFS partitions.
eddie
eddie #35
Feb 16, 2007 at 3:55 PM
Manshahia said:
Now i cant even Read my NTFS partitions.
Give output of
Code:
ls -l /windows/C
Manshahia
Manshahia #36
Feb 16, 2007 at 4:19 PM
^^^ output is

Code:
total 4
drwxr-xr-x 2 root root 4096 2007-02-13 09:59 ravi
eddie
eddie #37
Feb 17, 2007 at 12:29 AM
You have some how created a directory named "ravi" in /windows/C directory because of which fusermount does not find it empty. You need to erase that directory and then execute the mount command given to you earlier.
praka123
praka123 #38
Feb 17, 2007 at 1:00 AM
I think you can use ntfs-3g and turn off ntfs kernel modules using modconf.
Code:
~~#rmmod ntfs
and then make your /etc/fstab entry for ntfs drive as:
Code:
/dev/hdb1               /media/Windows          ntfs-3g auto,users,uid=0,gid=500,umask=000,rw   0 0
i Hope U already installed ntfs-3g.:)
freebird
freebird #39
Feb 17, 2007 at 1:48 AM
^^ that seems to be a good soltn.
Manshahia
Manshahia #40
Feb 17, 2007 at 10:03 AM
praka123 said:
Code:
~~#rmmod ntfs
It said
ERROR: Module ntfs does not exist in /proc/modules
praka123 said:
and then make your /etc/fstab entry for ntfs drive as:
Code:
/dev/sda1               /media/Windows          ntfs-3g auto,users,uid=0,gid=500,umask=000,rw   0 0
Done.
praka123 said:
i Hope U already installed ntfs-3g.:)
Yeah i hav.
Which command to give now ??
__________
eddie said:
You have some how created a directory named "ravi" in /windows/C directory because of which fusermount does not find it empty. You need to erase that directory and then execute the mount command given to you earlier.



I cant find any folder named ravi when i booted into windows.
Also how can b a folder created when i dont hav any write permission on the drive?? JUST ASKING YOU.
praka123
praka123 #41
Feb 17, 2007 at 10:15 AM
@manshahya:
in a terminal try as root user or sudo, ``mount -a`` or ``mount /dev/hdb1``
remember to have the /etc/fstab to contain /dev/hdb1 line as posted syntax instead of sda1!.
post the results.
Originally Posted by eddie
You have some how created a directory named "ravi" in /windows/C directory because of which fusermount does not find it empty. You need to erase that directory and then execute the mount command given to you earlier.

there seems to be 3 partitions u have with ntfs na?
__________
@manshahya:
in a terminal try as root user or sudo, ``mount -a`` or ``mount /dev/hdb1``
remember to have the /etc/fstab to contain /dev/hdb1 line as posted syntax instead of sda1!.
post the results.
I cant find any folder named ravi when i booted into windows.
Also how can b a folder created when i dont hav any write permission on the drive?? JUST ASKING YOU.
there seems to be 3 partitions u have with ntfs na?u'd have created in some other DIR.:confused:
Manshahia
Manshahia #42
Feb 17, 2007 at 10:17 AM
yeah i m having three NTFS partitions and i fas as i remember i havnt created any directory with that name.

The output is
fusermount: mountpoint is not empty
fusermount: if you are sure this is safe, use the 'nonempty' mount option
FUSE mount point creation error: No such file or directory
Unmounting /dev/hdb1 ()
praka123
praka123 #43
Feb 17, 2007 at 10:19 AM
did u try to mount;do u have a folder called /media/windows if not make a folder called windows in /media as #mkdir /media/windows
then try to mount the partn.
Manshahia
Manshahia #44
Feb 17, 2007 at 10:25 AM
I hav a folder named win_c in Media but it is empty.
eddie
eddie #45
Feb 17, 2007 at 2:49 PM
Manshahia said:
I cant find any folder named ravi when i booted into windows.
Also how can b a folder created when i dont hav any write permission on the drive?? JUST ASKING YOU.
You have not created a folder on the drive. You have created the folder in /windows/C folder and now you are trying to "mount" your drive on that non-empty folder which is giving you the error. Go to /windows/C through the file manager you are using on Linux and you will see the folder "ravi".
phreak0ut
phreak0ut #46
Feb 17, 2007 at 4:58 PM
Even I want write support, but when I try to install ntfs-3g from the Smart package installer, I get this output. I think the it has just dissappeared from the repos :D

linux-mr5c:/home/sunil # smart install ntfs-3g
Loading cache...
Updating cache... ######################################## [100%]

Computing transaction...

Installing packages (1):
ntfs-3g-20061115-1.guru.suse102@i686

106.7kB of package files are needed. 235.1kB will be used.

Confirm changes? (Y/n): y

Fetching packages...
-> *ftp.gwdg.de/pub/linux/.../ntfs-3g-20061115-1.guru.suse102.i686.rpm
ntfs-3g-20061115-1.guru.suse1.. [ 0%]

error: Failed to download packages:
error: *ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/10.2/RPMS/i686/ntfs-3g-20061115-1.guru.suse102.i686.rpm: Not Found
Manshahia
Manshahia #47
Feb 17, 2007 at 5:46 PM
Guys, thnx for the HELP.
Problem Solved.
Thnx again
eddie
eddie #48
Feb 17, 2007 at 6:01 PM
It would be great if you post your method of solving the problem. This will help others users, in future, with similar problem.
Manshahia
Manshahia #49
Feb 17, 2007 at 6:51 PM
Wat i did with help of u people and some googling was this......

firstly install fuse and Ntfs-3g.

Open ur fstab
for KDE
Code:
kwrite /etc/fstab

here instead of ntfs only write ntfs-3g.
save it.
Now when u will b restarting ur computer the partitions will get mounted automatically.
Also i having some problem with my C drive.
It doesnt get mounted aotumatically i hav to give a command
Code:
mount /dev/hdb1 /media/win_c -t ntfs-3g -o rw,umask=0

After giving warning and error abt fuse C drive also gets mounted.
praka123
praka123 #50
Feb 17, 2007 at 7:08 PM
are u getting a fuse error most prolly it may be a version conflict
*fuse.sourceforge.net/wiki/index.php/FAQ?PHPSESSID=5204e5f4044e73d1d42a3adfe5849179#Version_problems
Manshahia
Manshahia #51
Feb 17, 2007 at 8:14 PM
Got it solved man.....
I had to add this line into my Fstab.
Code:
mount /dev/hdb1 /media/win_c -t ntfs-3g -o rw,umask=0

I think i sud also post the contents of fstab which can help a newbie for configuring his system.
well its like this
Code:
/dev/hdb10           /                    ext3       acl,user_xattr        1 1
/dev/hdb11           /home                ext3       acl,user_xattr        1 2
/dev/hdb1            /windows/C           ntfs-3g    ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb1            /media/win_c         ntfs-3g    defaults,umask=0 0 0
/dev/hdb5            /windows/D           ntfs-3g    ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb6            /windows/E           ntfs-3g    ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb7            swap                 swap       defaults              0 0
/dev/hdb9            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
eddie
eddie #52
Feb 17, 2007 at 8:29 PM
Code:
/dev/hdb1            /windows/C           ntfs-3g    ro,users,gid=users,umask=0002,nls=utf8 0 0
You should remove that line from your fstab. Even though it will not cause you any problem because you have not deleted the directory "ravi" from /windows/C but this is not right.
Manshahia
Manshahia #53
Feb 17, 2007 at 8:37 PM
yaar eddie tell me the procedure to find that directory coz i cant find any directory there.
M
mehulved #54
Feb 17, 2007 at 8:38 PM
Why does hda1 come twice in fstab? That might be the problem.
kalpik
kalpik #55
Feb 17, 2007 at 9:55 PM
phreak0utt said:
Even I want write support, but when I try to install ntfs-3g from the Smart package installer, I get this output. I think the it has just dissappeared from the repos :D
That's probably cuz they are updating repos.. Just do smart update and try after a while ;)
eddie
eddie #56
Feb 17, 2007 at 10:29 PM
Manshahia said:
yaar eddie tell me the procedure to find that directory coz i cant find any directory there.
On a command line do like this
Code:
cd /windows/C
sudo rm -R ravi
I would still recommend removing one of the lines from fstab that contain hdb1
Manshahia
Manshahia #57
Feb 18, 2007 at 8:57 AM
Yes thnx for the help guys.
Removed the directory and the line.
All the drives now mounting properly
hailgautam
Feb 20, 2007 at 9:47 PM
Hey Guys,
I have Open Suse 10.2 but installed ntfs-3g from a RedHat i386 rpm :cool:(coz i didn't know how to install other wise - i.e from a tz files). The installation went smoothly and now I am able to see the windows drives as well:smile:, but still not able to write to them. :confused:

This is how the Fstab looks like....I had edited it as Manshahia told.

Code:
/dev/sda7            /                    ext3       acl,user_xattr        1 1
/dev/sda8            /home                ext3       acl,user_xattr        1 2
/dev/sda2            /windows/C           ntfs-3g       ro,users,gid=users,umask
=0002,nls=utf8 0 0
/dev/sda5            /windows/D           ntfs-3g       ro,users,gid=users,umask
=0002,nls=utf8 0 0
/dev/sda6            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

what do i have to do any ideas?:confused:
__________
PS:
I have the following installed:

fuse - Userspace File System- Version - 2.6.0-9
fuse_kio - Mount Any File System Supported by KDE- Ver-0.0.cvs2005.12.08.46
ntfs-3g - Linux NTFS userspace driver-0-0.9.20070118.fc5
ntfsprogs - NTFS filesystem libraries and utilities-Ver-1.13.1-3
eddie
eddie #59
Feb 20, 2007 at 11:27 PM
Code:
/dev/sda2            /windows/C           ntfs-3g       ro,users,gid=users,umask
=0002,nls=utf8 0 0
/dev/sda5            /windows/D           ntfs-3g       ro,users,gid=users,umask
=0002,nls=utf8 0 0
Change the "ro" (which means read only) in those lines to "rw" (which would mean read-write)
hailgautam
Feb 21, 2007 at 1:20 AM
Yes Yes Yes. it works :D and it can't get any easier then this :).

After I changed the "ro" to "rw" i re-booted the computer though.

I think Manshahia is doing all the dirty work with Linux and I am just enjoying. It even happen while connecting to net through mobile thread.

Thanks eddie for your help.
M
mehulved #61
Feb 21, 2007 at 1:33 AM
Now do some dirty work of finding more repos for suse and remove that FC rpm and install a suse one. I am sure it will have ntfs-3g.
M
mehulved #63
Feb 21, 2007 at 2:07 AM
Check this *linux.wordpress.com/2006/12/11/opensuse-102-list-of-recommended-repositories-for-yast/
Nice blog that is.
kalpik
kalpik #64
Feb 21, 2007 at 8:21 AM
1. Remove the ntfs-3g fedora RPM, and also remove FUSE (whatever version you have installed).
2. Download FUSE from *jaist.dl.sourceforge.net/sourceforge/fuse/fuse-2.6.3.tar.gz
3. Extract FUSE
4. Change to the FUSE directory from terminal and type
Code:
./configure --enable-kernel-module
make
sudo make install
one after the other.
5. Download ntfs-3g from *www.ntfs-3g.org/ntfs-3g-1.0.tgz
6. Extract it.
7. Change to ntfs-3g directory and type
Code:
./configure
make
sudo make install
8. Open /etc/fstab and update all entries to
Code:
/dev/whatever      /windows/whatever     ntfs-3g     [b]defaults    0   0[/b]

:)
hailgautam
Feb 21, 2007 at 9:02 AM
how do i change the directory?
M
mehulved #66
Feb 21, 2007 at 9:58 AM
*www.google.com/linux?hl=en&q=change+directory+++command&btnG=Search
kalpik
kalpik #67
Feb 21, 2007 at 11:39 AM
To list directories: ls
To change directories: cd
if you extracted the tar.gz file on your desktop, just do "cd Desktop" (D is capital) and then type "cd f" then press tab.. It should automatically give you the FUSE directory. Similarly you can type "cd nt" and press tab for the ntfs-3g directory :)