免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2251 | 回复: 0
打印 上一主题 下一主题

freebsd fstab 设置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-03 13:21 |只看该作者 |倒序浏览

                219# cat /etc/fstab
# Device        Mountpoint   FStype Options    Dump  Pass#
/dev/ad0s3b      none      swap  sw       0   0
/dev/ad0s3a      /       ufs  rw       1   1
/dev/ad0s3e      /tmp      ufs  rw       2   2
/dev/ad0s3f      /usr      ufs  rw       2   2
/dev/ad0s3d      /var      ufs  rw       2   2
/dev/acd0       /cdrom     cd9660 ro,noauto   0   0
/dev/ad0s1       /dos-c     msdosfs rw,-L=zh_CN.eucCN   2   2
/dev/ad0s5       /dos-d     msdosfs rw,-L=zh_CN.eucCN   2   2
一下感谢冰力版主  
原文连接 http://community.itbbs.cn/showthread.php?t=10975
                       
                        The ntfs-3g driver is an open source, freely available read/write NTFS
driver, which provides safe and fast handling of the Windows XP, Windows
Server 2003 and Windows 2000 filesystems. Almost the full POSIX filesystem
functionality is supported, the major exceptions are changing the file
ownerships and the access rights.
WWW:
http://www.ntfs-3g.org/

Required To Build:

sysutils/fusefs-libs
,
devel/libtool15
Required To Run:
sysutils/fusefs-kmod
Required Libraries:
sysutils/fusefs-libs
,
devel/libublio
,
converters/libiconv
  To install
the port
:
cd /usr/ports/sysutils/fusefs-ntfs/ && make install clean
To add the
package
:
pkg_add -r fusefs-ntfs
  Configuration Options ===> The following configuration options are available for fusefs-ntfs-1.2506:
     LOCK=on (default) "Lock the device when mounting (avoids access)"
     UBLIO=on (default) "Enable user space cache for improved speed"
===> Use 'make config' to modify these settingsMaster Sites:
http://www.ntfs-3g.org/
ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/
Usage
If there was no error during installation then the NTFS volume can
be mounted in read-write mode for everybody as follows. Unmount the
volume if it had already been mounted, replace /dev/sda1 and
/mnt/windows, if needed.
    [color="Blue"]mount -t ntfs-3g /dev/sda1 /mnt/windows
Please see the ntfs-3g manual page for more options and examples.
You can also make NTFS to be mounted during boot by adding the
following line to the end of the /etc/fstab file:  
    /dev/sda1 /mnt/windows ntfs-3g defaults 0 0
使用方法:  1、安装ntfs-3g:
  # cd /usr/ports/sysutils/fusefs-ntfs
  # make install clean
  2、加入fuse加载:
  # ee /etc/rc.conf
  加入以下这一行:
  fusefs_enable="YES"
  保存退出
  # ee /boot/loader.conf
  加入以下这一行:
  fuse_load="YES"
  保存退出。
  注意:这两行一个是fusefs,一个是fuse,千万小心!
  # shutdown -r now
  3、挂载ntfs分区:
  我使用的是USB的移动硬盘,在/dev下显示为da0,ntfs的分区是da0s1,使用下面的命令就可以读写该分区:
  # ntfs-3g /dev/da0s1 /mnt/xp
手动挂载 ntfs:
# ntfs-3g /dev/hda1 /media/vista -o silent,umask=0,locale=zh_CN.utf8
开机自动载入,修改 /etc/fstab:
/dev/hda1 /media/vista ntfs-3g silent,umask=0,locale=zh_CN.utf8 0 0 (Comment this)
解决ntfs-3g挂载ntfs文件系统时中文乱码:
在挂分区时加入以下参数
locale=zh_CN.UTF-8
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/34109/showart_1889439.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP