Solaris系统上Mount(挂载) NTFS / FAT32 / FAT16 / EXT2 / EXT3文件系统
发布时间:2022-05-07 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了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<number> /Windows
Mount Ext2 / Ext3
# mount -F ext2fs /dev/dsk/c0d0p<number> /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
脚本宝典总结
以上是脚本宝典为你收集整理的Solaris系统上Mount(挂载) NTFS / FAT32 / FAT16 / EXT2 / EXT3文件系统全部内容,希望文章能够帮你解决Solaris系统上Mount(挂载) NTFS / FAT32 / FAT16 / EXT2 / EXT3文件系统所遇到的问题。
如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。