Monday, March 8, 2010

How to mount and why do we need it

Sometimes, it would be useful for us to add a path to a script that contains spaces.
Something like: "/home/igro/Ubuntu One".
For example tar can't accept path like this one.
As a workaround we can mount this path as a different folder on disk and use it as in a path script as a path.

For example:
mount -B "/igro/home/Ubuntu One" "/NewFolderName"
And after that:
tar /NewFolderName <- this is not an actual command, but the idea is about the path used.
Don't forget, that we need to create the destination folder prior to use it in mount command.

No comments:

Post a Comment