DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 22nd March 2012
sw2wolf sw2wolf is offline
λ programmer
 
Join Date: Mar 2012
Location: China
Posts: 133
Default Can FAT32 partition be writable by ordinary user ?

I use `mount_msdos -o rw /dev/wd0j /mnt/J` to mount a FAT32 partition. But it is writable only by root user.

BTW, why do all directory name in FAT32 become upper case ?

Sincerely!
Reply With Quote
  #2   (View Single Post)  
Old 22nd March 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

See the mount_msdos(8) man page. You can set user/group as well as force long file names.
Reply With Quote
  #3   (View Single Post)  
Old 22nd March 2012
sw2wolf sw2wolf is offline
λ programmer
 
Join Date: Mar 2012
Location: China
Posts: 133
Default

The following commnad works:
#mount_msdos -u sw2wolf -o rw /dev/wd0j /mnt/J

However, how to add it to /etc/fstab?
/dev/wd0j /mnt/J msdos rw,u=sw2wolf,noatime 1 2
will report "mount_msdos: -o u: option not supported" .

Sincerely!
Reply With Quote
  #4   (View Single Post)  
Old 22nd March 2012
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Use -u.

See the example of the mfs mount and -s in fstab(5).
Reply With Quote
  #5   (View Single Post)  
Old 23rd March 2012
sw2wolf sw2wolf is offline
λ programmer
 
Join Date: Mar 2012
Location: China
Posts: 133
Default

It works. I will learn to `man` in OpenBSD.
Reply With Quote
  #6   (View Single Post)  
Old 24th March 2012
classicmanpro's Avatar
classicmanpro classicmanpro is offline
Real Name: Turea Alexandru Teodor
Fdisk Soldier
 
Join Date: Oct 2010
Location: Sinaia, Romania
Posts: 51
Lightbulb

Code:
/dev/wd1g               /mnt/hdd        msdos   rw,auto,nodev,nosuid,-m=0644,-M=0755,-g=100,-u=1006
__________________
A daemon in need is a daemon indeed.
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
create a FAT32 partition and format it. wesley OpenBSD General 2 6th November 2010 08:31 AM
Partition help needed. ros2468 OpenBSD Installation and Upgrading 9 22nd March 2010 01:25 PM
Tested-twice foolproof mounting FAT32 thumbdrive on FreeBSD jb_daefo Guides 1 11th November 2008 04:07 AM
swap partition lumiwa FreeBSD General 6 11th September 2008 03:57 PM
Formatting fat32 drive quickly map7 FreeBSD General 10 26th July 2008 05:17 PM


All times are GMT. The time now is 02:28 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick