############################################################
vmware、ゲストOSをマウント
############################################################
[kazuono@hostname ~]$ sudo vmware-mount.pl
This script requires 3 (not 0) mandatory argument(s).
Usage: /usr/bin/vmware-mount.pl
-p : Print the partition table
disk : Name of the Virtual Hard Disk file
or
disk : Name of the Virtual Hard Disk file
partition : Number of the partition
[-t type] : Partition type
[-o options]: Partition mount options(s)
mount-point : Directory where to mount the partition
まずNumber of the partitionを調べるために以下のコマンドを実行
[kazuono@hostname ~]$ sudo vmware-mount.pl -p /vmware/win2000Pro/win2000Pro.vmdk
--------------------------------------------
VMware for Linux - Virtual Hard Disk Mounter
Version: 1.0 build-6030\nCopyright 1998 VMware, Inc. All rights reserved. -- VMware Confidential
--------------------------------------------
Nr Start Size Type Id Sytem
-- ---------- ---------- ---- -- ------------------------
1 63 15711507 BIOS 7 HPFS/NTFS
↑この数を確認する。
/mnt/vmwareにマウントするには以下の感じでOKですが、
ファイルシステムをntfsにしている場合はkernelのバージョンをあげましょう。
[kazuono@hostname ~]$ sudo vmware-mount.pl /vmware/win2000Pro/win2000Pro.vmdk 1 /mnt/vmware
--------------------------------------------
VMware for Linux - Virtual Hard Disk Mounter
Version: 1.0 build-6030\nCopyright 1998 VMware, Inc. All rights reserved. -- VMware Confidential
--------------------------------------------
It has been reported that this program does not work correctly with 2.4+ Linux
kernels in some cases, and you are currently running such a kernel. Do you
really want to continue? [N] Y
Detected ntfs filesystem type.
mount: 間違ったファイルシステムタイプ、不正なオプション、
/dev/nb0 のスーパーブロックが不正、或いはファイルシステムのマウント
が多すぎます
よくわからん…。kernel.2にしたとしてもうまくいくかは判らないしなぁ。
vmwareはscsiと何か相性が悪い感じがします。なのでIDEのHDDに
仮想ディスクをおくと結構問題無く動いています。