To mount an ISO file on Linux machine, you should mount it as "loop" back filesystem. The option to be used in mount command is "-o loop".
Check out the below example.
# mount -o loop boot.iso /mnt
#
# df /mnt
Filesystem 1K-blocks Used Available Use% Mounted on
/media/boot.iso
131708 131708 0 100% /mnt
# ls /mnt
images isolinux
# mount | grep /mnt
/media/ boot.iso on /mnt type iso9660 (ro,loop=/dev/loop0)
#
# mount -o loop boot.iso /mnt
#
# df /mnt
Filesystem 1K-blocks Used Available Use% Mounted on
/media/boot.iso
131708 131708 0 100% /mnt
# ls /mnt
images isolinux
# mount | grep /mnt
/media/ boot.iso on /mnt type iso9660 (ro,loop=/dev/loop0)
#
No comments:
Post a Comment