LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mounting a .iso file (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-a-iso-file-929541/)

linuxandtsm 02-15-2012 03:17 PM

mounting a .iso file
 
Hi all,
i am trying to mount a .iso file but ending up with errors.

Code:

# mount -t iso9660 /user/StarDrop_V5_1.iso /mnt/testiso
mount: /user/StarDrop_V5_1.iso is not a block device (maybe try `-o loop'?)

and when i try as it said (-o loop)
Code:

# mount -o loop /user/StarDrop_V5_1.iso /mnt/testiso
mount: Not a directory

and /mnt/testios directory exists and it is not mounted on anyother filesystem
Code:

# ls -ltrh /mnt/testiso/
total 0

I even tried to mount it on /tmp/mnt directory (created one) with both options (loop and iso9660) but din't work
Code:

#  mount -o loop  -t iso9660 /user/StarDrop_V5_1.iso /tmp/mnt/
mount: Not a directory

any help?
Thanks in advance!

T3RM1NVT0R 02-15-2012 03:23 PM

@ Reply
 
Hi linuxandtsm,

Did you try the following syntax:

Code:

mount -t iso9660 /directory/file.iso /mountpoint -o loop
Where,

/directory/file.iso is the exact location and name of your .iso file.

sean.ferguson 02-15-2012 03:29 PM

Have you created the mount point? I've just tested the following and it works fine with me.

Code:

mkdir -p /mnt/test
mount -o loop test.iso /mnt/test
cd /mnt/test
ls -l

edit: Also, make sure you are root when issuing the commands if your not already.

linuxandtsm 02-15-2012 03:37 PM

Hi T3RM1NVT0R and sean.ferguson,

Thank you both for quick replies.
The problem was with iso file.
I redownloaded it and tried and -o loop option is able to mount the file.

Thanks! again


All times are GMT -5. The time now is 12:49 PM.