Nino\’s Reminders

May 23, 2006

Mount ISO image

Filed under: FreeBSD — nino @ 10:28

ISO image can be mounted by using:

mdconfig -a -t vnode -f image.iso -u 0

mdconfig configures and enables memory disks. -a attaches the disk, -t defines the type (in this case, vnode which means you can use -f option to specify a file as a backstore for this disk), and -u requests a specific unit number for device (md0 in this case).

mount -t cd9660 /dev/md0 /mnt

This part is pretty self-explanatory, mount it as any other regular device. You can unmount the image with
umount /mnt
and
mdconfig -d -u 0
-d detaches the memory disk, device unit 0 (-u 0).

The same can be done on Linux by using:
mount -o loop -t iso9660 image.iso /mnt

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.