`
javasee
  • 浏览: 922785 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

如何在Solaris/OpenSolaris上mount ntfs文件系统?

阅读更多

Visit http://ocean1.ee.duth.gr/SolarisX/ [Lots of cool Solaris binary packages are available here!] and first download and install the following prerequisite packages:

GNUbase [pkgadd -d GNUbase.pkg]

GNUgettext [pkgadd -d GNUgettext-0.16.pkg]

GNUlibiconv [pkgadd -d GNUlibiconv-1.9.2.pkg]

Then download ntfs-3g-1.5012 [NTFS-3G is a stable read/write NTFS driver.]
The archive includes three packages and has been compiled in an OpenSolaris snv_99 box. Extract the archive and you'll get three pkg files SUNWfusefs.pkg, SUNWlibfuse.pkg, ASntfs-3g-1.5012.pkg. Install packages in this order:

# pkgadd -d SUNWfusefs.pkg
# pkgadd -d SUNWlibfuse.pkg
# pkgadd -d ASntfs-3g-1.5012.pkg

That's it! You can start using "ntfs-3g" to mount your NTFS partitions!
Become root "#" first and issue "format" command to see the disk number and issue "ntfs-3g" command to mount as illustrated below:

[Results from my notebook]

alok@opensolaris:~$ su
Password:
alok@opensolaris:~# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
0. c5t0d0 <DEFAULT cyl 3914 alt 2 hd 255 sec 63> ["DISK NUMBER"]
/pci@0,0/pci103c,30d9@1f,2/disk@0,0
Specify disk (enter its number): ^C [WARNING: Press Ctrl+C here and not enter. Otherwise you may format you Solaris partition]
alok@opensolaris:~# ntfs-3g /dev/dsk/c5t0d0p1 ~/Desktop/test [To mount my 30GB Windows Vista C: drive, an NTFS partition]

You don't at all require the FSWpart and FSWfsmisc utilities for mounting NTFS partitions. Notice that the disk number should be entered exactly by you at ntfs-3g /dev/dsk/c5t0d0p1 ~/Desktop/test. [Usually after that disk number to locate NTFS partitions typing p1, p2, p3...... suffices p1 means partition 1]. For FAT32 partitions you need not install anything. The mount support for them is inbuilt in OpenSolaris's latest version. I mount my 90 GB FAT32 F: drive of Windows XP, the first FAT32 partition in my Hard disk[with 30GB for OpenSolaris] by issuing:

# mount -F pcfs /dev/dsk/c5t0d0p0:c /mnt [c for first FAT32 partition if you have more, change c to d,e,f... etc and specify different mount points]

You can also issue the command like ntfs-3g or simple mount by prefixing pfexec if you don't want to become "su" everytime like:

alok@opensolaris:~$ pfexec mount -F pcfs /dev/dsk/c5t0d0p0:c /mnt
alok@opensolaris:~$

or

alok@opensolaris:~$ pfexec ntfs-3g /dev/dsk/c5t0d0p1 ~/Desktop/test
alok@opensolaris:~$

And notice that it is not rdisk in prtpart/rdisk/c0d0s0 -ldevs, it should be rdsk. Also there should be a whitespace between "prtpart" command and "/rdisk/c0d0s0". Also it should not be "/rdisk/c0d0s0", it should be like "/dev/rdsk/citjdkpl", where i = 1,2,3,4......., j = 1,2,3,4......., k = 1,2,3,4....... , l = 1,2,3,4....... Remember at the end "s" should not come like /rdisk/c0d0s0 as "s" means "slice", which designates a Solaris slice [analogous to partition in Windows]. It should be like "/dev/rdsk/c0t0d0p1". The portion "c0t0d0" should be your disk number in exact. Still I suggest you not to use FSW.....use NTFS-3G. It has NTFS read/write support. Later you can edit your /etc/vfstab file for enabling automatic mounting of your NTFS and FAT32 drives.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics