All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't write VFAT filesystem
@ 2003-11-04 12:33 Amin
  2003-11-04 17:16 ` Ray Olszewski
  0 siblings, 1 reply; 5+ messages in thread
From: Amin @ 2003-11-04 12:33 UTC (permalink / raw)
  To: linux-newbie

[-- Attachment #1: Type: text/plain, Size: 471 bytes --]

Hi,

I've set up my /etc/fstab file as usual, so that I can 
access my Windows C: and D: drives, as shown in the attachment.

I can mount/unmount both these drives and read them.  I can 
also write to the /mnt/c filesystem.  But for some reason I 
can't write to the /mnt/d filesystem.  Specifically:

$ whoami
yawar
$ pwd
/mnt/d/My Documents
$ touch file
touch: creating `file': Permission denied
$


Can some kind soul tell me what I'm doing wrong?

Thanks,
Yawar Amin

[-- Attachment #2: fstab --]
[-- Type: text/plain, Size: 723 bytes --]

LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda4               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,user,unhide,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0
/dev/hda1		/mnt/c			vfat	noauto,owner,user 0 0
/dev/hda5		/mnt/d			vfat	noauto,owner,user 0 0

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Can't write VFAT filesystem
@ 2003-11-04 16:36 Dennis Schridde
  0 siblings, 0 replies; 5+ messages in thread
From: Dennis Schridde @ 2003-11-04 16:36 UTC (permalink / raw)
  To: linux-newbie

> I've set up my /etc/fstab file as usual, so that I can
> access my Windows C: and D: drives, as shown in the attachment.
>
> I can mount/unmount both these drives and read them.  I can
> also write to the /mnt/c filesystem.  But for some reason I
> can't write to the /mnt/d filesystem.  Specifically:

Perhaps your D: - drive is NTFS, not VFAT?
I think the Kernelmodule for writing on NTFS is "dangerous" at the moment, so
not installed by the most distributions...
(if you have installed Windows XP, this is the standard (like on my own
system))

HTH,
Dennis Schridde

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: Can't write VFAT filesystem
@ 2003-11-05  0:54 james niland
  0 siblings, 0 replies; 5+ messages in thread
From: james niland @ 2003-11-05  0:54 UTC (permalink / raw)
  To: linux-newbie

Yawar wrote :

I've set up my /etc/fstab file as usual, so that I can 
access my Windows C: and D: drives, as shown in the attachment.

I can mount/unmount both these drives and read them.  I can 
also write to the /mnt/c filesystem.  But for some reason I 
can't write to the /mnt/d filesystem.  Specifically:

$ whoami
yawar
$ pwd
/mnt/d/My Documents
$ touch file
touch: creating `file': Permission denied
$

Can some kind soul tell me what I'm doing wrong?

Thanks,
Yawar Amin
******************

When you mount a fat partition under linux you mount a file
system that doesn't have inbuilt support for the permissions for
each file that eg ext2 supports.
Because of  that you can give extra options when mounting fat
partitions with extra options.
Those options are shown in the man mount pages under the vfat
options section.

The relevant bit is this :

  uid=value and gid=value
              Set the owner and group of all files. (Default:
the
              uid and gid of the current process.)

       umask=value
              Set the umask (the bitmask of the permissions 
that
              are  not  present). The default is the umask of
the
              current process.  The value is given in octal.

So when you mount a fat file system ALL files will have the same
owner,group and permissions !
If you don't want to use the permissions carried over from your
current user/process you'd use umask=value, eg umask=777 would
give everyone full read/write access.

So a changed entry in your fstab might look like this
/dev/hda5		/mnt/d			vfat	noauto,users,umask=777 0 0
if you want everyone to be able to mount it and have full access
to it.

cheers
James

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-11-05 12:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-04 12:33 Can't write VFAT filesystem Amin
2003-11-04 17:16 ` Ray Olszewski
2003-11-05 12:20   ` Amin
2003-11-04 16:36 Dennis Schridde
2003-11-05  0:54 james niland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.