November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

MOUNTING ISO FILES WITHIN RHEL

Download the ISO file using wget.

[root@memberserver ~]# cd tmp;wget http://cdimage.debian.org/debian-cd/7.6.0/multi-arch/iso-cd/debian-7.6.0-amd64-i386-netinst.iso
Create a directory which you will use to mount the ISO file to.

[root@memberserver ~]# mkdir /isodir
Edit the /etc/fstab as per the below entry:

[root@memberserver ~]# vi /etc/fstab
/tmp/debian-7.6.0-amd64-i386-netinst.iso /isodir iso9660 defaults,loop 0 0
Run partprobe to make the kernel aware of the disk changes and finally run mount -a to mount the ISO.

[root@memberserver ~]# partprobe
[root@memberserver ~]# mount -a
mount: /dev/loop0 is write-protected, mounting read-only
[root@memberserver ~]# df -hk | grep isodir
/dev/loop0 496640 496640 0 100% /isodir

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>