跳到主要內容

用指令 dd 建立一個虛擬硬碟檔案 VHD。

[code]dd if=/dev/zero of=/media/vhd.img bs=1M count=1200mkfs -t ext4 /media/vhd.imgmkdir /mnt/vhdmount -t auto -o loop /media/vhd.img /mnt/vhd[/code]

用指令 dd 建立一個虛擬硬碟檔案 VHD。
[code]
dd if=/dev/zero of=/media/vhd.img bs=1M count=1200
mkfs -t ext4 /media/vhd.img
mkdir /mnt/vhd
mount -t auto -o loop /media/vhd.img /mnt/vhd
[/code]