LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error trying to automount an ISO image from /etc/fstab (https://www.linuxquestions.org/questions/linux-newbie-8/error-trying-to-automount-an-iso-image-from-etc-fstab-4175438074/)

kpadhy90 11-21-2012 12:54 AM

Error trying to automount an ISO image from /etc/fstab
 
i am facing problem on mounting an .iso file in /etc/fstab

#vim /etc/fstab

LABEL=/home/mantu/rhel.iso /home/mantu/mounted iso9660 defaults 0 0

#mount -a
#/home/mantu/rhel.iso file or directory does not exists ....it is the error i am getting...

please anyone help me...

mandyapenguin 11-21-2012 01:27 AM

Code:

mkdir /media/iso

vi /etc/fstab

Add the entry in the end of /etc/fstab file as below
Code:

/full_path/of/file.iso        /media/iso        udf,iso9660        user,loop        0        0
save the file
Code:

mount -a

ls -l /media/iso

The same way you can mount with /home/mantu/mounted dirctory.


All times are GMT -5. The time now is 11:25 AM.