Solaris10之加载Windows/EXT等分区数据


    1、下载工具包:
    FSWpart
    http://www.genunix.org/distribut ... iles/FSWpart.tar.gz
    FSWfsmisc
    http://www.genunix.org/distribut ... es/FSWfsmisc.tar.gz
    2、解压、安装:
    bash-3.00# gzcat FSWpart.tar.gz | tar xvf -
    bash-3.00# gzcat FSWfsmisc.tar.gz | tar xvf -
    bash-3.00# pkgadd -d . FSWpart
    bash-3.00# pkgadd -d . FSWfsmisc
    3、运行prtpart工具
    bash-3.00# /usr/bin/prtpart
    得到磁盘的一些信息,如下(我的机器)
    Fdisk information for device /dev/rdsk/c0d0p0
    Block Size : 512 bytes
    Controller : ide
    Disk : cmdk
    Capacity : 74 GB
    # start block # nblocks startCylSecHd endCylSecHd OSType
    1: 0000000063 0020971377 0/ 1/ 1 ff/ff/fe IFS: NTFS
    2: 0020971440 0104857200 ff/ff/fe ff/ff/fe WIN95 Extended(LBA)
    # start block # nblocks startCylSecHd endCylSecHd OSType
    5: 0000000063 0041942817 ff/c1/ 1 ff/ff/ef IFS: NTFS
    0: 0041942880 0062914320 ff/c1/ 0 ff/ff/ef DOS Extended
    # start block # nblocks startCylSecHd endCylSecHd OSType
    6: 0000000063 0062914257 ff/c1/ 1 ff/ff/ef IFS: NTFS
    3: 0125837145 0030427110 ff/ff/fe ff/ff/fe Solaris x86
    记住磁盘id. 在我的机器中,硬盘是: "//dev/rdsk/c0d0p0"
    4、查看影片分区信息:
    运行命令:
    bash-3.00# /usr/bin/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 WIN95 Extended(LBA)
    /dev/dsk/c0d0p5 IFS: NTFS
    /dev/dsk/c0d0p6 IFS: NTFS
    /dev/dsk/c0d0p3 Solaris x86
    从这个结果,可以看出所有可以显示的硬盘分区的信息,我本机windows分了3个区,都是NTFS格式,这里已经显示出来了。现在只需要记住你要加载哪个NTFS分区的标识了。
    如:我要加载c0d0p5(这里是我win系统的D盘),执行如下命令:
    5、加载NTFS分区
    bash-3.00# mount -F ntfs /dev/dsk/c0d0p5 /mnt/windows
    当然了,前提是要存在 /mnt/windows目录
    然后,可以进入此目录查看win系统的数据了.
    bash-3.00# ls -l /mnt/windows
    6、FAT分区 (FAT 16 / FAT 32 )
    bash-3.00# mount -F pcfs /dev/dsk/c0d0p<序号> /mnt/windows
    如果上面命令失败了,可以运行下面命令
    bash-3.00# /usr/bin/prtpart /dev/dsk/c0d0p<序号> -fat
    7、 PCFS分区
    bash-3.00# mount -F pcfs /dev/dsk/c0d0p5:d /mnt/windows
    8、EXT2/EXT3分区
    bash-3.00# mount -F ext2fs /dev/dsk/c0d0p /mnt/linux
    9、卸载分区
    bash-3.00# umount /mnt/linux (或 umount /mnt/windows)