Can't allow partion permissions for a vfat partition, mounted as my home folder
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Can't allow partion permissions for a vfat partition, mounted as my home folder
Hi all. I got Fedora Core 3 on my system. I made a vfat partition while installing, and told it to mount it to /home/[myhomefolder]. Well, it's there, and root can write to it, but my user can do absolutely nothing to it. In fact I can't get into gnome because gnome can't seem to create the neccisary files.
The strange part is that I can't even right click it as root and change the file permissions, it immidietly unchecks the write-permissions boxes (for all users) as soon as I check them. And when I try to change the file owner of my home folder (once again, as root) all it does is say, "sorry, couldn't change the owner"
What's causing it to do this? It's driving me nuts! Anyone know how I can simply (and permently) allow myself to write to that vfat partition? I've done some googleing but to no avail.
Thanks, but tried that one. Maybe I did it wrong?
Now when I start, one of the startup tasks fails. It goes by too fast to catch but it mentions that one of several things could be bad, bad option included.
Anyhow, here's my fstab. It seems to not like the unmask option, but I'm not sure.
HDB5 is the device.
------------------------------------------------
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb5 /home/dan vfat auto,user,exec,sync,unmask=000 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hdb7 swap swap defaults 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0
------------------------------------------------
Put exactly what you had there. Thanks, but the problem remains.
I could be wrong, but this is what seems to be the root of the problem - I cannot change permissions on my home folder (where the partition is mounted), even when I am root. The boxes that normal let you speficify read/write permissions, simply won't stay clicked, and when I try to change the owner, it says it's sorry and can't do it.
What kind of thing would prevent you from editing permmisions on something (A folder or partition) even when you are root?
Almost the same thing happened with Fedora Core 2 a while back, only I was able to re-set the write permissions easilly. This time around, FC3 is being super-anal-paranoid, with some lame setting that not only disabled user access to other partitions, but keeps it that way. How and why would something of that nature get into any distro, I wonder?
FAT partitions don't do permissions - I believe they belong to whoever mounts them, with whatever their default permissions are. That's just how FAT works.
Unless you have a compelling reason, you shouldn't use FAT, for this (amongst other) reasons. It's certainly no good at all as a /home partition. Sorry, but that's all there is to it.
I'm sorry, I'm pretty certain you are incorrect. It serves as a home folder very usefully - it allows me to use it as my E drive in windows (which I seldom use, but still use). That way I don't need 2 copies of my music, movies, etc on my hard drive.
Thanks anyway though.
I also enabled permissions on /dev/hdb5, in case that was it. That doesn't do a darn thing. Bleh. Besides, those permissions get reset upon rebooting.
See those write permissions? Soon as I check them, a quarter of a second later they're unchecked. If I attempt to change the owner of the drive, I get the [vauge] error you see there. And I'm logged in as root there.
What can I do? I just want to use that stinking partition as a normal user, and mount it as my home folder (something I've done before but don't seem to be able to do now).
"Something funny's going on!"
Originally posted by DrD Thanks, but tried that one. Maybe I did it wrong?
Now when I start, one of the startup tasks fails. It goes by too fast to catch but it mentions that one of several things could be bad, bad option included.
Anyhow, here's my fstab. It seems to not like the unmask option, but I'm not sure.
HDB5 is the device.
------------------------------------------------
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb5 /home/dan vfat auto,user,exec,sync,unmask=000 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hdb7 swap swap defaults 0 0
/dev/hdc /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0
/dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0
------------------------------------------------
Good call, Linux.tar.gz, that's a step in the right direction.
I changed that to umask, and that seemed to give the partition universal permissions (boxes stay checked now). I even found another forum that told me to use uid=500 and gid=500 to make the owner of the partition my (defualt) user.
Only now, guess what? The thing that prevented me from logging on as my user all along.. is still there! I rebooted and all. It says the seesion lasted less then 10 seconds, and when I click to show me the .xsession-error file, it says it couldn't get a lock on the ~/.ICEauthority file. Well, at least we got the partition mounted with universal permissions and with the right owner.
This is sort of turning out to be diminishing returns. I think I may just mount it somewhere else. I've always saved my pictures/movies/music on my home folder, but maybe I'll just mount the shared vfat partition somewhere else. Besides, that way I don't have to look at a ton of "dot blah blah" files when I'm in windows. Only drawback is I'll need to save the conents of my home folder when I reinstall the OS to keep my settings and preferences intact (not a real big deal).
Why not have a proper Linux-formatted /home partition, make a separate FAT partition and mount it in /home/yourname/shared or some such?
That way you get a FAT partition in your /home directory that you can use to share files between OSes, without having the complications of a completely inappropriate filesystem on your /home partition.
Alternatively, there ARE tools available to allow Windows to read ext2 filesystems. You could install that in Windows, and use an ext3 /home
Using a FAT /home is always going to be an ugly hack, no matter what you do to get around it. It just wasn't designed for Linux.
I agree with oneandoneis2, I would never use vfat for home...the least of the problems being that vfat can't handle symbolic links, which are needed by some programs.
If you want your music and such to be in your home directory, why not mount vfat somewhere else and make symbolic links to the directories your music is in in your home directory?
DrD, let me punish you a bit.
You seem to use Linux for over 2 years... and you still don't read manuals.... very pity. And you use GUI to configure the system.
Sorry, but GUI sucks such tasks. Instead of clicking you could just "chmod" or "chown".
You could find "umask" option in "man mount". There're also many useful info about FSs, their options, and so on.
I went through some of these battles with using vfat myself. Specifically, it's lack of ability for symlinks. At first I wanted to use it as my home partition, but quickly abandoned that notion. Then I wanted to use it for development (storage) partition. I couldn't figure out why nothing would build on it yet would build on a standard Linux partition. Then the light bulb went on (finally).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.