Page 1 of 1
iso mounting in ubuntu
Posted: Thu May 10, 2007 11:04 pm
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?
Posted: Fri May 11, 2007 2:12 am
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
Posted: Fri May 11, 2007 2:56 am
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.
Posted: Fri May 11, 2007 3:29 am
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
Posted: Fri May 11, 2007 9:11 am
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