LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-01-2008, 11:33 AM   #1
rohit83.ken
LQ Newbie
 
Registered: Dec 2007
Posts: 18

Rep: Reputation: 0
Question exec option of mount command


i have downloaded an ".iso "file which has binary executables
i want to mount that iso file using mount command and its exec option?

how can i use that exec option with the mount command?

$mount exec -o iso file /mnt/iso doesnt work

prethanks to helper
 
Old 01-01-2008, 11:39 AM   #2
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 305

Rep: Reputation: 30
sudo mount -t iso9660 -o exec /path/to/file /media/blah

try that after fixing the fake paths i used
 
Old 01-01-2008, 12:11 PM   #3
alexander_bosakov
Member
 
Registered: Mar 2006
Location: Plovdiv, Bulgaria
Distribution: OpenSuse 11.3
Posts: 55

Rep: Reputation: 15
There is a little omission in the above - when you mount an image, it's done via loop device, which you have to specify as an option. So the correct command is:

mount -t iso9660 -o loop=/path/to/loopN -o exec /path/to/file /media/blah

where /path/to/loopN is most often "/dev/loopN" or "/dev/loop/N", N=0..
 
Old 01-01-2008, 12:17 PM   #4
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 305

Rep: Reputation: 30
ooohhh ok you learn things everyday thank you for pointing it out
 
Old 01-01-2008, 12:24 PM   #5
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 69
Usually, you don't have to specify the loop device explicitely, though.
mount -o loop,exec <filename>.iso <mount_point>
should work just fine.
 
Old 01-01-2008, 12:26 PM   #6
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 305

Rep: Reputation: 30
well yea i figured that out.....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
exec command in Launcher? annehoog Linux - Newbie 4 11-23-2006 11:08 AM
exec command not working suruchi Linux - Software 2 06-12-2006 01:02 AM
How do I set exec option on USB drive hot plug mount? dhuseby Linux - Hardware 2 05-30-2006 09:16 AM
can mount C not D FAT: invalid media value (0x45) mount: wrong fs type, bad option Emmanuel_uk Linux - Newbie 10 11-29-2005 02:47 AM
exec bash command bendeco13 Linux - General 6 10-31-2004 03:50 PM


All times are GMT -5. The time now is 03:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration