View Full Version : Cannot write to fat32 partition
shame
09-09-2007, 12:28 AM
After many, many failed attempts to get a PC-BSD installation I've finally managed to get it installed and am in the process of learning my way around.
Very much a beginner.
First problem:
I'm trying to mount a shared fat32 partition with full read/write access and that automatically mounts on boot.
This is the entry I have in /etc/fstab: /dev/ad1s6 /media/shared msdosfs rw 0 0
It does mount and I can see the files but I am unable to write to the partition as user.
Any help?
This is the only way I can do it in linux and I'm assuming BSD does things differently. /dev/sda6/ media/shared vfat auto,rw,umask=0000,noatime 0 0
Hlebarkata_321
09-09-2007, 07:13 AM
Can you have write acces as root?
antik
09-09-2007, 07:47 AM
I'm trying to mount a shared fat32 partition with full read/write access and that automatically mounts on boot.
If your FA32 filesystem is not "clean" then PC-BSD refuses to mount it from any position. First check it from Windows with scandisk or any other command line utility from PC-BSD.
# fsck_msdosfs
usage: fsck_msdosfs -p [-f] filesystem ...
fsck_msdosfs [-ny] filesystem ...
shame
09-09-2007, 11:13 AM
The partition is mounting fine but I've tried running various tools to check it with nothing reported.
I can write to the partition as root, just not as user.
Do I need to add myself to a particular group?
antik
09-09-2007, 11:15 AM
The partition is mounting fine but I've tried running various tools to check it with nothing reported.
I can write to the partition as root, just not as user.
Do I need to add myself to a particular group?
Yes, operator.
shame
09-09-2007, 12:06 PM
Already a member of the operator group :?
Also, not sure if it's related but once mounted, I am unable to unmount ANY partition.
unmount of /media/whatever failed: Device busy
antik
09-09-2007, 02:18 PM
Already a member of the operator group :?
Also, not sure if it's related but once mounted, I am unable to unmount ANY partition.
unmount of /media/whatever failed: Device busy
Because you are already accessing filesystem. Close applications and try again.
shame
09-09-2007, 02:29 PM
That's just it though, I'm not accessing them when I try to unmount.
Everything is closed with only a terminal open (and I'm not in the mounted filesystem either).
It is the same if I try to unmount them when not in X
shame
09-12-2007, 12:11 AM
Well I've been googling like mad about this but it's just not happening.
I really cannot see any reason at all why I am unable to write to the partition as user :?
Solarin
09-12-2007, 01:56 PM
Just a thought, but it could well be because fat32 doesn't support ownership of files. So they're all owned by root instead. You may be able to change this behaviour though.
shame
09-12-2007, 02:34 PM
Yeah, that is where the umask=000 bit comes in on linux.
So is there a similar thing that can be added to bsd fstab?
DragnLord
09-12-2007, 04:18 PM
Also, not sure if it's related but once mounted, I am unable to unmount ANY partition.
unmount of /media/whatever failed: Device busy
this is why the BSD gods created "umount -f /your/mount"
shame
09-12-2007, 06:54 PM
Indeed, I discovered that a short while ago.
That's one issue solved...
kujirasan
09-30-2007, 05:56 AM
USB's have a controller chip that communicates with computer, the latest model's chip is not supported by the current kernel on LINUX BSD. So no matter how much goggling and Cyber somersaults are put in, the best result will be only read! no write!
That is you can copy and past from USB to BSD desktop, but not other way! you cannot write to USB while using BSD or Linux!
Please note, by new models, here does not refer to USB II.
We tested this.
using two USB enclosure case and a 2.5 inch laptop hard disk, the latest one only could read, the old case did the job very well. As well we tested with USB sticks The USB sticks had same results. The old technology made in China(2GB stick) did the job, the lasted from Japan(12GB stick) did not! But on windows it operated with speed of greased lightening.
So the problem is to update the Kernel! Once that is done, the frustration is over.
shame
09-30-2007, 07:38 AM
But I'm not trying to write to USB, I'm trying to write to a regular fat32 hard drive partition.
I found if I change the permissions on the /media/* directory after the partition is mounted then I am able to write to it as user but next time it's mounted again it's lost the permissions.
This is fine if I only need to occasionally use it but not much good as a shared partition.
federico
11-30-2007, 09:39 AM
1) unmount your fat32 partition
2) su
3) chmod 777 /mnt/mount_point_of_fat32_partition
4) works ?
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.