Friday, April 7, 2017

Mount ISO Image in Linux/CentOS/Fedora

Procedure:
  • First create folder to mount ISO
  • # mkdir /mnt/isodata
  • After created mount point use mount command to mount iso file to /mnt/isodata folder
  • mount -t iso9660 -o loop /home/Data/data.iso /mnt/isodata
Options:
  1. -t: This option is use to indicate given file system type
  2. ISO 9660: It defines standard file system type structure to be used for CD/DVD ROMs
  3. -o:  Options are necessary with a -o argument followed by a separated comma string of options.
  4. loop: The loop device is a pseudo-device that often used for mounting CD/DVD ISO image and makes those files accessible as a block device
  • After mount image check data in folder
  • For permanent mounting enter below entry in /etc/fstab file as follow:
    /home/Data/data.iso  /mnt/isodata  iso9660  loop  0  0
  • Restart server and check permanent mount is working or not



No comments:

Post a Comment