免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1981 | 回复: 0
打印 上一主题 下一主题

在Solaris上Mount NTFS / FAT32 / FAT16 / EXT2 / EXT3文 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-18 11:46 |只看该作者 |倒序浏览
在Solaris上Mount NTFS / FAT32 / FAT16 / EXT2 / EXT3文件系统
                                               
                                               
                                                                                                                                                                                                                        这是个在OpenSolaris的论坛中经常会被问到的问题。其解决方法如下。需要注意的是,Mount后NTFS / EXT2 / EXT3只能读。
  • 下载并安装如下软件包
  • 打印分区信息
    首先运行不带参数的prtpart以获得磁盘的物理设备名称,通常是cNdNp0。
    # prtpart
    Fdisk information for device /dev/rdsk/c0d0p0
    Block Size : 512 bytes
    Controller : ide
    Disk       : cmdk
    Capacity   : 93 GB
    #  start block  # nblocks    startCylSecHd endCylSecHd   OSType
    1: 0000000063   0102398247     0/ 1/ 1    ff/ff/fe      IFS: NTFS
    2: 0102398310   0092952090    ff/ff/fe    ff/ff/fe      Solaris x86
    这里磁盘的ID是c0d0p0,再运行如下命令以打印所有的逻辑设备和分区类型
    # prtpart /dev/rdsk/c0d0p0 -ldevs
    Fdisk information for device /dev/rdsk/c0d0p0
    ** NOTE **
    /dev/dsk/c0d0p0      - Physical device referring to entire physical disk
    /dev/dsk/c0d0p1 - p4 - Physical devices referring to the 4 primary partitions
    /dev/dsk/c0d0p5 ...  - Virtual devices referring to logical partitions
    Virtual device names can be used to access EXT2 and NTFS on logical partitions
    /dev/dsk/c0d0p1 IFS: NTFS
    /dev/dsk/c0d0p2 Solaris x86
  • Mount分区
    Mount NTFS分区
    # mount -F ntfs /dev/dsk/c0d0p1 /Windows
    Mount FAT32 / FAT16
    # mount -F pcfs /dev/dsk/c0d0p /Windows
    Mount Ext2 / Ext3
    # mount -F ext2fs /dev/dsk/c0d0p /Linux

  • Umount分区
    打印mount信息
    # xlsmounts
      PHYSICAL DEVICE                 LOGICAL DEVICE      FS    PID         ADDR Mounted on
      /dev/dsk/c0d0p1                /dev/dsk/c0d0p1    ntfs   1118  127.0.0.1:/ /Windows
    Umount
    # xumount /Windows
                   
                   
                   

    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/73476/showart_1085146.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP