在Solaris上mount Window文件系统

原创 2007年09月25日 21:13:00
Mount NTFS partition in Solaris     
In multiboot system if your have Windows with NTFS filesystem and you wanted read-only support this utlity can mount the NTFS filesystem in Solaris.

This project http://mount-ntfs.sourceforge.net/ NTFS Mount (Solaris), UFS Reader (Windows XP) has released utils for NTFS support for Solaris and UFS reader support for Windows vice-versa so that you can access data across . The idea here is to use NFSv2 server that has the ability to read raw blocks from a block device and interpret the raw data as per the NTFS on-disk format. You can use the existing NFS client in Solaris to mount via the loopback interface.

Download the binaries from http://sourceforge.net/project/showfiles.php?group_id=169514
* Warning You use this program on your own risk !!! *
For mounting a NTFS filesystem. Follow the below procedure.
bash-3.00~# fdisk /dev/rdsk/c1d0s0

Below is the sample output for the disk c1d0s0
===
             Total disk size is 38765 cylinders
             Cylinder size is 4032 (512 byte) blocks
                                              
Cylinders
      Partition             Status         Type         Start       End         Length       %
      ====================== ======================================
         1                                Diagnostic       0        1525         1526        4
         2                                 IFS:NTFS     1526      7769          6244      16 <== NTFS
         3                    Active       Solaris2      7770       20773      13004      34
         4                                  EXTLBA    20774      38763       17990      46

SELECT ONE OF THE FOLLOWING:
   1. Create a partition
   2. Specify the active partition
   3. Delete a partition
   4. Change between Solaris and Solaris2 Partition IDs
   5. Exit (update disk configuration and exit)
   6. Cancel (exit without updating disk configuration)
Enter Selection: 5

Press 5 to exit from fdisk menu. Note that your NTFS partition here is 2 .

Now to mount the NTFS filesystem run the below command.

bash-3.00# ./mount_ntfs.opensol-x86-binary /dev/rdsk/c1d0p2 /mnt/windows
To unmount the file system type "kill 15554".

bash-3.00# mount
/ on /dev/dsk/c1d0s0 read/write/setuid/devices/intr/largefiles/logging/xattr/onerror=panic/dev=1980000 on Wed Jul 12 16:01:09 2006
/devices on /devices read/write/setuid/devices/dev=4380000 on Wed Jul 12 16:00:47 2006
/system/contract on ctfs read/write/setuid/devices/dev=43c0001 on Wed Jul 12 16:00:47 2006
/proc on proc read/write/setuid/devices/dev=4400000 on Wed Jul 12 16:00:47 2006
/etc/mnttab on mnttab read/write/setuid/devices/dev=4440001 on Wed Jul 12 16:00:47 2006
/etc/svc/volatile on swap read/write/setuid/devices/xattr/dev=4480001 on Wed Jul 12 16:00:47 2006
/system/object on objfs read/write/setuid/devices/dev=44c0001 on Wed Jul 12 16:00:47 2006
/lib/libc.so.1 on /usr/lib/libc/libc_hwcap2.so.1 read/write/setuid/devices/dev=1980000 on Wed Jul 12 16:01:00 2006
/dev/fd on fd read/write/setuid/devices/dev=4680001 on Wed Jul 12 16:01:09 2006
/tmp on swap read/write/setuid/devices/xattr/dev=4480002 on Wed Jul 12 16:01:11 2006
/var/run on swap read/write/setuid/devices/xattr/dev=4480003 on Wed Jul 12 16:01:11 2006
/data on /dev/dsk/c1d0p1 read/write/setuid/devices/hidden/nofoldcase/dev=1980011 on Wed Jul 12 16:01:18 2006
/mnt/windows on 127.0.0.1:/ remote/read only/setuid/devices/port=53805/public/vers=2/proto=udp/xattr/dev=4740003 on Wed Jul 12 18:02:25 2006

For unmounting the filesystem you need to kill the process.
eg) bash-3.00# kill 15554

I tried mounting NTFS partition (Windows XP) under Solaris Nevada it works fine.

mount FAT32 partitions in Solaris

banff[154]% rmformat -l
Looking for devices...
     1. Logical Node: /dev/rdsk/c7t0d0s2
        Physical Node: /pci@1e,600000/pci@4/usb@8,2/storage@4/disk@0,0
        Connected Device: TOSHIBA  MK4004GAH        JD00
        Device Type: Removable
        Bus: USB
        Size: 38.1 GB
        Label: <None>
        Access permissions: Medium is not write protected.
...

Take the device string, point to "dsk" instead of "rdsk" to get
the block device, and append a ":c" to get the right partition:

banff[155]% sudo mount -F pcfs /dev/dsk/c7t0d0s2:c /mnt
Password:
banff[478]% df /mnt
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c7t0d0s2:c  38779424 33371264 5408160    87%    /mnt

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

在linux中mount ntfs文件系统

  • 2011-08-10 16:04
  • 1.52MB
  • 下载

Solaris下/proc文件系统简介

ln-bes2% df/                  (/dev/md/dsk/d10   ):3100...

linux2.6.36文件系统分析---sys_mount()

sys_mount()代码分析     在linux上,任何磁盘或磁盘的分区在被使用之前必须首先被格式化成某个特定的文件系统(如ext2,ext3等),然后挂载到某个系统的目录树上,只有这样,该磁盘...

linux文件系统之mount流程分析

本质上,Ext3 mount的过程实际上是inode被替代的过程。例如,/dev/sdb块设备被mount到/mnt/alan目录。那么mount这个过程所需要解决的问题就是将/mnt/alan的de...

文件系统注册及mount过程分析

http://www.vrlinux.com/naheyuanma/20100813/73134.html 小弟是个菜鸟,如果写得有错误的地方,请不吝赐教 kernel version: 2....

挂载zookeeper到文件系统 (mount zookeeper)

挂载zookeeper到文件系统 (mount zookeeper) zookeeper源码包中提供一个小工具zkfuse,可以用于将zookeeper挂载到文件系统,本文介绍编译及使用这个小工...

linux文件系统命令(3)---mount和umount

mount命令负责把设备上的文件系统挂载到系统的挂载点上;umount命令负责把挂载点上的文件系统卸载掉。

用mount命令挂载文件系统

用mount命令挂载文件系统 除了挂载本机(硬盘、USB存储器、CD、DVD等)或远程(NFS、Samba等)文件系统,mount命令还可以查看已挂载的文件系统。下面的示例使用mount命令列出已挂...

Linux mount --挂载文件系统

nux下挂载(mount)光盘镜像文件、移动硬盘、U盘、Windows和NFS网络共享   linux是一个优秀的开放源码的操作系统,可以运行在大到巨型小到掌上型各类计算机系统上,随着linux系...

linux加载rootfs 根文件系统 kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

环境:linux内核加载自己的制作的文件系统。 错误信息有以下几种: 错误信息1: Root-NFS: Server returned error -5 while mounting /mini...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)