Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
As is usual for me, I have somehow managed to turn the seemingly simple process of creating a vfat partition to share between my Linux and Windows instillations into a long and drawn out process.
First I will give my current partition setup:
/dev/hdc1 - Windows XP instilation (vfat - 15G)
/dev/hdc2 - Fedora Core 2 boot partition (ext3 - 100M)
/dev/hdc3 - Fedora Core 2 swap partition (512M)
/dev/hdc4 - MSDos extended Partition
/dev/hdc5 - / parition for Fedora install (ext3 44.5G)
/dev/hdd1 - Blank partition to be shared (85G)
/dev/hdd2 - Extra linux partition. (/mnt/disk - ext3 - 115G)
Here is what I hope to accomplish:
Format /dev/hdd1 as a fat32 fs, mount it as /home in Linux, and have it readable as another driver in Windows.
Here are the commands that I enter to setup my vfat shared partition:
# fdisk /dev/hdd t; 1; c (change system id to W95 FAT32 (LBA))
#mkfs.vfat /dev/hdd1 (create fat32 FS on /dev/hdd1)
#mount -t vfat /dev/hdd1 /home (mount partition)
#mkdir <username>
Here is where we run into problems. When I try and change the directory's owner and group (chown <username>:<usergroup> <userfolder>), I get the following error:
"chown: changing ownership of `<userfolder>': Operation not permitted"
I get this error whenever I try and chmod/chown any folder/file on the partition. I am also only able to write to the partition only as root, and I would think that would be a bad thing when this partition is supposed to be the /home directory.
I am no expert on this, but that is inherent in Windows File systmes. Vfat does not support Linux permissions. (As i understand this is part of the security problem with MS in general). This is why basically every partitioning guide will tell you not to make your root partition or your home partition vfat.
Thanks everyone. I had been looking around and found no real reasons for this problem. It is good to have a definite answer.
So, unless anyone else has any more suggestions I guess I will make a 50G partition for shared files and then another 150G partition for my Linux /home directory.
As a side note, does anyone know if/when Microsoft will add support for a decent file system (ext2/3, reiser, JFS) or come out with their own?
Microsoft did have plans to release their new database filesystem WinFS in Longhorn, but due to complete ineptitude and the inability to organise a piss-up in a brewery, they have decided to put it off and not release it as part of Longhorn. (according to what I've read)
So basically, by the time microsoft get around to releasing WinFS, there will already be new GNU/linux filesystems which are smarter, quicker, safer, ad which above all, *work*
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.