Can't write VFAT filesystem
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
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
Quoted 6 lines · Amin
Hi,
I've set up my
/etc/fstabfile 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/cfilesystem. But for some reason I can't write to the/mnt/dfilesystem. Specifically:
Quoted 7 lines
$ 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.
Quoted 6 lines
Can some kind soul tell me what I'm doing wrong?
Thanks,
Yawar Amin
Quoted 10 lines
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
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 3 lines · Ray Olszewski
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.
Thanks, this worked. Turned out this was a permissions problem after all. Funny thing, I never think about permissions until I don't get them!
Anyway, thanks very much.
Yawar Amin
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs