This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:mount_iso [2016/10/26 11:09] admin created |
linux:mount_iso [2016/10/26 11:11] (current) admin |
||
---|---|---|---|
Line 3: | Line 3: | ||
- | - 1) You must login as a root user, if not root user then switch to root user using following command: | + | You must login as a root user, if not root user then switch to root user using following command: |
<code bash> | <code bash> | ||
$ su - | $ su - | ||
</code> | </code> | ||
- | - 2) Create the directory i.e. mount point: | + | Create the directory i.e. mount point: |
<code bash> | <code bash> | ||
# mkdir -p /mnt/disk | # mkdir -p /mnt/disk | ||
</code> | </code> | ||
- | - 3) Use mount command as follows to mount iso file called disk1.iso: | + | Use mount command as follows to mount iso file called disk1.iso: |
<code bash> | <code bash> | ||
# mount -o loop disk1.iso /mnt/disk | # mount -o loop disk1.iso /mnt/disk | ||
</code> | </code> | ||
- | - 4) Change directory to list files stored inside an ISO image: | + | Change directory to list files stored inside an ISO image: |
<code bash> | <code bash> | ||
# cd /mnt/disk | # cd /mnt/disk | ||
# ls -l | # ls -l | ||
</code> | </code> |