Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Mount a local directory

Mount a local directory

Mount a local directory


I have a Centos server and I need to upgrade an application remotely with just SSH access, when upgrading, the application wants the new media/software to be on a removable device i.e. CD/DVD or USB.

As I am not local to the server I can't plug in a USB stick, so is there anyway I can spoof a folder to mount as removable storage or the like?

Waiting in anticipation.........

RE: Mount a local directory

Haven't done this in awhile, but if you have the CD/DVD image;

1. Create a directory ex) /appinst
2. Mount the CD drive as follows;
mount -t iso9660 -ro /dev/cdrom /appinst
3. If you cd /appinst, the contents of the cd should be there.

RE: Mount a local directory

Do you have (remote) console access? if so, check to see if it supports virtual media. I use that option to "map" an ISO to the cd/dvd device when I need to boot from an ISO when the server is a few thousand miles away and no local hands are available.

Alternatively, you could do this:

Copy your update files to /some/location
Then mount /some/location via bind: mount --bind /some/location /cdrom
And when you are done: umount /cdrom

it is somewhat odd, though, that the update requires it to be removable media.

RE: Mount a local directory

Thanks for the expert advise, but the trap I fall into now is the server does not have a CD drive!

Think a site visit is going to be required.

(This is a custom build of centos hence the requirement of physical media, darn)

RE: Mount a local directory

Do you have an ISO image instead? Copy the ISO image to the remote server and perform a mount loop (google the syntax). This will load the ISO image for you in the new directory

RE: Mount a local directory

thanks again, I tried the loop but broke the server! Had to go to site and run fsck to get it back.

Looks like site visits with USB media is the only way to go

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close