This page details how to mount a character device under MAC OSX. For a general description of a Loop device click on the link. Below are the instructions on how to mount a VHD Hard Disk, obtained via Disk2VHD on MAC OSX Snow Leopard. Prerequisites: vdfuse from VirtualBox bash-3.2# mkdir /mnt/d0 /mnt/d1 /mnt/d2 bash-3.2# vdfuse -r -t VHD -f DISK.VHD /mnt/d0 #mount container bash-3.2# ls /mnt/d0 EntireDisk Partition1 Partition2 bash-3.2# hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount /mnt/d0/Partition1 #prepare mountpoint for Partition /dev/disk2 bash-3.2# hdiutil attach -imagekey diskimage-class=CRawDiskImage -nomount /mnt/d0/Partition2 #prepare mountpoint for Partition /dev/disk3 bash-3.2# mount -t ntfs /dev/disk2 /mnt/d1 bash-3.2# mount -t ntfs /dev/disk3 /mnt/d2 bash-3.2# mount DISK.VHD on /mnt/d0 (fusefs, synchronous) /dev/disk2 on /mnt/d1 (ntfs, local, read-only, noowners) /dev/disk3 on /mnt/d2 (ntfs, local, read-only, noowners)
|