OpenSolaris 下 Mount NTFS / FAT32 / FAT16 / EXT2 / EXT3文件系统问题
以下步骤在我的本上测试过,大家可以照着来做,解决一下opensolaris访问其他文件系统的问题。。
操作步骤如下:
大家注意,mount后 NTFS / EXT2 / EXT3只能读,如果需要,你可以copy到你可以控制的分区中,给写权限来继续操作。。。
wget http://www.belenix.org/binfiles/FSWpart.tar.gz
gunzip -c FSWpart.tar.gz | tar xf –
pkgadd -d . FSWpart [点后面有个空格]
wget http://www.belenix.org/binfiles/FSWfsmisc.tar.gz
gunzip -c FSWfsmisc.tar.gz | tar xf –
pkgadd -d . FSWfsmisc[点后面有个空格]
[Copy to clipboard] [ – ]
CODE:
-bash-3.2# prtpart
Fdisk information for device /dev/rdsk/c4d0p0
Block Size : 512 bytes
Controller : ide
Disk : cmdk
Capacity : 55 GB
# start block # nblocks startCylSecHd endCylSecHd OSType
1: 0000000063 0030723777 0/ 1/ 1 ff/ff/ef IFS: NTFS
2: 0030723840 0070096320 ff/c1/ 0 ff/ff/ef WIN95 Extended(LBA)
# start block # nblocks startCylSecHd endCylSecHd OSType
5: 0000000063 0040960017 ff/ff/ef ff/ff/ef IFS: NTFS
0: 0040960080 0029136240 ff/ff/ef ff/ff/ef DOS Extended
# start block # nblocks startCylSecHd endCylSecHd OSType
6: 0000000063 0029136177 ff/ff/ef ff/ff/ef IFS: NTFS
3: 0100820223 0016390017 ff/ff/fe ff/ff/fe Solaris x86
-bash-3.2# su – nova
Sun Microsystems Inc. SunOS 5.11 snv_86 January 2008
-bash-3.2$ ls
core Desktop
-bash-3.2$ cd D*
-bash-3.2$ ls
FSWfsmisc FSWpart 新文件
FSWfsmisc.tar.gz FSWpart.tar 新文件~
-bash-3.2$ su – root
-bash-3.2# prtpart /dev/rdsk/c4d0p0 -ldevs
Fdisk information for device /dev/rdsk/c4d0p0
** NOTE **
/dev/dsk/c4d0p0 – Physical device referring to entire physical disk
/dev/dsk/c4d0p1 – p4 – Physical devices referring to the 4 primary partitions
/dev/dsk/c4d0p5 … – Virtual devices referring to logical partitions
Virtual device names can be used to access EXT2 and NTFS on logical partitions
/dev/dsk/c4d0p1 IFS: NTFS
/dev/dsk/c4d0p2 WIN95 Extended(LBA)
/dev/dsk/c4d0p5 IFS: NTFS
/dev/dsk/c4d0p6 IFS: NTFS
/dev/dsk/c4d0p3 Solaris x86
-bash-3.2# mkdir /winnt_D
-bash-3.2# mount -F ntfs /dev/dsk/c4d0p5 /winnt_D
-bash-3.2# mkdir /winnt_E
-bash-3.2# mount -F ntfs /dev/dsk/c4d0p6 /winnt_E
-bash-3.2# df -h
rpool/ROOT/opensolaris/opt
7.1G 981M 3.3G 23% /opt
rpool/export 7.1G 19K 3.3G 1% /export
rpool/export/home 7.1G 271M 3.3G 8% /export/home
rpool 7.1G 57K 3.3G 1% /rpool
rpool/ROOT 7.1G 18K 3.3G 1% /rpool/ROOT
127.0.0.1:/ 156G 156G 0K 100% /winnt_D
127.0.0.1:/ 111G 111G 0K 100% /winnt_E
-bash-3.2# xlsmounts
PHYSICAL DEVICE LOGICAL DEVICE FS PID ADDR Mounted on
/dev/dsk/c4d0p0 /dev/dsk/c4d0p5 ntfs 1633 127.0.0.1:/ /winnt_D
/dev/dsk/c4d0p0 /dev/dsk/c4d0p6 ntfs 1645 127.0.0.1:/ /winnt_E