星期五 九月 21, 2007
在Solaris上Mount NTFS / FAT32 / FAT16 / EXT2 / EXT3文件系统
这是个在OpenSolaris的论坛中经常会被问到的问题。其解决方法如下。需要注意的是,Mount后NTFS / EXT2 / EXT3只能读。
- 下载并安装如下软件包
- FSWpart - 打印分区表信息
下载:wget http://www.belenix.org/binfiles/FSWpart.tar.gz
解压缩:gunzip -c FSWpart.tar.gz | tar xf -
安装:pkgadd -d . FSWpart
- FSWfsmisc - 在OpenSolaris上支持NTFS和EXT2FS文件系统
下载:wget http://www.belenix.org/binfiles/FSWfsmisc.tar.gz
解压缩:gunzip -c FSWfsmisc.tar.gz | tar xf -
安装:pkgadd -d . FSWfsmisc
- FSWpart - 打印分区表信息
- 打印分区信息
首先运行不带参数的prtpart以获得磁盘的物理设备名称,通常是cNdNp0。
# prtpart这里磁盘的ID是c0d0p0,再运行如下命令以打印所有的逻辑设备和分区类型
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
# 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 /WindowsMount FAT32 / FAT16
# mount -F pcfs /dev/dsk/c0d0p<number> /WindowsMount Ext2 / Ext3
# mount -F ext2fs /dev/dsk/c0d0p<number> /Linux
- Umount分区
打印mount信息
# xlsmountsUmount
PHYSICAL DEVICE LOGICAL DEVICE FS PID ADDR Mounted on
/dev/dsk/c0d0p1 /dev/dsk/c0d0p1 ntfs 1118 127.0.0.1:/ /Windows
# xumount /Windows
Comments:
Search This Site
Recent Entries
- Wake On LAN及其在Solaris中的实现
- Solaris如何配置SpeedStep
- Solaris 3D桌面:Compiz Fusion
- Solaris无线局域网系统架构
- MDB调试STREAMS
- STREAMS流控机制的实现
- 有用的DTrace资源
- 什么是802.11n
- 什么是ZigBee
- SUN服务器获InfoWorld 2007最佳技术奖
- 用dtrace脚本监测进程网络状态
- 在Solaris上Mount NTFS / FAT32 / FAT16 / EXT2 / EXT3文件系统
- 在Solaris上运行Windows
- Solaris又添一Marvell Libertas 8335/8310 802.11b/g无线网卡驱动
- 推荐一个小工具SPC(Solaris Package Companion)
- OpenSolaris和Ubuntu双系统安装
- Solariss无线局域网(WLAN)
- 在MacBook Pro上安装Solaris
- 在Solaris上用cdrecord刻录CD/DVD
- Solaris如何在64位平台上加载32位核心
Photos
| www.flickr.com |
Referrers & Other Stats
View My Stats