iso mounting in ubuntu

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
esostigma
Forum Newbie
Posts: 2
Joined: Thu May 10, 2007 10:58 pm

iso mounting in ubuntu

Post by esostigma »

hi all, i'm new to ubuntu and linux.

i am trying to figure out how to use scripts. specifically for now i want to be able to mount iso images. i am trying to follow this tutorial, it seems the best i've seen.

http://www.debianadmin.com/mount-and-un ... -them.html

but i can't get it to work when i get to:

Code: Select all

Now you need to copy them nautilus scripts

sudo mv ~/mount-iso ~/.gnome2/nautilus-scripts/

sudo mv ~/unmount-iso ~/.gnome2/nautilus-scripts/
it will just say , no such directory mount-iso ...etc....

also can someone break down what this command line means. what does mv stand for? what does sudo mean?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Do you have a file called mount-iso in your home folder?

Do you realise you can just do this?

Code: Select all

mkdir mounted-cd
mount -o loop /path/iso/file.iso mounted-cd
ls -l mounted-cd
esostigma
Forum Newbie
Posts: 2
Joined: Thu May 10, 2007 10:58 pm

Post by esostigma »

no i did not realize i could do that. i'm afraid i don't know what it means, but i need to. can you break it down for me?

i know mkdir means make directory. what does that -o switch do? and the rest? ty very much.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

mount mounts a filesystem to a directory
ls lists a directory

man command will show you the manual page for just about any linux command.

btw.. thess are PHP forums -- you might be better off asking these questions in the ubuntu forums: http://ubuntuforums.org
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

esostigma wrote:no i did not realize i could do that. i'm afraid i don't know what it means, but i need to. can you break it down for me?
mount is the command to mount a filesystem (mostly). It can also do 'virtual' things like mounting one directory onto another one, or mounting images. To change the behaviour you pass it some options. The "-o" means that whatever follows the "-o" bit are options. You can provide a comma separated list of options, like you might see in your /etc/fstab file. Here we just tell it "loop" which means "mount the device as a loop device". A loop device is basically an image, whether it be a raw hard disk image (.bin), an iso or some other format. The mount command mounts the path on the left, to the directory on the right.

You can theoretically create two directories and make them behave as one:

Code: Select all

mkdir one
mkdir two
mount --bind one two
touch one/foo
ls two/foo
rm two/foo
ls one/foo
//Error, no such file or directory
Post Reply