четверг, 1 октября 2009 г.

Монтирование образа дискеты в Ынтерпрайзной ОС

Given an disk image in /export/temp/software.img, a loopback file device (/dev/lofi/1) is created with the following command:

lofiadm -a /export/temp/software.img /dev/lofi/1

The lofi device creates a block device version of a file. This block device can be mounted to /mnt with the following command:

mount -F pcfs -o ro /dev/lofi/1 /mnt