DebianThis forum is for the discussion of Debian Linux.
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.
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.
I dual boot sarge/win2k. I share a fat32 partition which I use for data including email. Problem is, I can only access this partition as root. chmod and chown just wont work. Of course I try to run those comands as root.
Here is the directory:
-----------------
ls - lsd
32 drwxr--r-- 15 root root 32768 Dec 31 1969 /data
------------------
Here is the /etc/fstab entry:
------------------
/dev/hda6 /data vfat defaults,user 0 0
------------------
First of all: Fat or FAT32 does not support permissions or files owner. So you can not use chmod or chown command. Permissions, what you see is done by masking certain bits with umask option at mount.
So you can use option:
umask=0 for masking 0 bits
gid - default group
uid - default user
quiet - not report any error (it's useful for midnight commander, it'll eliminate errors caused by copying (respectively doing chmod command after copy))
Vookimedlo, thanks for explaining what the quiet option does in practice. I also use mc and I've wondered about the error messages.
One question though, the man page for mount says that user option implies noexec, nosuid, and nodev. Now, does this mean that I should add the exec option to fstab if I want to execute windows binaries using wine?
I don't know exactly because I don't use Wine. But here is my opinion. I think that exec is irrelevant for windows binary format since kernel doesn't have support to get run such files.
So you have to use something like: wine program
and it doesn't matter if exec or noexec is defined. the file is normally read by wine program.
I had some Wine-related problems earlier when trying to launch programs from ntfs partition but I think they were due to umask, uid, and gid settings. Now Wine seems to work as expected (without exec option in fstab). I'll try the fstab line you suggest above when I'll have access to a computer that dual boots between Debian and vfat partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.