Posts Tagged ‘ntfs’
-
Mount Writable NTFS in OpenSolaris
As I mentioned before, there is a way to mount read-only NTFS Partition in OpenSolaris by using an open source project. You can see my article: http://www.PriorMind.com/?p=74 for detail information. But there is a serious problem, which may let us fell painful: This project doesn’t have a good support on Chinese characters.
Actually, Linux users can mount writable NTFS partition easily, but why OpenSolaris users cannot? Fortunately, I found this binary pkg package yesterday, and installed on my OpenSolaris 2008.11 successfully. You can download pkg package from here: http://ocean1.ee.duth.gr/SolarisX/ASntfs-3g-1.5012.tar.gz. This project is called NTFS-3G. You can go to http://www.ntfs-3g.org/ for getting further information.
After download, you should install the three package in this order: SUNWfusefs.pkg, SUNWlibfuse.pkg and ASntfs-3g-1.5012.pkg. Please see README file.
To mount a NTFS partition, you may execute that command:
# ntfs-3g /dev/dsk/c0d0p1 /mnt/Windows
But there is a problem when I am using this module: I cannot mount my NTFS partition in the extend partition. I’ve tried /dev/dsk/c0d0p2 and /dev/dsk/c0d0p2:1, but both of them are failed. If you can mount your NTFS in LBA, please kindly teach me how to do that. Thanks!
After installing and mounting, we will be able to read and write data on NTFS. Moreover, with that program, we can read localized characters correctly!
Why not have a try?
-
Open Solaris 下挂载 NTFS 分区
使用Windows里面的数据,是运行Unix/Linux中比较常见的一个场景。那么如何在OpenSolaris下挂在我们的NTFS分区呢?
由于Solaris系统内核没有携带NTFS读写功能插件,所以我们只好使用相关的开源项目来挂载相关的插件。插件可以从souceforge下载,项目名称是“NTFS Mount”,地址是http://sourceforge.net/projects/mount-ntfs/。当然,您也可以直接在我这里下载,我已经上传到了本服务器:mount_ntfs plugin
得到了这个可执行文件,就可以继续后面的操作了。由于这是一个可执行文件,别忘了给它赋予可执行权限。
使用 chmod 755 mount_ntfs.0.9.1.opensol-x86-binary,可将其权限设为任意人可读并执行
具体chmod的使用方法请参见http://www.unix-center.net/?p=26
接写来,我们要取得到我们NTFS分区的编号。open solaris使用了ZFS技术,我们的硬盘分区全部挂在了池中。所以使用iostat –En和zpool iostat –v 均可以看到我们的硬盘编号。例如我的就是c6d0。
在Solaris中,磁盘的设备名是以c*t*d*为格式的字母和数字的组合(*代表数字),其中c*代表逻辑控制器号(控制接口,controller),t* 代表物理总线目标号(目标地址,scsi设备将给予scsi-ID,target),d*代表磁盘或逻辑单元号(设备地址或者卷的raid地址,一个地址多个盘,disk)。至于 逻辑设备名称格式则是如:c*t*d*s*,s*代表分区号(片地址,也就是说分区地址,slice),其它同上。另外,对于windows的fat和ntfs分区,用c*t*d*p*中的p代替s,windows中没有片的概念,取而代之的是分区partition。
由于我的第一主分区是windows引导分区,所以我即将要挂在的分区即为/dev/rdsk/c6d0p0。取得到了磁盘号,便可以通过./mount_ntfs.0.9.1.opensol-x86-binary image mountpoint来挂载。
mount_ntfs 挂载的参数列表:
Syntax: mount_ntfs image mountpoint [options]
image File system image or rdsk device (/dev/rdsk/xxx)
mountpoint Mount point (see mount)
–o nfsopt Mount option to be passed in the “-o” option of mount_nfs
–m mntopt Mount option to be passed to mount
–pt Image/disk has an x86 partition table with only one partition
–npt Image/disk is NTFS itself / no partition table
–dosnames Use 8.3 file names instead of long file names
–off number The image begins at byte offset number (nnn, 0ooo, 0xHHH)
–sec number The image begins at byte offset number*512 (sector)
–nf Do not fork into background之后便可以使用NTFS分区喽。虽然目前为止还只能是读取,不过至少我们可以访问了!下面是我做成功的截图。
Paul’s Online Services
Dynamic Tag Cloud
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
Recent Posts
- AIX Storage Learning 1
- 春节快乐! Happy Spring Festival!
- Sun is to the end of life
- 为cos-html-cache插件增加页面(Page)、标签(Tag)和分类(Category)的静态化功能
- How to configure Subversion in OpenSolaris
- 转载:IIS FastCGI PHP 环境下搭建 WordPress
- 在OpenSolaris下动态绑定域名
- Goodbye 2009, Hello 2010
- This Is It
- A Morse Code Exchanger
Recent Comments
- 新视界 (New Vision) » 在OpenSolaris下动态绑定域名 on 使用ZFS打造家庭廉价数据中心
- paul on Wordpress数据库转移网址变换的方法
- 知识 on Wordpress数据库转移网址变换的方法
- WP Super Cache V0.98 and IIS7 « Anders Heie on Speed up your WordPress Blog on IIS 7 by using WP-Super-Cache
- 博沈 on This Is It
- paul on 使用ZFS打造家庭廉价数据中心
- Anonymous on OpenSolaris 上的 Samba 服务器
- Anonymous on 使用ZFS打造家庭廉价数据中心
- Anonymous on OpenSolaris 上的 Samba 服务器
- Paul on 十年前和十年后的我们

