How can I mount MS Windows NTFS filesystems in Solaris?
Mounting NTFS in Solaris is supported by mount_ntfs, by Martin Rosenau, and packages FSWfsmisc and FSWfspart, by Moinak Ghosh (and based on Martin Rosenau's work and part of Moinak's BeleniX work). I use and recommend FSWfsmisc/FSWfspart as it allows mount directly from the mount(1M) command and /etc/vfstab, supports extended partitions, and supports NTFS. Both are explained below and both work with Solaris 10 and OpenSolaris ("Nevada").
Download the README and package files for FSWfsmisc/FSWfspart from http://www.genunix.org/distributions/belenix_site/binfiles/README.FSWfsmisc.txt http://www.genunix.org/distributions/belenix_site/binfiles/FSWfsmisc.tar.gz http://www.genunix.org/distributions/belenix_site/binfiles/FSWpart.tar.gz and follow the instructions in the README file to install the two packages. Use prtpart to display the partitions and mount to mount the NTFS partition. For example, I use this command:
mount -F ext2fs /dev/dsk/c0d0p1 /c
If you have this line in /etc/fstab you can mount with just mount /c
/dev/dsk/c0d0p1 - /c ntfs - no ro
(change the mount point, /c, and partition c0d0p1 for your system). Here's the output from mount and FSWfsmisc's xlsmounts:
# mount |grep '^/c' /c on 127.0.0.1:/ remote/read only/setuid/devices/port=33249/public/vers= 2/proto=udp/xattr/dev=4700004 on Sun Nov 26 19:42:29 2006 # xlsmounts PHYSICAL DEVICE LOGICAL DEVICE FS PID ADDR Mounted on /dev/dsk/c0d0p1 /dev/dsk/c0d0p1 ntfs 3354 127.0.0.1:/ /c
Martin Rosenau's program mount_ntfs, also mounts NTFS filesystems, but with a separate program, mount_ntfs. Download the binary (and source, if desired) from http://sourceforge.net/projects/mount-ntfs/ Determine what disk and partition your NFS filesystem resides on.
/usr/local/sbin/mount_ntfs /dev/rdsk/c2d0p1 /c
Type mount_ntfs for usage information. Unmount with umount.
posted on 2007-04-18 10:01 jingsonghu 阅读(465) 评论(0) 收藏 举报
浙公网安备 33010602011771号