Click to See Complete Forum and Search --> : Question on sharing partitions


Mantis
04-28-2001, 09:24 PM
Hi,

I've a RH7.0 & NT4.0 dual boot system with two HDD. The Linux installation procces mounted all disk partitions under /mnt.

When I wanted to share a FAT partition with Linux and NT, I found that all the files and directories on the FAT partitions have ownership and groups flags set to root, so I can't write/change or rename files unless I was logged as root.
When I tried to change permissions and/or ownership on these partitions (logged as root), I get the following messagge: "Operation not permitted".
I think that it is because FAT does not suport file security. If that's the case, how
can I write/change/rename files logged as a normal user?

A last question. If I want to share FAT partitions between Linux and NT, I need to use 8.3 filename convention. Is that right?

Thank you.

bdl
04-28-2001, 10:21 PM
Mount the FAT/FAT32 partition as a particular user like so:

## example fstab entry

/dev/hda1 /mnt/windows vfat defaults,user,uid=1000,gid=1000,umask=027,rw 0 0

## eof


Note the uid,gid and umask portions of the entry. Obviously substitute your uid and gid or the gid of 'users' to do this and allow yourself and others basic access to the partition. The umask I've set is 750 which is pretty basic and doesnt allow world read or writes.
Not certain on the 8.3 convention, though. It may be prudent to do so just for safety's sake, that way you dont get a bunch of truncated names under different OS platforms.