Solaris系統(tǒng)上Mount(掛載) NTFS / FAT32 / FAT16 / EXT2 / EXT3文件系統(tǒng)
發(fā)布日期:2021-12-14 22:01 | 文章來(lái)源:源碼中國(guó)
這是個(gè)在OpenSolaris的論壇中經(jīng)常會(huì)被問(wèn)到的問(wèn)題。其解決方法如下。需要注意的是,Mount后NTFS / EXT2 / EXT3只能讀。
- 下載并安裝如下軟件包
- FSWpart - 打印分區(qū)表信息
下載:wget http://www.belenix.org/binfiles/FSWpart.tar.gz
解壓縮:gunzip -c FSWpart.tar.gz | tar xf -
安裝:pkgadd -d . FSWpart - FSWfsmisc - 在OpenSolaris上支持NTFS和EXT2FS文件系統(tǒng)
下載:wget http://www.belenix.org/binfiles/FSWfsmisc.tar.gz
解壓縮:gunzip -c FSWfsmisc.tar.gz | tar xf -
安裝:pkgadd -d . FSWfsmisc
- FSWpart - 打印分區(qū)表信息
- 打印分區(qū)信息
首先運(yùn)行不帶參數(shù)的prtpart以獲得磁盤(pán)的物理設(shè)備名稱(chēng),通常是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
這里磁盤(pán)的ID是c0d0p0,再運(yùn)行如下命令以打印所有的邏輯設(shè)備和分區(qū)類(lèi)型
# 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分區(qū)
Mount NTFS分區(qū)
# 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分區(qū)
打印mount信息
# xlsmounts
PHYSICAL DEVICE LOGICAL DEVICE FS PIDADDR Mounted on
/dev/dsk/c0d0p1/dev/dsk/c0d0p1 ntfs 1118127.0.0.1:/ /Windows
Umount
# xumount /Windows
版權(quán)聲明:本站文章來(lái)源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來(lái)源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來(lái)源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來(lái),僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。
相關(guān)文章