Reply
 
Thread Tools Display Modes
  #1  
Old 09-09-2007, 12:28 AM
shame shame is offline
Junior Member
 
Join Date: Mar 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Cannot write to fat32 partition
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:
Code:
/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.
Code:
/dev/sda6/     media/shared		vfat	auto,rw,umask=0000,noatime 		0       0
Reply With Quote
  #2  
Old 09-09-2007, 07:13 AM
Hlebarkata_321 Hlebarkata_321 is offline
Senior Member
 
Join Date: Jul 2007
Location: Sofia
Posts: 229
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Can you have write acces as root?
Reply With Quote
  #3  
Old 09-09-2007, 07:47 AM
antik's Avatar
antik antik is offline
Super Moderator
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Cannot write to fat32 partition
Originally Posted by shame
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.

Code:
# fsck_msdosfs
usage: fsck_msdosfs -p [-f] filesystem ...
       fsck_msdosfs [-ny] filesystem ...
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #4  
Old 09-09-2007, 11:13 AM
shame shame is offline
Junior Member
 
Join Date: Mar 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default
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?
Reply With Quote
  #5  
Old 09-09-2007, 11:15 AM
antik's Avatar
antik antik is offline
Super Moderator
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by shame
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.
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #6  
Old 09-09-2007, 12:06 PM
shame shame is offline
Junior Member
 
Join Date: Mar 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default
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
Reply With Quote
  #7  
Old 09-09-2007, 02:18 PM
antik's Avatar
antik antik is offline
Super Moderator
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by shame
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.
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
  #8  
Old 09-09-2007, 02:29 PM
shame shame is offline
Junior Member
 
Join Date: Mar 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default
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
Reply With Quote
  #9  
Old 09-12-2007, 12:11 AM
shame shame is offline
Junior Member
 
Join Date: Mar 2007
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default
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 :?
Reply With Quote
  #10  
Old 09-12-2007, 01:56 PM
Solarin's Avatar
Solarin Solarin is offline
Super Moderator
 
Join Date: Jul 2005
Location: Birmingham, UK
Posts: 743
Thanks: 0
Thanked 0 Times in 0 Posts
Default
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.
__________________
Tim McCormick
PC-BSD Lead Developer
tim at pcbsd.org
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request for suporting NTFS Read/Write partition. Amigamerlin Feature Requests 0 09-19-2008 12:16 PM
Write to Fat32 Partition as user. lanruisen General Questions 4 05-01-2008 04:44 PM
pcbsd 1.4 and fat32 partition paulstrife88 Drives 3 10-06-2007 08:38 PM
Cannot mount FAT32 partition. TerryP Usage Bug Reports 4 05-18-2006 09:27 PM
How to see FAT32 partition inside extended partition. melo Installing PC-BSD 13 02-04-2006 03:29 AM


All times are GMT. The time now is 08:08 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.