首页 > 移动平台 > 详细

自动以读写方式挂载ntfs-黑苹果之路

时间:2014-01-16 21:46:37      阅读:418      评论:0      收藏:0      [点我收藏+]

在mac下ntfs分区总是以只读方式挂载,双操作系统,尤其有些时候需要用u盘,需要手工umount再mount,很麻烦,找了一些资料,通过修改/etc/fstab文件无效,要么就是使用第三方软件,不合要求,无意搜到以下链接:

MAC OS X与NTFS

其中通过修改系统的/sbin/mount_ntfs脚本能很好的满足我的需要,摘录如下:

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
打开终端:
 
sudo  mv /sbin/mount_ntfs /sbin/mount_ntfs.orig
 
touch mount_ntfs
 
之后在你的用户主目录下会生成一个mount_ntfs的空文件,用文本编辑器打开,输入以下内容后保存
 
#!/bin/sh
 
/sbin/mount_ntfs.orig -o rw “$@”
 
下面继续回到你之前打开的终端执行:
 
sudo mv mount_ntfs /sbin/mount_ntfs
 
sudo chown root:wheel /sbin/mount_ntfs
 
sudo chmod 755 /sbin/mount_ntfs
 
至此,完成工作,你的系统将默认以读写的方式加载NTFS分区。今后如果需要恢复,则在终端执行:
 
sudo mv /sbin/mount_ntfs.orig /sbin/mount_ntfs

自动以读写方式挂载ntfs-黑苹果之路

原文:http://www.cnblogs.com/badwood316/p/3521364.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!