Posts Tagged ‘ntfs’

  • Mount Writable NTFS in OpenSolaris

    Date: 2008.12.14 | Category: Operating System, Sun | Response: 1

    As I men­tio­ned before, there is a way to mount read-only NTFS Par­ti­tion in Open­So­la­ris by using an open sou­rce pro­ject. You can see my arti­cle: http://www.PriorMind.com/?p=74 for detail info­r­ma­tion. But there is a serious pro­blem, which may let us fell pain­ful: This pro­ject doesn’t have a good support on Chi­nese characters.

    Actua­lly, Linux users can mount wri­ta­ble NTFS par­ti­tion easily, but why Open­So­la­ris users can­not? For­tu­na­tely, I found this binary pkg package yester­day, and insta­lled on my Open­So­la­ris 2008.11 succe­ssfu­lly. You can down­load pkg package from here: http://ocean1.ee.duth.gr/SolarisX/ASntfs-3g-1.5012.tar.gz. This pro­ject is called NTFS-3G. You can go to http://www.ntfs-3g.org/ for getting fur­ther information.

    After down­load, 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 par­ti­tion, you may exe­cute that command:

    # ntfs-3g /dev/dsk/c0d0p1 /mnt/Windows

    But there is a pro­blem when I am using this module: I can­not mount my NTFS par­ti­tion in the extend par­ti­tion. I’ve tried /dev/dsk/c0d0p2 and /dev/dsk/c0d0p2:1, but both of them are fai­led. If you can mount your NTFS in LBA, please kin­dly teach me how to do that. Thanks!

    After insta­lling and moun­ting, we will be able to read and write data on NTFS. Moreover, with that pro­g­ram, we can read loca­li­zed cha­ra­cters correctly!

    Why not have a try?

    • Share/Bookmark
  • Open Solaris 下挂载 NTFS 分区

    Date: 2008.05.08 | Category: Sun | Response: 2

    使用Windows里面的数据,是运行Unix/Linux中比较常见的一个场景。那么如何在OpenSolaris下挂在我们的NTFS分区呢?

    由于Solaris系统内核没有携带NTFS读写功能插件,所以我们只好使用相关的开源项目来挂载相关的插件。插件可以从souceforge下载,项目名称是“NTFS Mount”,地址是http://sourceforge.net/projects/mount-ntfs/。当然,您也可以直接在我这里下载,我已经上传到了本服务器:mount_ntfs plu­gin

    得到了这个可执行文件,就可以继续后面的操作了。由于这是一个可执行文件,别忘了给它赋予可执行权限。

    使用 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 挂载的参数列表:

    Syn­tax: mount_ntfs image moun­tpoint [options]
    image File system image or rdsk device (/dev/rdsk/xxx)
    moun­tpoint 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 par­ti­tion table with only one par­ti­tion
    –npt Image/disk is NTFS itself / no par­ti­tion table
    –dos­na­mes 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分区喽。虽然目前为止还只能是读取,不过至少我们可以访问了!下面是我做成功的截图。

    • Share/Bookmark

Paul’s Online Services

Dynamic Tag Cloud

Recent Posts

Recent Comments

Tags

2008.11.Trip-of-GuangXi ASP.net C++ China Chrome css dotNet FCGuoAn Firefox Football gmail IBM IE IIS IT Association Joke Microsoft music mysql NLP Nokia ntfs NumPy OpenSolaris open source Open Team php pidgin PKUSS Python Python Challenge qq Samba SciPy Learning shell solaris SQL SUN Thunderbird Travel web host Win 7 WordPress X11 zfs