fe84
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
In linux, i using the following options to mount a VFAT partition.
Code:
%cat /etc/fstab|grep vfat /dev/sda7 /media/F vfat rw,defaults,utf8,uid=1000,gid=1000,dmask=022,fmask=133 0 0 Sincerely!
__________________
e^(π.i) + 1 = 0 |
|
#2
|
||||
|
||||
|
It's not called vfat in FreeBSD, see msdosfs(5).
|
|
#3
|
|||
|
|||
|
Yes, you are right.
Code:
>cat /etc/fstab|grep -i msdos /dev/ad4s7 /media/F msdosfs rw 0 0 >ls -l /media/F -rwxr-xr-x 1 root wheel 44738560 1 20 11:21 8.0-RELEASE-i386-bootonly.iso* drwxr-xr-x 1 root wheel 16384 3 31 2008 Recycled/ drwxr-xr-x 1 root wheel 16384 6 15 2008 System Volume Information/ -rwxr-xr-x 1 root wheel 229402624 6 27 2008 WinXp.iso*
__________________
e^(π.i) + 1 = 0 |
|
#4
|
|||
|
|||
|
In /etc/sysctl.conf
Code:
vfs.usermount=1 Code:
[localrules=10] add path ad* mode 0660 group operator Code:
devfs_system_ruleset="localrules" Code:
chown uid:gid /media/F /etc/rc.d/sysctl restart /etc/rc.d/devfs restart |
|
#5
|
||||
|
||||
|
Only vfs.usermount is needed. And the user must own the mountpoint. No need to change devfs rules.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#6
|
|||
|
|||
|
Strange. Over here my disk dev entries default to 640 so custom devfs rules are definitely needed for user mount.
|
|
#7
|
|||
|
|||
|
It works without changing devfs rules.
Code:
>sysctl -a | grep -i usermount vfs.usermount: 1 >ls -ld /media/F drwxr-xr-x 1 sw2wolf wheel 16384 12 31 1979 /media/F/ >cat /etc/fstab |grep -i msdos /dev/ad4s7 /media/F msdosfs rw 0 0 >sudo mount -a >>ls -l /media/F -rwxr-xr-x 1 sw2wolf wheel 44738560 1 20 11:21 8.0-RELEASE-i386-bootonly.iso* drwxr-xr-x 1 sw2wolf wheel 16384 3 31 2008 Recycled/ drwxr-xr-x 1 sw2wolf wheel 16384 6 15 2008 System Volume Information/ -rwxr-xr-x 1 sw2wolf wheel 229402624 6 27 2008 WinXp.iso* ......
__________________
e^(π.i) + 1 = 0 |
|
#8
|
|||
|
|||
|
In that case you won't need vfs.usermount enabled...
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VFAT partition cannot display Chinese normally | sw2wolf | General | 2 | September 4th, 2010 14:55 |
| Inconsistency in root partition size | jaymax | General | 7 | September 9th, 2009 05:06 |
| mount ntfs windows partition | ccc | General | 4 | August 3rd, 2009 10:05 |
| How does loader find root partition? | jtl | Installing & Upgrading | 2 | April 22nd, 2009 20:51 |
| How to mount shared ZFS partition | jwhendy | General | 3 | January 20th, 2009 04:01 |