Re: Can't write VFAT filesystem

Ray Olszewski
2003-11-04T17:16:49Z

At 06:33 PM 11/4/2003 +0600, Amin wrote:
>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
>$

Well ... what does "ls -l /mnt/d/My\ Documents" tell you about ownership of
and permissions for that directory? Same questions for "ls -l /mnt/d".
Checking this info is the obvious place to start ... so basic, really, that
I wouldn't check anything else until I had verified that the values
reported here were sensible.

Am I correct is assuming that you (that is, userid yawar) own the partition
/mnt/d ? If so, and you mount the filesystem from userid yawar, it should
give you (yawar) write access. But since the fstab entries have both
"owner" -AND- "user" attributes set, it is unclear on what basis you
(yawar) are mounting the partition.

It is quite easy to get a detail wrong when working with fat and vfat, so
you should double-check all the basics.

>Can some kind soul tell me what I'm doing wrong?
>
>Thanks,
>Yawar Amin
>
>
>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