FreeBSD - монтирование ISO образов

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Монтирование ISO образов

1) Создать блочное устройтво и привязать к нему ISO образ:

% mdconfig -a -f ~/path/to/file.iso -u 1
 md1
 -u  - номер md

2) Монтируем его как обычный cdrom:

% mount_cd9660 /dev/md1 /mnt

3) Размонтируем:

% umount /mnt

4) Отсоединить блочное утсройтво от файла:

% mdconfig -d -u 1


Для справки:

    -a      Attach a memory disk.  This will configure and attach a memory
            disk with the parameters specified and attach it to the system. 
-d Detach a memory disk from the system and release all resources.
-f file Filename to use for the vnode type memory disk. Options -a and -t vnode are implied if not specified.