Solved

Linux Mount var folder problem

Posted on 2010-11-18
3
522 Views
Last Modified: 2012-05-10
I want to mount an external harddrive to var folder but whenever i mount it aftrer installing brand new linux cent os it looses all folders in it , how should i securely mount disk to var folder without loosing all content in var
0
Comment
Question by:3XLcom
3 Comments
 
LVL 7

Accepted Solution

by:
Hatrix76 earned 350 total points
Comment Utility
You do not loose anything.

you have to understand what mounting means. You mount a filesystem to a directory, and the directory will become the new filesystem (in your case the external harddrive). All contents below the mount-directory (in your case var) will not be accessible until you unmount the harddrive.

Why in the first place do you want to mount something to /var?

normaly you mount something to /media/<something> or /mnt/<something> .... the logic of mounting something to /var eludes me in the moment.

If there is a real reason to mount to your /var please state your requirements for doing so.

best
Ray
0
 
LVL 23

Assisted Solution

by:savone
savone earned 150 total points
Comment Utility
Hatrix76 explained why your stuff is not accessible when mounting external HD to var.

If you want to keep your external HD mounted to var and still have the stuff in var accessible, you will have to move all the stuff in var to your HD.

So mount your external HD to /mnt/exthd (or whatever floats your boat)

Then move everything in var to /mnt/exthd

then unmount /mnt/exthd and remount it at var like you want.

0
 

Author Closing Comment

by:3XLcom
Comment Utility
i see :) i have a scsi disk 140 Gb but my web sites is more then 200Gb so i bought an external disk , plesk use var folder for store emails and vhosts and ....
ok i will try it :)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now